[03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:19]OFD Sender: No OFD packet to send [03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:34]OFD Sender: No OFD packet to send [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]OFD Sender: No OFD packet to send [03:06:24]OFD Sender: No OFD packet to send [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:52]accept exits with 9 [03:07:52]New connection [03:07:52]New thread 3067108708 created [03:07:52]Thread 3066965348 joined [03:07:52]Waiting for new connection... [03:07:52] Sock 9.Parse request [03:07:52]Sock 9.Check first char [03:07:52]Sock 9.First char is OK [03:07:52]request: POST /json_proto HTTP/1.0 [03:07:52]Method: POST [03:07:52]URL: /json_proto [03:07:52]Method is POST - this is cgi request [03:07:52]url: /json_proto [03:07:52]query_string will be loaded in cgi processing [03:07:52]execute_cgi json_proto POST (null) [03:07:52]execute_cgi path=json_proto method=POST [03:07:52]POST find Content-Length [03:07:52]Host: 172.17.33.3:8080 [03:07:52]Content-Length: 677 [03:07:52]Content-Type: application/json [03:07:52] [03:07:52]POST finish read [03:07:52]Found Content-Length = 677 [03:07:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 3.090, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:07:52]execute_script... [03:07:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 3.090, "sum" : 200.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:07:52]POST & json_proto [03:07:52]process_json_proto [03:07:52]json parsed OK: [03:07:52]protocol is kg_v1.0 [03:07:52]action value=close_receipt [03:07:52]process_action close_receipt [03:07:52]cmd_close_receipt [03:07:52]MH_GetDate [03:07:52]Write to MH i2c: F0 00 00 F0 30 0F [03:07:52]Write i2c OK [03:07:52]MH_I2C_Read... [03:07:52]Read from MH i2c: F0 [03:07:52]MH_I2C_Read... [03:07:52]Read from MH i2c: F0 09 00 [03:07:52]MH_I2C_Read... [03:07:52]Read from MH i2c: F0 09 00 F0 30 00 8B EB 1D 66 23 5B 8F 65 83 [03:07:52]GetLastDocTimeStamp 1713235974 [03:07:52]current date 1713236875 [03:07:52]FM_GetShiftState [03:07:52]SAM_PROTO_GetShiftState [03:07:52]wFMCommunicate request_size=4 [03:07:52]MH_SAM_APDU [03:07:52]CAPDU: 80 13 01 00 [03:07:52]Write to MH i2c: E2 08 00 F1 30 80 13 01 00 00 00 00 00 9E [03:07:52]Write i2c OK [03:07:52]MH_I2C_Read... [03:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:07:52]Read from MH i2c: E2 [03:07:52]MH_I2C_Read... [03:07:52]Read from MH i2c: E2 0E 00 [03:07:52]MH_I2C_Read... [03:07:52]Read from MH i2c: E2 0E 00 F1 30 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 4C [03:07:52]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [03:07:52]wFMCommunicate OK [03:07:52]SAM_PROTO_GetShiftState done [03:07:52]FM_GetShiftState done [03:07:52]opened in 1713226843 [03:07:52]opened+sec_in_day 1713313243 [03:07:52]quantity*price = 20023 [03:07:52]sum+1 = 20024 [03:07:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 8 16.04.2024 03:07 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29734 ФПД: 114035531843625 1/tax-web-control/client/api/v1/ticket?date=20240416T030755&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29734&fm=114035531843625&tin=02508201610067®Number=0000138879044617&sum=20000 [03:07:53]StoreToDocumentArchive [03:07:53]shift 118 fd 29734 [03:07:53]save to /storage/0118/doc_00029734 [03:07:53]save last doc name /storage/0118/doc_00029734 to /storage/kkm_last_doc_name [03:07:53]save OK [03:07:53]Clear old archive folders... [03:07:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:07:53]tlvbuf is B6F7E650 [03:07:53]SAM_PROTO_ClearQueue [03:07:53]wFMCommunicate request_size=4 [03:07:53]MH_SAM_APDU [03:07:53]CAPDU: 80 09 00 00 [03:07:53]Write to MH i2c: E2 08 00 FE 30 80 09 00 00 00 00 00 00 A0 [03:07:53]Write i2c OK [03:07:53]MH_I2C_Read... [03:07:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:07:53]Read from MH i2c: E2 [03:07:53]MH_I2C_Read... [03:07:53]Read from MH i2c: E2 03 00 [03:07:53]MH_I2C_Read... [03:07:53]Read from MH i2c: E2 03 00 FE 30 00 90 00 A2 [03:07:53]RAPDU: 90 00 [03:07:53]wFMCommunicate OK [03:07:53]SAM_PROTO_ClearQueue done [03:07:53]KKMCreateOFDPacket [03:07:53]OFDProtocolAddRootSTLVToBuf [03:07:53]FM_MakeSignedData [03:07:53]FM_MakeSignedData [03:07:53]SAM_PROTO_SignData [03:07:53]wFMCommunicate request_size=4 [03:07:53]MH_SAM_APDU [03:07:53]CAPDU: 80 0D 01 02 [03:07:53]Write to MH i2c: E2 08 00 FF 30 80 0D 01 02 00 00 00 00 A8 [03:07:53]Write i2c OK [03:07:53]MH_I2C_Read... [03:07:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:07:53]Read from MH i2c: E2 [03:07:53]MH_I2C_Read... [03:07:53]Read from MH i2c: E2 03 00 [03:07:53]MH_I2C_Read... [03:07:53]Read from MH i2c: E2 03 00 FF 30 00 90 00 A3 [03:07:53]RAPDU: 90 00 [03:07:53]wFMCommunicate OK [03:07:53]wFMCommunicate request_size=255 [03:07:53]MH_SAM_APDU [03:07:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 0C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 8B EB 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 74 00 00 35 04 06 00 67 [03:07:53]Write to MH i2c: E2 02 01 00 31 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 12 0C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 8B EB 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 74 00 00 35 04 06 00 67 00 00 37 [03:07:53]Write i2c OK [03:07:53]MH_I2C_Read... [03:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:07:53]Read from MH i2c: E2 [03:07:53]MH_I2C_Read... [03:07:53]Read from MH i2c: E2 03 00 [03:07:53]MH_I2C_Read... [03:07:53]Read from MH i2c: E2 03 00 00 31 00 90 00 A5 [03:07:53]RAPDU: 90 00 [03:07:53]wFMCommunicate OK [03:07:53]wFMCommunicate request_size=10 [03:07:53]MH_SAM_APDU [03:07:53]CAPDU: 80 0D 02 02 05 B6 F7 5E 08 29 [03:07:53]Write to MH i2c: E2 0D 00 01 31 80 0D 02 02 05 00 B6 F7 5E 08 29 00 00 F2 [03:07:53]Write i2c OK [03:07:53]MH_I2C_Read... [03:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:07:53]Read from MH i2c: E2 [03:07:53]MH_I2C_Read... [03:07:53]Read from MH i2c: E2 03 00 [03:07:53]MH_I2C_Read... [03:07:53]Read from MH i2c: E2 03 00 01 31 00 90 00 A6 [03:07:53]RAPDU: 90 00 [03:07:53]wFMCommunicate OK [03:07:53]wFMCommunicate request_size=4 [03:07:53]MH_SAM_APDU [03:07:53]CAPDU: 80 0D 03 02 [03:07:53]Write to MH i2c: E2 08 00 02 31 80 0D 03 02 00 00 00 00 AE [03:07:53]Write i2c OK [03:07:53]MH_I2C_Read... [03:07:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:07:53]Read from MH i2c: E2 [03:07:53]MH_I2C_Read... [03:07:53]Read from MH i2c: E2 0B 00 [03:07:53]MH_I2C_Read... [03:07:53]Read from MH i2c: E2 0B 00 02 31 00 79 69 68 97 57 89 CE 68 90 00 A6 [03:07:53]RAPDU: 79 69 68 97 57 89 CE 68 90 00 [03:07:53]wFMCommunicate OK [03:07:53]SAM_PROTO_SignData done [03:07:53]FM_MakeSignedData done [03:07:53]CreateOFDProtocolMessage [03:07:53]wFMCommunicate request_size=4 [03:07:53]MH_SAM_APDU [03:07:53]CAPDU: 80 11 00 00 [03:07:53]Write to MH i2c: E2 08 00 03 31 80 11 00 00 00 00 00 00 AE [03:07:53]Write i2c OK [03:07:53]MH_I2C_Read... [03:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:07:53]Read from MH i2c: E2 [03:07:53]MH_I2C_Read... [03:07:53]Read from MH i2c: E2 17 00 [03:07:53]MH_I2C_Read... [03:07:53]Read from MH i2c: E2 17 00 03 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FD [03:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:07:53]wFMCommunicate OK [03:07:53]CreateOFDProtocolMessage done [03:07:53]OFDSenderStorePacket 29734 [03:07:53]StoreOFDPacket docnum=29734 [03:07:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F9 C6 07 01 50 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 0C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 8B EB 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 74 00 00 35 04 06 00 67 B6 F7 5E 08 29 79 69 68 97 57 89 CE 68 [03:07:53]CheckFolder [03:07:53]dirname=/storage/ofd_packets [03:07:53]CheckFolder done [03:07:53]ProducePacketName [03:07:53]name=ofd_packets/00029734 [03:07:53]NVStorageSaveData ofd_packets/00029734 [03:07:53]File name is /storage/ofd_packets/00029734 [03:07:53]Write 301 bytes [03:07:53]NVStorageSaveData done [03:07:53]OFDSenderStorePacket done [03:07:53]KKMCreateOFDPacket done [03:07:53]NVStorageSaveData kkm_last_timestamp [03:07:53]File name is /storage/kkm_last_timestamp [03:07:53]Write 4 bytes [03:07:53]NVStorageSaveData done [03:07:53]ExternCall_PrintAddStr [03:07:53]wPrintStart [03:07:53]Write to MH i2c: 01 00 00 04 31 35 [03:07:53]Write i2c OK [03:07:53]MH_I2C_Read... [03:07:53]Read from MH i2c: 01 [03:07:53]MH_I2C_Read... [03:07:53]Read from MH i2c: 01 07 00 [03:07:53]MH_I2C_Read... [03:07:53]Read from MH i2c: 01 07 00 04 31 00 00 00 00 00 FF 0F 4A [03:07:53]RasterBufferAndPrint [03:07:53]line Счет N : (1)348209 [03:07:53]line ИНН: 02508201610067 [03:07:53]line Контрольно-Кассовый Чек [03:07:53]line ПРОДАЖА [03:07:53]line ТРК (МРК, ГНК) : 23 [03:07:53]line Товар: 2710124130 [03:07:53]line Аи-92-К-5 [03:07:53]line 3.090 * 64.80 [03:07:53]line = 200.23 [03:07:53]line НДС 12% НСП 1% [03:07:53]line > о реализуемом товаре [03:07:53]line ОКРУГЛЕНИЕ: -0.23 [03:07:53]line ИТОГО: 200.00 [03:07:53]line Внесено: 200.00 [03:07:53]line СДАЧА: 0.00 [03:07:53]line НСП 1% : 1.77 [03:07:53]line НДС 12% : 21.26 [03:07:53]line Наличными: 200.00 [03:07:53]line Безнал.: 0.00 [03:07:53]line Место: АЗС № 108 "Партнер Нефть" [03:07:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [03:07:53]line СНО: Общий режим [03:07:53]line Чек 8 16.04.2024 03:07 [03:07:53]line Смена: 118 ФФД: 1.0 [03:07:53]line ЗНМ: 0300000027 [03:07:53]line РНМ: 0000138879044617 [03:07:53]line Версия ККМ: 001 [03:07:53]line ФМ: 0000000000963154 [03:07:53]line ФД: 29734 [03:07:53]line ФПД: 114035531843625 [03:07:53]line 1/tax-web-control/client/api/v1/ticket?date=20240416T030755&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29734&fm=114035531843625&tin=02508201610067®Number=0000138879044617&sum=20000 [03:07:54]OFD Sender: Processing packet 29734 [packets to send 8, broken 7] [03:07:54]ProducePacketName [03:07:54]name=ofd_packets/00029734 [03:07:54]OFD Sender: To server: pG, [03:07:54]CommunicateWithHost lk.salyk.kg:30040 [03:07:54]ConnectInit lk.salyk.kg [03:07:54]written 0, free lines is 4095 [03:07:54]Connected sock=10 [03:07:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F9 C6 07 01 50 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 0C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 8B EB 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 74 00 00 35 04 06 00 67 B6 F7 5E 08 29 79 69 68 97 57 89 CE 68 [03:07:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0F 56 47 00 56 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 36 33 31 35 34 10 04 04 00 26 74 00 00 F4 03 04 00 2A 96 1D 66 B6 04 01 00 00 0D 35 94 57 3F A4 B9 FE [03:07:54]CommunicateWithHost err = 0 [03:07:54]CheckOFDResponse [03:07:54]1017 (14) - 77093643461234 [03:07:54]1041 (16) - 0000000000963154 [03:07:54]1040 (4) - 29734 [03:07:54]1012 (4) - 15.04.2024 21:03 [03:07:54]1206 (1) - 0 [03:07:54]OFD Sender: Remove packet 29734 [03:07:54]ProducePacketName [03:07:54]name=ofd_packets/00029734 [03:07:54]NVStorageDeleteData [03:07:54]Write to MH i2c: 01 00 00 2E 31 5F [03:07:54]Write i2c OK [03:07:54]MH_I2C_Read... [03:07:54]Read from MH i2c: 01 [03:07:54]MH_I2C_Read... [03:07:54]Read from MH i2c: 01 07 00 [03:07:54]MH_I2C_Read... [03:07:54]Read from MH i2c: 01 07 00 2E 31 00 00 00 00 00 C0 0C 32 [03:07:54]RasterBufferAndPrint [03:07:54]line [03:07:54]line [03:07:54]line [03:07:54]line [03:07:54]line [03:07:54]written 0, free lines is 3268 [03:07:54]MH_Cut [03:07:54]Write to MH i2c: D1 01 00 35 31 01 38 [03:07:54]Write i2c OK [03:07:54]MH_I2C_Read... [03:07:54]Read from MH i2c: D1 [03:07:54]MH_I2C_Read... [03:07:54]Read from MH i2c: D1 01 00 [03:07:54]MH_I2C_Read... [03:07:54]Read from MH i2c: D1 01 00 35 31 00 37 [03:07:54]Write to MH i2c: 01 00 00 36 31 67 [03:07:54]Write i2c OK [03:07:54]MH_I2C_Read... [03:07:55]OFD Sender: No OFD packet to send [03:07:55]*** Cut start [03:07:55]*** Partial cut [03:07:55]*** CUTSNS_PIN = 1 [03:07:55]*** CUTSNS_PIN = 0 [03:07:55]*** Brake cut motor [03:07:56]Read from MH i2c: 01 [03:07:56]MH_I2C_Read... [03:07:56]*** Stop cut motor [03:07:56]*** Cut end [03:07:56]Read from MH i2c: 01 07 00 [03:07:56]MH_I2C_Read... [03:07:56]Read from MH i2c: 01 07 00 36 31 00 00 00 00 00 FF 0F 7C [03:07:56]process_action close_receipt done [03:07:56]requested_data is exist [03:07:56]produce_requested_data [03:07:56]requested_item fm.sn is exist - process it [03:07:56]wFMCommunicate request_size=4 [03:07:56]MH_SAM_APDU [03:07:56]CAPDU: 80 11 00 00 [03:07:56]Write to MH i2c: E2 08 00 37 31 80 11 00 00 00 00 00 00 E2 [03:07:56]Write i2c OK [03:07:56]MH_I2C_Read... [03:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:07:56]Read from MH i2c: E2 [03:07:56]MH_I2C_Read... [03:07:56]Read from MH i2c: E2 17 00 [03:07:56]MH_I2C_Read... [03:07:56]Read from MH i2c: E2 17 00 37 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 31 [03:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:07:56]wFMCommunicate OK [03:07:56]requested_item fd.num is exist - process it [03:07:56]SAM_PROTO_GetFieldsCounters [03:07:56]wFMCommunicate request_size=4 [03:07:56]MH_SAM_APDU [03:07:56]CAPDU: 80 13 00 00 [03:07:56]Write to MH i2c: E2 08 00 38 31 80 13 00 00 00 00 00 00 E5 [03:07:56]Write i2c OK [03:07:56]MH_I2C_Read... [03:07:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:07:56]Read from MH i2c: E2 [03:07:56]MH_I2C_Read... [03:07:56]Read from MH i2c: E2 62 00 [03:07:56]MH_I2C_Read... [03:07:56]Read from MH i2c: E2 62 00 38 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 26 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [03:07:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 26 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:07:56]wFMCommunicate OK [03:07:56]SAM_PROTO_GetFieldsCounters done [03:07:56]requested_item shift.num is exist - process it [03:07:56]requested_item shift.opened is exist - process it [03:07:56]req_shift_opened [03:07:56]FM_GetShiftState [03:07:56]SAM_PROTO_GetShiftState [03:07:56]wFMCommunicate request_size=4 [03:07:56]MH_SAM_APDU [03:07:56]CAPDU: 80 13 01 00 [03:07:56]Write to MH i2c: E2 08 00 39 31 80 13 01 00 00 00 00 00 E7 [03:07:56]Write i2c OK [03:07:56]MH_I2C_Read... [03:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:07:56]Read from MH i2c: E2 [03:07:56]MH_I2C_Read... [03:07:56]Read from MH i2c: E2 0E 00 [03:07:56]MH_I2C_Read... [03:07:56]Read from MH i2c: E2 0E 00 39 31 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 95 [03:07:56]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [03:07:56]wFMCommunicate OK [03:07:56]SAM_PROTO_GetShiftState done [03:07:56]FM_GetShiftState done [03:07:56]req_shift_opened done [03:07:56]requested_item shift.open_date is exist - process it [03:07:56]req_shift_open_date [03:07:56]req_shift_open_date done [03:07:56]produce_requested_data done [03:07:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29734,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [03:07:56]process_action_free close_receipt [03:07:56]json_value_free [03:07:56]json_value_free done [03:07:56]process_json_proto returns [03:07:56]Send response to host [03:07:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29734,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [03:07:56]free response buf [03:07:56]execute_script done [03:07:56]execute_script returns [03:07:56]free content buf [03:07:56]Sock 9.Close socket [03:07:56]Sock 9.Thread stoped [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:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]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:29]accept exits with 7 [03:15:29]New connection [03:15:29]New thread 3066965348 created [03:15:29]Thread 3067108708 joined [03:15:29]Waiting for new connection... [03:15:29] Sock 7.Parse request [03:15:29]Sock 7.Check first char [03:15:29]Sock 7.First char is OK [03:15:29]request: POST /json_proto HTTP/1.0 [03:15:29]Method: POST [03:15:29]URL: /json_proto [03:15:29]Method is POST - this is cgi request [03:15:29]url: /json_proto [03:15:29]query_string will be loaded in cgi processing [03:15:29]execute_cgi json_proto POST (null) [03:15:29]execute_cgi path=json_proto method=POST [03:15:29]POST find Content-Length [03:15:29]Host: 172.17.33.3:8080 [03:15:29]Content-Length: 677 [03:15:29]Content-Type: application/json [03:15:29] [03:15:29]POST finish read [03:15:29]Found Content-Length = 677 [03:15:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "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" ] } } [03:15:29]execute_script... [03:15:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "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" ] } } [03:15:29]POST & json_proto [03:15:29]process_json_proto [03:15:29]json parsed OK: [03:15:29]protocol is kg_v1.0 [03:15:29]action value=close_receipt [03:15:29]process_action close_receipt [03:15:29]cmd_close_receipt [03:15:29]MH_GetDate [03:15:29]Write to MH i2c: F0 00 00 3A 31 5A [03:15:29]Write i2c OK [03:15:29]MH_I2C_Read... [03:15:29]Read from MH i2c: F0 [03:15:29]MH_I2C_Read... [03:15:29]Read from MH i2c: F0 09 00 [03:15:29]MH_I2C_Read... [03:15:29]Read from MH i2c: F0 09 00 3A 31 00 54 ED 1D 66 23 5B 8F 65 99 [03:15:29]GetLastDocTimeStamp 1713236875 [03:15:29]current date 1713237332 [03:15:29]FM_GetShiftState [03:15:29]SAM_PROTO_GetShiftState [03:15:29]wFMCommunicate request_size=4 [03:15:29]MH_SAM_APDU [03:15:29]CAPDU: 80 13 01 00 [03:15:29]Write to MH i2c: E2 08 00 3B 31 80 13 01 00 00 00 00 00 E9 [03:15:29]Write i2c OK [03:15:29]MH_I2C_Read... [03:15:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:15:29]Read from MH i2c: E2 [03:15:29]MH_I2C_Read... [03:15:29]Read from MH i2c: E2 0E 00 [03:15:29]MH_I2C_Read... [03:15:29]Read from MH i2c: E2 0E 00 3B 31 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 97 [03:15:29]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [03:15:29]wFMCommunicate OK [03:15:29]SAM_PROTO_GetShiftState done [03:15:29]FM_GetShiftState done [03:15:29]opened in 1713226843 [03:15:29]opened+sec_in_day 1713313243 [03:15:29]quantity*price = 50025 [03:15:29]sum+1 = 50027 [03:15:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 9 16.04.2024 03:15 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29735 ФПД: 148963061366192 1/tax-web-control/client/api/v1/ticket?date=20240416T031533&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29735&fm=148963061366192&tin=02508201610067®Number=0000138879044617&sum=50000 [03:15:30]StoreToDocumentArchive [03:15:30]shift 118 fd 29735 [03:15:30]save to /storage/0118/doc_00029735 [03:15:30]save last doc name /storage/0118/doc_00029735 to /storage/kkm_last_doc_name [03:15:30]save OK [03:15:30]Clear old archive folders... [03:15:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:15:30]tlvbuf is B6F7E250 [03:15:30]SAM_PROTO_ClearQueue [03:15:30]wFMCommunicate request_size=4 [03:15:30]MH_SAM_APDU [03:15:30]CAPDU: 80 09 00 00 [03:15:30]Write to MH i2c: E2 08 00 48 31 80 09 00 00 00 00 00 00 EB [03:15:30]Write i2c OK [03:15:30]MH_I2C_Read... [03:15:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:15:30]Read from MH i2c: E2 [03:15:30]MH_I2C_Read... [03:15:30]Read from MH i2c: E2 03 00 [03:15:30]MH_I2C_Read... [03:15:30]Read from MH i2c: E2 03 00 48 31 00 90 00 ED [03:15:30]RAPDU: 90 00 [03:15:30]wFMCommunicate OK [03:15:30]SAM_PROTO_ClearQueue done [03:15:30]KKMCreateOFDPacket [03:15:30]OFDProtocolAddRootSTLVToBuf [03:15:30]FM_MakeSignedData [03:15:30]FM_MakeSignedData [03:15:30]SAM_PROTO_SignData [03:15:30]wFMCommunicate request_size=4 [03:15:30]MH_SAM_APDU [03:15:30]CAPDU: 80 0D 01 02 [03:15:30]Write to MH i2c: E2 08 00 49 31 80 0D 01 02 00 00 00 00 F3 [03:15:30]Write i2c OK [03:15:30]MH_I2C_Read... [03:15:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:15:30]Read from MH i2c: E2 [03:15:30]MH_I2C_Read... [03:15:30]Read from MH i2c: E2 03 00 [03:15:30]MH_I2C_Read... [03:15:30]Read from MH i2c: E2 03 00 49 31 00 90 00 EE [03:15:30]RAPDU: 90 00 [03:15:30]wFMCommunicate OK [03:15:30]wFMCommunicate request_size=255 [03:15:30]MH_SAM_APDU [03:15:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 09 00 00 00 F4 03 04 00 55 ED 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 74 00 00 35 04 06 00 87 [03:15:30]Write to MH i2c: E2 02 01 4A 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 09 00 00 00 F4 03 04 00 55 ED 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 74 00 00 35 04 06 00 87 00 00 12 [03:15:30]Write i2c OK [03:15:30]MH_I2C_Read... [03:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:15:31]Read from MH i2c: E2 [03:15:31]MH_I2C_Read... [03:15:31]Read from MH i2c: E2 03 00 [03:15:31]MH_I2C_Read... [03:15:31]Read from MH i2c: E2 03 00 4A 31 00 90 00 EF [03:15:31]RAPDU: 90 00 [03:15:31]wFMCommunicate OK [03:15:31]wFMCommunicate request_size=10 [03:15:31]MH_SAM_APDU [03:15:31]CAPDU: 80 0D 02 02 05 7B 2A 5B 7D B0 [03:15:31]Write to MH i2c: E2 0D 00 4B 31 80 0D 02 02 05 00 7B 2A 5B 7D B0 00 00 2D [03:15:31]Write i2c OK [03:15:31]MH_I2C_Read... [03:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:15:31]Read from MH i2c: E2 [03:15:31]MH_I2C_Read... [03:15:31]Read from MH i2c: E2 03 00 [03:15:31]MH_I2C_Read... [03:15:31]Read from MH i2c: E2 03 00 4B 31 00 90 00 F0 [03:15:31]RAPDU: 90 00 [03:15:31]wFMCommunicate OK [03:15:31]wFMCommunicate request_size=4 [03:15:31]MH_SAM_APDU [03:15:31]CAPDU: 80 0D 03 02 [03:15:31]Write to MH i2c: E2 08 00 4C 31 80 0D 03 02 00 00 00 00 F8 [03:15:31]Write i2c OK [03:15:31]MH_I2C_Read... [03:15:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:15:31]Read from MH i2c: E2 [03:15:31]MH_I2C_Read... [03:15:31]Read from MH i2c: E2 0B 00 [03:15:31]MH_I2C_Read... [03:15:31]Read from MH i2c: E2 0B 00 4C 31 00 ED 08 F4 92 B7 C9 C7 06 90 00 C1 [03:15:31]RAPDU: ED 08 F4 92 B7 C9 C7 06 90 00 [03:15:31]wFMCommunicate OK [03:15:31]SAM_PROTO_SignData done [03:15:31]FM_MakeSignedData done [03:15:31]CreateOFDProtocolMessage [03:15:31]wFMCommunicate request_size=4 [03:15:31]MH_SAM_APDU [03:15:31]CAPDU: 80 11 00 00 [03:15:31]Write to MH i2c: E2 08 00 4D 31 80 11 00 00 00 00 00 00 F8 [03:15:31]Write i2c OK [03:15:31]MH_I2C_Read... [03:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:15:31]Read from MH i2c: E2 [03:15:31]MH_I2C_Read... [03:15:31]Read from MH i2c: E2 17 00 [03:15:31]MH_I2C_Read... [03:15:31]Read from MH i2c: E2 17 00 4D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 47 [03:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:15:31]wFMCommunicate OK [03:15:31]CreateOFDProtocolMessage done [03:15:31]OFDSenderStorePacket 29735 [03:15:31]StoreOFDPacket docnum=29735 [03:15:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F5 4D 07 01 10 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 09 00 00 00 F4 03 04 00 55 ED 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 74 00 00 35 04 06 00 87 7B 2A 5B 7D B0 ED 08 F4 92 B7 C9 C7 06 [03:15:31]CheckFolder [03:15:31]dirname=/storage/ofd_packets [03:15:31]CheckFolder done [03:15:31]ProducePacketName [03:15:31]name=ofd_packets/00029735 [03:15:31]NVStorageSaveData ofd_packets/00029735 [03:15:31]File name is /storage/ofd_packets/00029735 [03:15:31]Write 301 bytes [03:15:31]NVStorageSaveData done [03:15:31]OFDSenderStorePacket done [03:15:31]KKMCreateOFDPacket done [03:15:31]NVStorageSaveData kkm_last_timestamp [03:15:31]File name is /storage/kkm_last_timestamp [03:15:31]Write 4 bytes [03:15:31]NVStorageSaveData done [03:15:31]ExternCall_PrintAddStr [03:15:31]wPrintStart [03:15:31]Write to MH i2c: 01 00 00 4E 31 7F [03:15:31]Write i2c OK [03:15:31]MH_I2C_Read... [03:15:31]Read from MH i2c: 01 [03:15:31]MH_I2C_Read... [03:15:31]Read from MH i2c: 01 07 00 [03:15:31]MH_I2C_Read... [03:15:31]Read from MH i2c: 01 07 00 4E 31 00 00 00 00 00 FF 0F 94 [03:15:31]RasterBufferAndPrint [03:15:31]line Счет N : (1)348210 [03:15:31]line ИНН: 02508201610067 [03:15:31]line Контрольно-Кассовый Чек [03:15:31]line ПРОДАЖА [03:15:31]line ТРК (МРК, ГНК) : 13 [03:15:31]line Товар: 2710124130 [03:15:31]line Аи-92-К-5 [03:15:31]line 7.720 * 64.80 [03:15:31]line = 500.26 [03:15:31]line НДС 12% НСП 1% [03:15:31]line > о реализуемом товаре [03:15:31]line ОКРУГЛЕНИЕ: -0.26 [03:15:31]line ИТОГО: 500.00 [03:15:31]line Внесено: 500.00 [03:15:31]line СДАЧА: 0.00 [03:15:31]line НСП 1% : 4.43 [03:15:31]line НДС 12% : 53.12 [03:15:31]line Наличными: 500.00 [03:15:31]line Безнал.: 0.00 [03:15:31]line Место: АЗС № 108 "Партнер Нефть" [03:15:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [03:15:31]line СНО: Общий режим [03:15:31]line Чек 9 16.04.2024 03:15 [03:15:31]line Смена: 118 ФФД: 1.0 [03:15:31]line ЗНМ: 0300000027 [03:15:31]line РНМ: 0000138879044617 [03:15:31]line Версия ККМ: 001 [03:15:31]line ФМ: 0000000000963154 [03:15:31]line ФД: 29735 [03:15:31]line ФПД: 148963061366192 [03:15:31]line 1/tax-web-control/client/api/v1/ticket?date=20240416T031533&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29735&fm=148963061366192&tin=02508201610067®Number=0000138879044617&sum=50000 [03:15:31]OFD Sender: Processing packet 29735 [packets to send 8, broken 7] [03:15:31]ProducePacketName [03:15:31]name=ofd_packets/00029735 [03:15:31]OFD Sender: To server: pG, [03:15:31]CommunicateWithHost lk.salyk.kg:30040 [03:15:31]ConnectInit lk.salyk.kg [03:15:31]written 0, free lines is 4095 [03:15:31]Connected sock=10 [03:15:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F5 4D 07 01 10 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 09 00 00 00 F4 03 04 00 55 ED 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 74 00 00 35 04 06 00 87 7B 2A 5B 7D B0 ED 08 F4 92 B7 C9 C7 06 [03:15:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4B 24 47 00 D0 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 74 00 00 F4 03 04 00 F4 97 1D 66 B6 04 01 00 00 DC 84 F5 0C 8F DE ED CF [03:15:31]CommunicateWithHost err = 0 [03:15:31]CheckOFDResponse [03:15:31]1017 (14) - 77093643461234 [03:15:31]1041 (16) - 0000000000963154 [03:15:31]1040 (4) - 29735 [03:15:31]1012 (4) - 15.04.2024 21:11 [03:15:31]1206 (1) - 0 [03:15:31]OFD Sender: Remove packet 29735 [03:15:31]ProducePacketName [03:15:31]name=ofd_packets/00029735 [03:15:31]NVStorageDeleteData [03:15:32]Write to MH i2c: 01 00 00 78 31 A9 [03:15:32]Write i2c OK [03:15:32]MH_I2C_Read... [03:15:32]Read from MH i2c: 01 [03:15:32]MH_I2C_Read... [03:15:32]Read from MH i2c: 01 07 00 [03:15:32]MH_I2C_Read... [03:15:32]Read from MH i2c: 01 07 00 78 31 00 00 00 00 00 C2 0C 7E [03:15:32]RasterBufferAndPrint [03:15:32]line [03:15:32]line [03:15:32]line [03:15:32]line [03:15:32]line [03:15:32]written 0, free lines is 3273 [03:15:32]MH_Cut [03:15:32]Write to MH i2c: D1 01 00 7F 31 01 82 [03:15:32]Write i2c OK [03:15:32]MH_I2C_Read... [03:15:32]Read from MH i2c: D1 [03:15:32]MH_I2C_Read... [03:15:32]Read from MH i2c: D1 01 00 [03:15:32]MH_I2C_Read... [03:15:32]Read from MH i2c: D1 01 00 7F 31 00 81 [03:15:32]Write to MH i2c: 01 00 00 80 31 B1 [03:15:32]Write i2c OK [03:15:32]MH_I2C_Read... [03:15:32]OFD Sender: No OFD packet to send [03:15:32]*** Cut start [03:15:32]*** Partial cut [03:15:32]*** CUTSNS_PIN = 1 [03:15:32]*** CUTSNS_PIN = 0 [03:15:33]*** Brake cut motor [03:15:33]Read from MH i2c: 01 [03:15:33]MH_I2C_Read... [03:15:33]*** Stop cut motor [03:15:33]*** Cut end [03:15:33]Read from MH i2c: 01 07 00 [03:15:33]MH_I2C_Read... [03:15:33]Read from MH i2c: 01 07 00 80 31 00 00 00 00 00 FF 0F C6 [03:15:33]process_action close_receipt done [03:15:33]requested_data is exist [03:15:33]produce_requested_data [03:15:33]requested_item fm.sn is exist - process it [03:15:33]wFMCommunicate request_size=4 [03:15:33]MH_SAM_APDU [03:15:33]CAPDU: 80 11 00 00 [03:15:33]Write to MH i2c: E2 08 00 81 31 80 11 00 00 00 00 00 00 2C [03:15:33]Write i2c OK [03:15:33]MH_I2C_Read... [03:15:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:15:33]Read from MH i2c: E2 [03:15:33]MH_I2C_Read... [03:15:33]Read from MH i2c: E2 17 00 [03:15:33]MH_I2C_Read... [03:15:33]Read from MH i2c: E2 17 00 81 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7B [03:15:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:15:33]wFMCommunicate OK [03:15:33]requested_item fd.num is exist - process it [03:15:33]SAM_PROTO_GetFieldsCounters [03:15:33]wFMCommunicate request_size=4 [03:15:33]MH_SAM_APDU [03:15:33]CAPDU: 80 13 00 00 [03:15:33]Write to MH i2c: E2 08 00 82 31 80 13 00 00 00 00 00 00 2F [03:15:33]Write i2c OK [03:15:33]MH_I2C_Read... [03:15:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:15:33]Read from MH i2c: E2 [03:15:33]MH_I2C_Read... [03:15:33]Read from MH i2c: E2 62 00 [03:15:33]MH_I2C_Read... [03:15:33]Read from MH i2c: E2 62 00 82 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 27 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [03:15:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 27 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:15:33]wFMCommunicate OK [03:15:33]SAM_PROTO_GetFieldsCounters done [03:15:33]requested_item shift.num is exist - process it [03:15:33]requested_item shift.opened is exist - process it [03:15:33]req_shift_opened [03:15:33]FM_GetShiftState [03:15:33]SAM_PROTO_GetShiftState [03:15:33]wFMCommunicate request_size=4 [03:15:33]MH_SAM_APDU [03:15:33]CAPDU: 80 13 01 00 [03:15:33]Write to MH i2c: E2 08 00 83 31 80 13 01 00 00 00 00 00 31 [03:15:33]Write i2c OK [03:15:33]MH_I2C_Read... [03:15:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:15:33]Read from MH i2c: E2 [03:15:33]MH_I2C_Read... [03:15:33]Read from MH i2c: E2 0E 00 [03:15:33]MH_I2C_Read... [03:15:33]Read from MH i2c: E2 0E 00 83 31 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 DF [03:15:33]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [03:15:33]wFMCommunicate OK [03:15:33]SAM_PROTO_GetShiftState done [03:15:33]FM_GetShiftState done [03:15:33]req_shift_opened done [03:15:33]requested_item shift.open_date is exist - process it [03:15:33]req_shift_open_date [03:15:33]req_shift_open_date done [03:15:33]produce_requested_data done [03:15:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29735,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [03:15:33]process_action_free close_receipt [03:15:33]json_value_free [03:15:33]json_value_free done [03:15:33]process_json_proto returns [03:15:33]Send response to host [03:15:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29735,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [03:15:33]free response buf [03:15:33]execute_script done [03:15:33]execute_script returns [03:15:33]free content buf [03:15:33]Sock 7.Close socket [03:15:33]Sock 7.Thread stoped [03:15:37]OFD Sender: No OFD packet to send [03:15:42]OFD Sender: No OFD packet to send [03:15:47]OFD Sender: No OFD packet to send [03:15:52]OFD Sender: No OFD packet to send [03:15:57]OFD Sender: No OFD packet to send [03:16:02]OFD Sender: No OFD packet to send [03:16:07]OFD Sender: No OFD packet to send [03:16:12]OFD Sender: No OFD packet to send [03:16:17]OFD Sender: No OFD packet to send [03:16:22]OFD Sender: No OFD packet to send [03:16:27]OFD Sender: No OFD packet to send [03:16:32]OFD Sender: No OFD packet to send [03:16:37]OFD Sender: No OFD packet to send [03:16:42]OFD Sender: No OFD packet to send [03:16:47]OFD Sender: No OFD packet to send [03:16:52]OFD Sender: No OFD packet to send [03:16:57]OFD Sender: No OFD packet to send [03:17:02]OFD Sender: No OFD packet to send [03:17:07]OFD Sender: No OFD packet to send [03:17:12]OFD Sender: No OFD packet to send [03:17:17]OFD Sender: No OFD packet to send [03:17:22]OFD Sender: No OFD packet to send [03:17:27]OFD Sender: No OFD packet to send [03:17:32]OFD Sender: No OFD packet to send [03:17:37]OFD Sender: No OFD packet to send [03:17:42]OFD Sender: No OFD packet to send [03:17:47]OFD Sender: No OFD packet to send [03:17:52]OFD Sender: No OFD packet to send [03:17:57]OFD Sender: No OFD packet to send [03:18:02]OFD Sender: No OFD packet to send [03:18:07]OFD Sender: No OFD packet to send [03:18:12]OFD Sender: No OFD packet to send [03:18:17]OFD Sender: No OFD packet to send [03:18:22]OFD Sender: No OFD packet to send [03:18:27]OFD Sender: No OFD packet to send [03:18:32]OFD Sender: No OFD packet to send [03:18:37]OFD Sender: No OFD packet to send [03:18:42]OFD Sender: No OFD packet to send [03:18:47]OFD Sender: No OFD packet to send [03:18:52]OFD Sender: No OFD packet to send [03:18:57]OFD Sender: No OFD packet to send [03:19:02]OFD Sender: No OFD packet to send [03:19:07]OFD Sender: No OFD packet to send [03:19:12]OFD Sender: No OFD packet to send [03:19:17]OFD Sender: No OFD packet to send [03:19:22]OFD Sender: No OFD packet to send [03:19:27]OFD Sender: No OFD packet to send [03:19:32]OFD Sender: No OFD packet to send [03:19:37]OFD Sender: No OFD packet to send [03:19:42]OFD Sender: No OFD packet to send [03:19:47]OFD Sender: No OFD packet to send [03:19:52]OFD Sender: No OFD packet to send [03:19:57]OFD Sender: No OFD packet to send [03:20:02]OFD Sender: No OFD packet to send [03:20:07]OFD Sender: No OFD packet to send [03:20:12]OFD Sender: No OFD packet to send [03:20:17]OFD Sender: No OFD packet to send [03:20:22]OFD Sender: No OFD packet to send [03:20:27]OFD Sender: No OFD packet to send [03:20:32]OFD Sender: No OFD packet to send [03:20:37]OFD Sender: No OFD packet to send [03:20:42]OFD Sender: No OFD packet to send [03:20:47]OFD Sender: No OFD packet to send [03:20:52]OFD Sender: No OFD packet to send [03:20:57]OFD Sender: No OFD packet to send [03:21:02]OFD Sender: No OFD packet to send [03:21:07]OFD Sender: No OFD packet to send [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send [03:21:32]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send [03:21:47]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:32]OFD Sender: No OFD packet to send [03:22:37]OFD Sender: No OFD packet to send [03:22:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:52]OFD Sender: No OFD packet to send [03:23:57]OFD Sender: No OFD packet to send [03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:12]OFD Sender: No OFD packet to send [03:24:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:52]OFD Sender: No OFD packet to send [03:25:57]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:17]OFD Sender: No OFD packet to send [03:26:22]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:32]OFD Sender: No OFD packet to send [03:26:37]OFD Sender: No OFD packet to send [03:26:42]OFD Sender: No OFD packet to send [03:26:47]OFD Sender: No OFD packet to send [03:26:52]OFD Sender: No OFD packet to send [03:26:57]OFD Sender: No OFD packet to send [03:27:02]OFD Sender: No OFD packet to send [03:27:07]OFD Sender: No OFD packet to send [03:27:12]OFD Sender: No OFD packet to send [03:27:17]OFD Sender: No OFD packet to send [03:27:22]OFD Sender: No OFD packet to send [03:27:27]OFD Sender: No OFD packet to send [03:27:32]OFD Sender: No OFD packet to send [03:27:37]OFD Sender: No OFD packet to send [03:27:42]OFD Sender: No OFD packet to send [03:27:47]OFD Sender: No OFD packet to send [03:27:52]OFD Sender: No OFD packet to send [03:27:57]OFD Sender: No OFD packet to send [03:28:02]OFD Sender: No OFD packet to send [03:28:07]OFD Sender: No OFD packet to send [03:28:12]OFD Sender: No OFD packet to send [03:28:17]OFD Sender: No OFD packet to send [03:28:22]OFD Sender: No OFD packet to send [03:28:27]OFD Sender: No OFD packet to send [03:28:32]OFD Sender: No OFD packet to send [03:28:37]OFD Sender: No OFD packet to send [03:28:42]OFD Sender: No OFD packet to send [03:28:47]OFD Sender: No OFD packet to send [03:28:52]OFD Sender: No OFD packet to send [03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:38]OFD Sender: No OFD packet to send [03:29:43]OFD Sender: No OFD packet to send [03:29:48]OFD Sender: No OFD packet to send [03:29:53]OFD Sender: No OFD packet to send [03:29:58]OFD Sender: No OFD packet to send [03:30:03]OFD Sender: No OFD packet to send [03:30:08]OFD Sender: No OFD packet to send [03:30:13]OFD Sender: No OFD packet to send [03:30:18]OFD Sender: No OFD packet to send [03:30:23]OFD Sender: No OFD packet to send [03:30:28]OFD Sender: No OFD packet to send [03:30:33]OFD Sender: No OFD packet to send [03:30:38]OFD Sender: No OFD packet to send [03:30:43]OFD Sender: No OFD packet to send [03:30:48]OFD Sender: No OFD packet to send [03:30:53]OFD Sender: No OFD packet to send [03:30:58]OFD Sender: No OFD packet to send [03:31:03]OFD Sender: No OFD packet to send [03:31:08]OFD Sender: No OFD packet to send [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:43]OFD Sender: No OFD packet to send [03:32:48]OFD Sender: No OFD packet to send [03:32:53]OFD Sender: No OFD packet to send [03:32:58]OFD Sender: No OFD packet to send [03:33:03]OFD Sender: No OFD packet to send [03:33:08]OFD Sender: No OFD packet to send [03:33:13]OFD Sender: No OFD packet to send [03:33:18]OFD Sender: No OFD packet to send [03:33:23]OFD Sender: No OFD packet to send [03:33:28]OFD Sender: No OFD packet to send [03:33:33]OFD Sender: No OFD packet to send [03:33:38]OFD Sender: No OFD packet to send [03:33:43]OFD Sender: No OFD packet to send [03:33:48]OFD Sender: No OFD packet to send [03:33:53]OFD Sender: No OFD packet to send [03:33:58]OFD Sender: No OFD packet to send [03:34:03]OFD Sender: No OFD packet to send [03:34:08]OFD Sender: No OFD packet to send [03:34:13]OFD Sender: No OFD packet to send [03:34:18]OFD Sender: No OFD packet to send [03:34:23]OFD Sender: No OFD packet to send [03:34:28]OFD Sender: No OFD packet to send [03:34:33]OFD Sender: No OFD packet to send [03:34:38]OFD Sender: No OFD packet to send [03:34:43]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:53]OFD Sender: No OFD packet to send [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:08]OFD Sender: No OFD packet to send [03:35:13]OFD Sender: No OFD packet to send [03:35:18]OFD Sender: No OFD packet to send [03:35:23]OFD Sender: No OFD packet to send [03:35:28]OFD Sender: No OFD packet to send [03:35:33]OFD Sender: No OFD packet to send [03:35:38]OFD Sender: No OFD packet to send [03:35:43]OFD Sender: No OFD packet to send [03:35:48]OFD Sender: No OFD packet to send [03:35:53]OFD Sender: No OFD packet to send [03:35:58]OFD Sender: No OFD packet to send [03:36:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [03:36:13]OFD Sender: No OFD packet to send [03:36:18]OFD Sender: No OFD packet to send [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:43]OFD Sender: No OFD packet to send [03:36:48]OFD Sender: No OFD packet to send [03:36:53]OFD Sender: No OFD packet to send [03:36:58]OFD Sender: No OFD packet to send [03:37:03]OFD Sender: No OFD packet to send [03:37:08]OFD Sender: No OFD packet to send [03:37:12]accept exits with 9 [03:37:12]New connection [03:37:12]New thread 3067108708 created [03:37:12]Thread 3066965348 joined [03:37:12]Waiting for new connection... [03:37:12] Sock 9.Parse request [03:37:12]Sock 9.Check first char [03:37:12]Sock 9.First char is OK [03:37:12]request: POST /json_proto HTTP/1.0 [03:37:12]Method: POST [03:37:12]URL: /json_proto [03:37:12]Method is POST - this is cgi request [03:37:12]url: /json_proto [03:37:12]query_string will be loaded in cgi processing [03:37:12]execute_cgi json_proto POST (null) [03:37:12]execute_cgi path=json_proto method=POST [03:37:12]POST find Content-Length [03:37:12]Host: 172.17.33.3:8080 [03:37:12]Content-Length: 679 [03:37:12]Content-Type: application/json [03:37:12] [03:37:12]POST finish read [03:37:12]Found Content-Length = 679 [03:37:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:37:12]execute_script... [03:37:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:37:12]POST & json_proto [03:37:12]process_json_proto [03:37:12]json parsed OK: [03:37:12]protocol is kg_v1.0 [03:37:12]action value=close_receipt [03:37:12]process_action close_receipt [03:37:12]cmd_close_receipt [03:37:12]MH_GetDate [03:37:12]Write to MH i2c: F0 00 00 84 31 A4 [03:37:12]Write i2c OK [03:37:12]MH_I2C_Read... [03:37:12]Read from MH i2c: F0 [03:37:12]MH_I2C_Read... [03:37:12]Read from MH i2c: F0 09 00 [03:37:12]MH_I2C_Read... [03:37:12]Read from MH i2c: F0 09 00 84 31 00 6B F2 1D 66 23 5B 8F 65 FF [03:37:12]GetLastDocTimeStamp 1713237333 [03:37:12]current date 1713238635 [03:37:12]FM_GetShiftState [03:37:12]SAM_PROTO_GetShiftState [03:37:12]wFMCommunicate request_size=4 [03:37:12]MH_SAM_APDU [03:37:12]CAPDU: 80 13 01 00 [03:37:12]Write to MH i2c: E2 08 00 85 31 80 13 01 00 00 00 00 00 33 [03:37:12]Write i2c OK [03:37:12]MH_I2C_Read... [03:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:37:12]Read from MH i2c: E2 [03:37:12]MH_I2C_Read... [03:37:12]Read from MH i2c: E2 0E 00 [03:37:12]MH_I2C_Read... [03:37:12]Read from MH i2c: E2 0E 00 85 31 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 E1 [03:37:12]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [03:37:12]wFMCommunicate OK [03:37:12]SAM_PROTO_GetShiftState done [03:37:12]FM_GetShiftState done [03:37:12]opened in 1713226843 [03:37:12]opened+sec_in_day 1713313243 [03:37:12]quantity*price = 100018 [03:37:12]sum+1 = 100020 [03:37:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 10 16.04.2024 03:37 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29736 ФПД: 154242614492367 1/tax-web-control/client/api/v1/ticket?date=20240416T033715&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29736&fm=154242614492367&tin=02508201610067®Number=0000138879044617&sum=100000 [03:37:13]StoreToDocumentArchive [03:37:13]shift 118 fd 29736 [03:37:13]save to /storage/0118/doc_00029736 [03:37:13]save last doc name /storage/0118/doc_00029736 to /storage/kkm_last_doc_name [03:37:13]save OK [03:37:13]Clear old archive folders... [03:37:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:37:13]tlvbuf is B6DCE300 [03:37:13]SAM_PROTO_ClearQueue [03:37:13]wFMCommunicate request_size=4 [03:37:13]MH_SAM_APDU [03:37:13]CAPDU: 80 09 00 00 [03:37:13]Write to MH i2c: E2 08 00 92 31 80 09 00 00 00 00 00 00 35 [03:37:13]Write i2c OK [03:37:13]MH_I2C_Read... [03:37:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:37:13]Read from MH i2c: E2 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: E2 03 00 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: E2 03 00 92 31 00 90 00 37 [03:37:13]RAPDU: 90 00 [03:37:13]wFMCommunicate OK [03:37:13]SAM_PROTO_ClearQueue done [03:37:13]KKMCreateOFDPacket [03:37:13]OFDProtocolAddRootSTLVToBuf [03:37:13]FM_MakeSignedData [03:37:13]FM_MakeSignedData [03:37:13]SAM_PROTO_SignData [03:37:13]wFMCommunicate request_size=4 [03:37:13]MH_SAM_APDU [03:37:13]CAPDU: 80 0D 01 02 [03:37:13]Write to MH i2c: E2 08 00 93 31 80 0D 01 02 00 00 00 00 3D [03:37:13]Write i2c OK [03:37:13]MH_I2C_Read... [03:37:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:37:13]Read from MH i2c: E2 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: E2 03 00 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: E2 03 00 93 31 00 90 00 38 [03:37:13]RAPDU: 90 00 [03:37:13]wFMCommunicate OK [03:37:13]wFMCommunicate request_size=255 [03:37:13]MH_SAM_APDU [03:37:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 6B F2 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 74 00 00 35 04 06 00 8C 48 68 3E [03:37:13]Write to MH i2c: E2 02 01 94 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 6B F2 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 74 00 00 35 04 06 00 8C 48 68 3E 00 00 36 [03:37:13]Write i2c OK [03:37:13]MH_I2C_Read... [03:37:13]OFD Sender: No OFD packet to send [03:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:37:13]Read from MH i2c: E2 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: E2 03 00 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: E2 03 00 94 31 00 90 00 39 [03:37:13]RAPDU: 90 00 [03:37:13]wFMCommunicate OK [03:37:13]wFMCommunicate request_size=7 [03:37:13]MH_SAM_APDU [03:37:13]CAPDU: 80 0D 02 02 02 FC CF [03:37:13]Write to MH i2c: E2 0A 00 95 31 80 0D 02 02 02 00 FC CF 00 00 0F [03:37:13]Write i2c OK [03:37:13]MH_I2C_Read... [03:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:37:13]Read from MH i2c: E2 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: E2 03 00 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: E2 03 00 95 31 00 90 00 3A [03:37:13]RAPDU: 90 00 [03:37:13]wFMCommunicate OK [03:37:13]wFMCommunicate request_size=4 [03:37:13]MH_SAM_APDU [03:37:13]CAPDU: 80 0D 03 02 [03:37:13]Write to MH i2c: E2 08 00 96 31 80 0D 03 02 00 00 00 00 42 [03:37:13]Write i2c OK [03:37:13]MH_I2C_Read... [03:37:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:37:13]Read from MH i2c: E2 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: E2 0B 00 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: E2 0B 00 96 31 00 F4 BB 39 4D 28 8A 99 F1 90 00 B4 [03:37:13]RAPDU: F4 BB 39 4D 28 8A 99 F1 90 00 [03:37:13]wFMCommunicate OK [03:37:13]SAM_PROTO_SignData done [03:37:13]FM_MakeSignedData done [03:37:13]CreateOFDProtocolMessage [03:37:13]wFMCommunicate request_size=4 [03:37:13]MH_SAM_APDU [03:37:13]CAPDU: 80 11 00 00 [03:37:13]Write to MH i2c: E2 08 00 97 31 80 11 00 00 00 00 00 00 42 [03:37:13]Write i2c OK [03:37:13]MH_I2C_Read... [03:37:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:37:13]Read from MH i2c: E2 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: E2 17 00 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: E2 17 00 97 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 91 [03:37:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:37:13]wFMCommunicate OK [03:37:13]CreateOFDProtocolMessage done [03:37:13]OFDSenderStorePacket 29736 [03:37:13]StoreOFDPacket docnum=29736 [03:37:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 C3 24 04 01 D3 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 6B F2 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 74 00 00 35 04 06 00 8C 48 68 3E FC CF F4 BB 39 4D 28 8A 99 F1 [03:37:13]CheckFolder [03:37:13]dirname=/storage/ofd_packets [03:37:13]CheckFolder done [03:37:13]ProducePacketName [03:37:13]name=ofd_packets/00029736 [03:37:13]NVStorageSaveData ofd_packets/00029736 [03:37:13]File name is /storage/ofd_packets/00029736 [03:37:13]Write 298 bytes [03:37:13]NVStorageSaveData done [03:37:13]OFDSenderStorePacket done [03:37:13]KKMCreateOFDPacket done [03:37:13]NVStorageSaveData kkm_last_timestamp [03:37:13]File name is /storage/kkm_last_timestamp [03:37:13]Write 4 bytes [03:37:13]NVStorageSaveData done [03:37:13]ExternCall_PrintAddStr [03:37:13]wPrintStart [03:37:13]Write to MH i2c: 01 00 00 98 31 C9 [03:37:13]Write i2c OK [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: 01 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: 01 07 00 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: 01 07 00 98 31 00 00 00 00 00 FF 0F DE [03:37:13]RasterBufferAndPrint [03:37:13]line Счет N : (1)348211 [03:37:13]line ИНН: 02508201610067 [03:37:13]line Контрольно-Кассовый Чек [03:37:13]line ПРОДАЖА [03:37:13]line ТРК (МРК, ГНК) : 51 [03:37:13]line Товар: 2710194210 [03:37:13]line ДТ-К-5 [03:37:13]line 13.720 * 72.90 [03:37:13]line = 1000.19 [03:37:13]line НДС 12% НСП 1% [03:37:13]line > о реализуемом товаре [03:37:13]line ОКРУГЛЕНИЕ: -0.19 [03:37:13]line ИТОГО: 1000.00 [03:37:13]line Внесено: 1000.00 [03:37:13]line СДАЧА: 0.00 [03:37:13]line НСП 1% : 8.85 [03:37:13]line НДС 12% : 106.21 [03:37:13]line Наличными: 1000.00 [03:37:13]line Безнал.: 0.00 [03:37:13]line Место: АЗС № 108 "Партнер Нефть" [03:37:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [03:37:13]line СНО: Общий режим [03:37:13]line Чек 10 16.04.2024 03:37 [03:37:13]line Смена: 118 ФФД: 1.0 [03:37:13]line ЗНМ: 0300000027 [03:37:13]line РНМ: 0000138879044617 [03:37:13]line Версия ККМ: 001 [03:37:13]line ФМ: 0000000000963154 [03:37:13]line ФД: 29736 [03:37:13]line ФПД: 154242614492367 [03:37:14]line 1/tax-web-control/client/api/v1/ticket?date=20240416T033715&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29736&fm=154242614492367&tin=02508201610067®Number=0000138879044617&sum=100000 [03:37:14]OFD Sender: Processing packet 29736 [packets to send 8, broken 7] [03:37:14]ProducePacketName [03:37:14]name=ofd_packets/00029736 [03:37:14]OFD Sender: To server: pG, [03:37:14]CommunicateWithHost lk.salyk.kg:30040 [03:37:14]ConnectInit lk.salyk.kg [03:37:14]written 0, free lines is 4095 [03:37:14]Connected sock=10 [03:37:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 C3 24 04 01 D3 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 6B F2 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 74 00 00 35 04 06 00 8C 48 68 3E FC CF F4 BB 39 4D 28 8A 99 F1 [03:37:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DB AA 47 00 D4 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 74 00 00 F4 03 04 00 0A 9D 1D 66 B6 04 01 00 00 BF 5F 76 7E 0E 76 19 6C [03:37:14]CommunicateWithHost err = 0 [03:37:14]CheckOFDResponse [03:37:14]1017 (14) - 77093643461234 [03:37:14]1041 (16) - 0000000000963154 [03:37:14]1040 (4) - 29736 [03:37:14]1012 (4) - 15.04.2024 21:32 [03:37:14]1206 (1) - 0 [03:37:14]OFD Sender: Remove packet 29736 [03:37:14]ProducePacketName [03:37:14]name=ofd_packets/00029736 [03:37:14]NVStorageDeleteData [03:37:14]Write to MH i2c: 01 00 00 C2 31 F3 [03:37:14]Write i2c OK [03:37:14]MH_I2C_Read... [03:37:14]Read from MH i2c: 01 [03:37:14]MH_I2C_Read... [03:37:14]Read from MH i2c: 01 07 00 [03:37:14]MH_I2C_Read... [03:37:14]Read from MH i2c: 01 07 00 C2 31 00 00 00 00 00 C0 0C C6 [03:37:14]RasterBufferAndPrint [03:37:14]line [03:37:14]line [03:37:14]line [03:37:14]line [03:37:14]line [03:37:14]written 0, free lines is 3268 [03:37:14]MH_Cut [03:37:14]Write to MH i2c: D1 01 00 C9 31 01 CC [03:37:14]Write i2c OK [03:37:14]MH_I2C_Read... [03:37:14]Read from MH i2c: D1 [03:37:14]MH_I2C_Read... [03:37:14]Read from MH i2c: D1 01 00 [03:37:14]MH_I2C_Read... [03:37:14]Read from MH i2c: D1 01 00 C9 31 00 CB [03:37:14]Write to MH i2c: 01 00 00 CA 31 FB [03:37:14]Write i2c OK [03:37:14]MH_I2C_Read... [03:37:14]OFD Sender: No OFD packet to send [03:37:15]*** Cut start [03:37:15]*** Partial cut [03:37:15]*** CUTSNS_PIN = 1 [03:37:15]*** CUTSNS_PIN = 0 [03:37:15]*** Brake cut motor [03:37:15]Read from MH i2c: 01 [03:37:15]MH_I2C_Read... [03:37:15]*** Stop cut motor [03:37:15]*** Cut end [03:37:15]Read from MH i2c: 01 07 00 [03:37:15]MH_I2C_Read... [03:37:15]Read from MH i2c: 01 07 00 CA 31 00 00 00 00 00 FF 0F 10 [03:37:15]process_action close_receipt done [03:37:15]requested_data is exist [03:37:15]produce_requested_data [03:37:15]requested_item fm.sn is exist - process it [03:37:15]wFMCommunicate request_size=4 [03:37:15]MH_SAM_APDU [03:37:15]CAPDU: 80 11 00 00 [03:37:15]Write to MH i2c: E2 08 00 CB 31 80 11 00 00 00 00 00 00 76 [03:37:15]Write i2c OK [03:37:15]MH_I2C_Read... [03:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:37:16]Read from MH i2c: E2 [03:37:16]MH_I2C_Read... [03:37:16]Read from MH i2c: E2 17 00 [03:37:16]MH_I2C_Read... [03:37:16]Read from MH i2c: E2 17 00 CB 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C5 [03:37:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:37:16]wFMCommunicate OK [03:37:16]requested_item fd.num is exist - process it [03:37:16]SAM_PROTO_GetFieldsCounters [03:37:16]wFMCommunicate request_size=4 [03:37:16]MH_SAM_APDU [03:37:16]CAPDU: 80 13 00 00 [03:37:16]Write to MH i2c: E2 08 00 CC 31 80 13 00 00 00 00 00 00 79 [03:37:16]Write i2c OK [03:37:16]MH_I2C_Read... [03:37:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:37:16]Read from MH i2c: E2 [03:37:16]MH_I2C_Read... [03:37:16]Read from MH i2c: E2 62 00 [03:37:16]MH_I2C_Read... [03:37:16]Read from MH i2c: E2 62 00 CC 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 28 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [03:37:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 28 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:37:16]wFMCommunicate OK [03:37:16]SAM_PROTO_GetFieldsCounters done [03:37:16]requested_item shift.num is exist - process it [03:37:16]requested_item shift.opened is exist - process it [03:37:16]req_shift_opened [03:37:16]FM_GetShiftState [03:37:16]SAM_PROTO_GetShiftState [03:37:16]wFMCommunicate request_size=4 [03:37:16]MH_SAM_APDU [03:37:16]CAPDU: 80 13 01 00 [03:37:16]Write to MH i2c: E2 08 00 CD 31 80 13 01 00 00 00 00 00 7B [03:37:16]Write i2c OK [03:37:16]MH_I2C_Read... [03:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:37:16]Read from MH i2c: E2 [03:37:16]MH_I2C_Read... [03:37:16]Read from MH i2c: E2 0E 00 [03:37:16]MH_I2C_Read... [03:37:16]Read from MH i2c: E2 0E 00 CD 31 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 29 [03:37:16]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [03:37:16]wFMCommunicate OK [03:37:16]SAM_PROTO_GetShiftState done [03:37:16]FM_GetShiftState done [03:37:16]req_shift_opened done [03:37:16]requested_item shift.open_date is exist - process it [03:37:16]req_shift_open_date [03:37:16]req_shift_open_date done [03:37:16]produce_requested_data done [03:37:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29736,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [03:37:16]process_action_free close_receipt [03:37:16]json_value_free [03:37:16]json_value_free done [03:37:16]process_json_proto returns [03:37:16]Send response to host [03:37:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29736,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [03:37:16]free response buf [03:37:16]execute_script done [03:37:16]execute_script returns [03:37:16]free content buf [03:37:16]Sock 9.Close socket [03:37:16]Sock 9.Thread stoped [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:34]OFD Sender: No OFD packet to send [03:39:39]OFD Sender: No OFD packet to send [03:39:44]OFD Sender: No OFD packet to send [03:39:49]OFD Sender: No OFD packet to send [03:39:54]OFD Sender: No OFD packet to send [03:39:59]OFD Sender: No OFD packet to send [03:40:04]OFD Sender: No OFD packet to send [03:40:09]OFD Sender: No OFD packet to send [03:40:14]OFD Sender: No OFD packet to send [03:40:19]OFD Sender: No OFD packet to send [03:40:24]OFD Sender: No OFD packet to send [03:40:29]OFD Sender: No OFD packet to send [03:40:34]OFD Sender: No OFD packet to send [03:40:39]OFD Sender: No OFD packet to send [03:40:44]OFD Sender: No OFD packet to send [03:40:49]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:40]OFD Sender: No OFD packet to send [03:51:45]OFD Sender: No OFD packet to send [03:51:50]OFD Sender: No OFD packet to send [03:51:55]OFD Sender: No OFD packet to send [03:52:00]OFD Sender: No OFD packet to send [03:52:05]OFD Sender: No OFD packet to send [03:52:10]OFD Sender: No OFD packet to send [03:52:15]OFD Sender: No OFD packet to send [03:52:20]OFD Sender: No OFD packet to send [03:52:25]OFD Sender: No OFD packet to send [03:52:30]OFD Sender: No OFD packet to send [03:52:35]OFD Sender: No OFD packet to send [03:52:40]OFD Sender: No OFD packet to send [03:52:45]OFD Sender: No OFD packet to send [03:52:50]OFD Sender: No OFD packet to send [03:52:55]OFD Sender: No OFD packet to send [03:53:00]OFD Sender: No OFD packet to send [03:53:05]OFD Sender: No OFD packet to send [03:53:10]OFD Sender: No OFD packet to send [03:53:15]OFD Sender: No OFD packet to send [03:53:20]OFD Sender: No OFD packet to send [03:53:25]OFD Sender: No OFD packet to send [03:53:30]OFD Sender: No OFD packet to send [03:53:35]OFD Sender: No OFD packet to send [03:53:40]OFD Sender: No OFD packet to send [03:53:45]OFD Sender: No OFD packet to send [03:53:50]OFD Sender: No OFD packet to send [03:53:55]OFD Sender: No OFD packet to send [03:54:00]OFD Sender: No OFD packet to send [03:54:05]OFD Sender: No OFD packet to send [03:54:10]OFD Sender: No OFD packet to send [03:54:15]OFD Sender: No OFD packet to send [03:54:20]OFD Sender: No OFD packet to send [03:54:25]OFD Sender: No OFD packet to send [03:54:30]OFD Sender: No OFD packet to send [03:54:35]OFD Sender: No OFD packet to send [03:54:40]OFD Sender: No OFD packet to send [03:54:45]OFD Sender: No OFD packet to send [03:54:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [04:00:00]OFD Sender: No OFD packet to send [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]accept exits with 7 [04:22:31]New connection [04:22:31]New thread 3066965348 created [04:22:31]Thread 3067108708 joined [04:22:31]Waiting for new connection... [04:22:31] Sock 7.Parse request [04:22:31]Sock 7.Check first char [04:22:31]Sock 7.First char is OK [04:22:31]request: POST /json_proto HTTP/1.0 [04:22:31]Method: POST [04:22:31]URL: /json_proto [04:22:31]Method is POST - this is cgi request [04:22:31]url: /json_proto [04:22:31]query_string will be loaded in cgi processing [04:22:31]execute_cgi json_proto POST (null) [04:22:31]execute_cgi path=json_proto method=POST [04:22:31]POST find Content-Length [04:22:31]Host: 172.17.33.3:8080 [04:22:31]Content-Length: 674 [04:22:31]Content-Type: application/json [04:22:31] [04:22:31]POST finish read [04:22:31]Found Content-Length = 674 [04:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "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" ] } } [04:22:31]execute_script... [04:22:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "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" ] } } [04:22:31]POST & json_proto [04:22:31]process_json_proto [04:22:31]json parsed OK: [04:22:31]protocol is kg_v1.0 [04:22:31]action value=close_receipt [04:22:31]process_action close_receipt [04:22:31]cmd_close_receipt [04:22:31]MH_GetDate [04:22:31]Write to MH i2c: F0 00 00 CE 31 EE [04:22:31]Write i2c OK [04:22:31]MH_I2C_Read... [04:22:31]Read from MH i2c: F0 [04:22:31]MH_I2C_Read... [04:22:31]Read from MH i2c: F0 09 00 [04:22:31]MH_I2C_Read... [04:22:31]Read from MH i2c: F0 09 00 CE 31 00 0B FD 1D 66 23 5B 8F 65 F4 [04:22:31]GetLastDocTimeStamp 1713238635 [04:22:31]current date 1713241355 [04:22:31]FM_GetShiftState [04:22:31]SAM_PROTO_GetShiftState [04:22:31]wFMCommunicate request_size=4 [04:22:31]MH_SAM_APDU [04:22:31]CAPDU: 80 13 01 00 [04:22:31]Write to MH i2c: E2 08 00 CF 31 80 13 01 00 00 00 00 00 7D [04:22:31]Write i2c OK [04:22:31]MH_I2C_Read... [04:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:31]Read from MH i2c: E2 [04:22:31]MH_I2C_Read... [04:22:31]Read from MH i2c: E2 0E 00 [04:22:31]MH_I2C_Read... [04:22:31]Read from MH i2c: E2 0E 00 CF 31 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 2B [04:22:31]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [04:22:31]wFMCommunicate OK [04:22:31]SAM_PROTO_GetShiftState done [04:22:31]FM_GetShiftState done [04:22:31]opened in 1713226843 [04:22:31]opened+sec_in_day 1713313243 [04:22:31]quantity*price = 70056 [04:22:31]sum+1 = 70058 [04:22:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 11 16.04.2024 04:22 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29737 ФПД: 162209901072558 1/tax-web-control/client/api/v1/ticket?date=20240416T042235&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29737&fm=162209901072558&tin=02508201610067®Number=0000138879044617&sum=70000 [04:22:32]StoreToDocumentArchive [04:22:32]shift 118 fd 29737 [04:22:32]save to /storage/0118/doc_00029737 [04:22:32]save last doc name /storage/0118/doc_00029737 to /storage/kkm_last_doc_name [04:22:32]save OK [04:22:32]Clear old archive folders... [04:22:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:22:32]tlvbuf is 01A9A060 [04:22:32]SAM_PROTO_ClearQueue [04:22:32]wFMCommunicate request_size=4 [04:22:32]MH_SAM_APDU [04:22:32]CAPDU: 80 09 00 00 [04:22:32]Write to MH i2c: E2 08 00 DC 31 80 09 00 00 00 00 00 00 7F [04:22:32]Write i2c OK [04:22:32]MH_I2C_Read... [04:22:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:22:32]Read from MH i2c: E2 [04:22:32]MH_I2C_Read... [04:22:32]Read from MH i2c: E2 03 00 [04:22:32]MH_I2C_Read... [04:22:32]Read from MH i2c: E2 03 00 DC 31 00 90 00 81 [04:22:32]RAPDU: 90 00 [04:22:32]wFMCommunicate OK [04:22:32]SAM_PROTO_ClearQueue done [04:22:32]KKMCreateOFDPacket [04:22:32]OFDProtocolAddRootSTLVToBuf [04:22:32]FM_MakeSignedData [04:22:32]FM_MakeSignedData [04:22:32]SAM_PROTO_SignData [04:22:32]wFMCommunicate request_size=4 [04:22:32]MH_SAM_APDU [04:22:32]CAPDU: 80 0D 01 02 [04:22:32]Write to MH i2c: E2 08 00 DD 31 80 0D 01 02 00 00 00 00 87 [04:22:32]Write i2c OK [04:22:32]MH_I2C_Read... [04:22:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:22:33]Read from MH i2c: E2 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 03 00 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 03 00 DD 31 00 90 00 82 [04:22:33]RAPDU: 90 00 [04:22:33]wFMCommunicate OK [04:22:33]wFMCommunicate request_size=255 [04:22:33]MH_SAM_APDU [04:22:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 0B 00 00 00 F4 03 04 00 0B FD 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 74 00 00 35 04 06 00 93 87 6F 88 [04:22:33]Write to MH i2c: E2 02 01 DE 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 0B 00 00 00 F4 03 04 00 0B FD 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 74 00 00 35 04 06 00 93 87 6F 88 00 00 5A [04:22:33]Write i2c OK [04:22:33]MH_I2C_Read... [04:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:33]Read from MH i2c: E2 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 03 00 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 03 00 DE 31 00 90 00 83 [04:22:33]RAPDU: 90 00 [04:22:33]wFMCommunicate OK [04:22:33]wFMCommunicate request_size=7 [04:22:33]MH_SAM_APDU [04:22:33]CAPDU: 80 0D 02 02 02 50 AE [04:22:33]Write to MH i2c: E2 0A 00 DF 31 80 0D 02 02 02 00 50 AE 00 00 8C [04:22:33]Write i2c OK [04:22:33]MH_I2C_Read... [04:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:33]Read from MH i2c: E2 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 03 00 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 03 00 DF 31 00 90 00 84 [04:22:33]RAPDU: 90 00 [04:22:33]wFMCommunicate OK [04:22:33]wFMCommunicate request_size=4 [04:22:33]MH_SAM_APDU [04:22:33]CAPDU: 80 0D 03 02 [04:22:33]Write to MH i2c: E2 08 00 E0 31 80 0D 03 02 00 00 00 00 8C [04:22:33]Write i2c OK [04:22:33]MH_I2C_Read... [04:22:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:22:33]Read from MH i2c: E2 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 0B 00 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 0B 00 E0 31 00 B9 5C EB 2D 0D 79 2F 21 90 00 90 [04:22:33]RAPDU: B9 5C EB 2D 0D 79 2F 21 90 00 [04:22:33]wFMCommunicate OK [04:22:33]SAM_PROTO_SignData done [04:22:33]FM_MakeSignedData done [04:22:33]CreateOFDProtocolMessage [04:22:33]wFMCommunicate request_size=4 [04:22:33]MH_SAM_APDU [04:22:33]CAPDU: 80 11 00 00 [04:22:33]Write to MH i2c: E2 08 00 E1 31 80 11 00 00 00 00 00 00 8C [04:22:33]Write i2c OK [04:22:33]MH_I2C_Read... [04:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:33]Read from MH i2c: E2 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 17 00 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 17 00 E1 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DB [04:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [04:22:33]wFMCommunicate OK [04:22:33]CreateOFDProtocolMessage done [04:22:33]OFDSenderStorePacket 29737 [04:22:33]StoreOFDPacket docnum=29737 [04:22:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 3F 42 04 01 7A A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 0B 00 00 00 F4 03 04 00 0B FD 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 74 00 00 35 04 06 00 93 87 6F 88 50 AE B9 5C EB 2D 0D 79 2F 21 [04:22:33]CheckFolder [04:22:33]dirname=/storage/ofd_packets [04:22:33]CheckFolder done [04:22:33]ProducePacketName [04:22:33]name=ofd_packets/00029737 [04:22:33]NVStorageSaveData ofd_packets/00029737 [04:22:33]File name is /storage/ofd_packets/00029737 [04:22:33]Write 298 bytes [04:22:33]NVStorageSaveData done [04:22:33]OFDSenderStorePacket done [04:22:33]KKMCreateOFDPacket done [04:22:33]NVStorageSaveData kkm_last_timestamp [04:22:33]File name is /storage/kkm_last_timestamp [04:22:33]Write 4 bytes [04:22:33]NVStorageSaveData done [04:22:33]ExternCall_PrintAddStr [04:22:33]wPrintStart [04:22:33]Write to MH i2c: 01 00 00 E2 31 13 [04:22:33]Write i2c OK [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: 01 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: 01 07 00 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: 01 07 00 E2 31 00 00 00 00 00 FF 0F 28 [04:22:33]RasterBufferAndPrint [04:22:33]line Счет N : (1)348212 [04:22:33]line ИНН: 02508201610067 [04:22:33]line Контрольно-Кассовый Чек [04:22:33]line ПРОДАЖА [04:22:33]line ТРК (МРК, ГНК) : 11 [04:22:33]line Товар: 2710194210 [04:22:33]line ДТ-К-5 [04:22:33]line 9.610 * 72.90 [04:22:33]line = 700.57 [04:22:33]line НДС 12% НСП 1% [04:22:33]line > о реализуемом товаре [04:22:33]line ОКРУГЛЕНИЕ: -0.57 [04:22:33]line ИТОГО: 700.00 [04:22:33]line Внесено: 700.00 [04:22:33]line СДАЧА: 0.00 [04:22:33]line НСП 1% : 6.20 [04:22:33]line НДС 12% : 74.40 [04:22:33]line Наличными: 700.00 [04:22:33]line Безнал.: 0.00 [04:22:33]line Место: АЗС № 108 "Партнер Нефть" [04:22:33]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [04:22:33]line СНО: Общий режим [04:22:33]line Чек 11 16.04.2024 04:22 [04:22:33]line Смена: 118 ФФД: 1.0 [04:22:33]line ЗНМ: 0300000027 [04:22:33]line РНМ: 0000138879044617 [04:22:33]line Версия ККМ: 001 [04:22:33]line ФМ: 0000000000963154 [04:22:33]line ФД: 29737 [04:22:33]line ФПД: 162209901072558 [04:22:33]line 1/tax-web-control/client/api/v1/ticket?date=20240416T042235&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29737&fm=162209901072558&tin=02508201610067®Number=0000138879044617&sum=70000 [04:22:33]OFD Sender: Processing packet 29737 [packets to send 8, broken 7] [04:22:33]ProducePacketName [04:22:33]name=ofd_packets/00029737 [04:22:33]OFD Sender: To server: pG, [04:22:33]CommunicateWithHost lk.salyk.kg:30040 [04:22:33]ConnectInit lk.salyk.kg [04:22:33]written 0, free lines is 4095 [04:22:33]Connected sock=10 [04:22:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 3F 42 04 01 7A A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 0B 00 00 00 F4 03 04 00 0B FD 1D 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 74 00 00 35 04 06 00 93 87 6F 88 50 AE B9 5C EB 2D 0D 79 2F 21 [04:22:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 64 EC 47 00 CD E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 74 00 00 F4 03 04 00 AA A7 1D 66 B6 04 01 00 00 F7 1A BA 01 C0 D9 BC 0A [04:22:34]CommunicateWithHost err = 0 [04:22:34]CheckOFDResponse [04:22:34]1017 (14) - 77093643461234 [04:22:34]1041 (16) - 0000000000963154 [04:22:34]1040 (4) - 29737 [04:22:34]1012 (4) - 15.04.2024 22:18 [04:22:34]1206 (1) - 0 [04:22:34]OFD Sender: Remove packet 29737 [04:22:34]ProducePacketName [04:22:34]name=ofd_packets/00029737 [04:22:34]NVStorageDeleteData [04:22:34]Write to MH i2c: 01 00 00 0C 32 3E [04:22:34]Write i2c OK [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: 01 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: 01 07 00 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: 01 07 00 0C 32 00 00 00 00 00 B7 0C 08 [04:22:34]RasterBufferAndPrint [04:22:34]line [04:22:34]line [04:22:34]line [04:22:34]line [04:22:34]line [04:22:34]written 0, free lines is 3261 [04:22:34]MH_Cut [04:22:34]Write to MH i2c: D1 01 00 13 32 01 17 [04:22:34]Write i2c OK [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: D1 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: D1 01 00 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: D1 01 00 13 32 00 16 [04:22:34]Write to MH i2c: 01 00 00 14 32 46 [04:22:34]Write i2c OK [04:22:34]MH_I2C_Read... [04:22:34]OFD Sender: No OFD packet to send [04:22:35]*** Cut start [04:22:35]*** Partial cut [04:22:35]*** CUTSNS_PIN = 1 [04:22:35]*** CUTSNS_PIN = 0 [04:22:35]*** Brake cut motor [04:22:35]Read from MH i2c: 01 [04:22:35]MH_I2C_Read... [04:22:35]*** Stop cut motor [04:22:35]*** Cut end [04:22:35]Read from MH i2c: 01 07 00 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: 01 07 00 14 32 00 00 00 00 00 FF 0F 5B [04:22:35]process_action close_receipt done [04:22:35]requested_data is exist [04:22:35]produce_requested_data [04:22:35]requested_item fm.sn is exist - process it [04:22:35]wFMCommunicate request_size=4 [04:22:35]MH_SAM_APDU [04:22:35]CAPDU: 80 11 00 00 [04:22:35]Write to MH i2c: E2 08 00 15 32 80 11 00 00 00 00 00 00 C1 [04:22:35]Write i2c OK [04:22:35]MH_I2C_Read... [04:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:35]Read from MH i2c: E2 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: E2 17 00 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: E2 17 00 15 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 10 [04:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [04:22:35]wFMCommunicate OK [04:22:35]requested_item fd.num is exist - process it [04:22:35]SAM_PROTO_GetFieldsCounters [04:22:35]wFMCommunicate request_size=4 [04:22:35]MH_SAM_APDU [04:22:35]CAPDU: 80 13 00 00 [04:22:35]Write to MH i2c: E2 08 00 16 32 80 13 00 00 00 00 00 00 C4 [04:22:35]Write i2c OK [04:22:35]MH_I2C_Read... [04:22:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:22:35]Read from MH i2c: E2 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: E2 62 00 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: E2 62 00 16 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 29 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [04:22:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 29 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:22:35]wFMCommunicate OK [04:22:35]SAM_PROTO_GetFieldsCounters done [04:22:35]requested_item shift.num is exist - process it [04:22:35]requested_item shift.opened is exist - process it [04:22:35]req_shift_opened [04:22:35]FM_GetShiftState [04:22:35]SAM_PROTO_GetShiftState [04:22:35]wFMCommunicate request_size=4 [04:22:35]MH_SAM_APDU [04:22:35]CAPDU: 80 13 01 00 [04:22:35]Write to MH i2c: E2 08 00 17 32 80 13 01 00 00 00 00 00 C6 [04:22:35]Write i2c OK [04:22:35]MH_I2C_Read... [04:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:35]Read from MH i2c: E2 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: E2 0E 00 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: E2 0E 00 17 32 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 74 [04:22:35]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [04:22:35]wFMCommunicate OK [04:22:35]SAM_PROTO_GetShiftState done [04:22:35]FM_GetShiftState done [04:22:35]req_shift_opened done [04:22:35]requested_item shift.open_date is exist - process it [04:22:35]req_shift_open_date [04:22:35]req_shift_open_date done [04:22:35]produce_requested_data done [04:22:35]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29737,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [04:22:35]process_action_free close_receipt [04:22:35]json_value_free [04:22:35]json_value_free done [04:22:35]process_json_proto returns [04:22:35]Send response to host [04:22:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29737,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [04:22:35]free response buf [04:22:35]execute_script done [04:22:35]execute_script returns [04:22:35]free content buf [04:22:35]Sock 7.Close socket [04:22:35]Sock 7.Thread stoped [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]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:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:12]accept exits with 9 [06:16:12]New connection [06:16:12]New thread 3067108708 created [06:16:12]Thread 3066965348 joined [06:16:12]Waiting for new connection... [06:16:12] Sock 9.Parse request [06:16:12]Sock 9.Check first char [06:16:12]Sock 9.First char is OK [06:16:12]request: POST /json_proto HTTP/1.0 [06:16:12]Method: POST [06:16:12]URL: /json_proto [06:16:12]Method is POST - this is cgi request [06:16:12]url: /json_proto [06:16:12]query_string will be loaded in cgi processing [06:16:12]execute_cgi json_proto POST (null) [06:16:12]execute_cgi path=json_proto method=POST [06:16:12]POST find Content-Length [06:16:12]Host: 172.17.33.3:8080 [06:16:12]Content-Length: 675 [06:16:12]Content-Type: application/json [06:16:12] [06:16:12]POST finish read [06:16:12]Found Content-Length = 675 [06:16:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 25.080, "sum" : 1650.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1650.00, "total" : 1650.00, "payments": [ { "type": 0, "sum" : 1650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:16:12]execute_script... [06:16:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 25.080, "sum" : 1650.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1650.00, "total" : 1650.00, "payments": [ { "type": 0, "sum" : 1650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:16:12]POST & json_proto [06:16:12]process_json_proto [06:16:12]json parsed OK: [06:16:12]protocol is kg_v1.0 [06:16:12]action value=close_receipt [06:16:12]process_action close_receipt [06:16:12]cmd_close_receipt [06:16:12]MH_GetDate [06:16:12]Write to MH i2c: F0 00 00 18 32 39 [06:16:12]Write i2c OK [06:16:12]MH_I2C_Read... [06:16:12]Read from MH i2c: F0 [06:16:12]MH_I2C_Read... [06:16:12]Read from MH i2c: F0 09 00 [06:16:12]MH_I2C_Read... [06:16:12]Read from MH i2c: F0 09 00 18 32 00 B1 17 1E 66 23 5B 8F 65 00 [06:16:12]GetLastDocTimeStamp 1713241355 [06:16:12]current date 1713248177 [06:16:12]FM_GetShiftState [06:16:12]SAM_PROTO_GetShiftState [06:16:12]wFMCommunicate request_size=4 [06:16:12]MH_SAM_APDU [06:16:12]CAPDU: 80 13 01 00 [06:16:12]Write to MH i2c: E2 08 00 19 32 80 13 01 00 00 00 00 00 C8 [06:16:12]Write i2c OK [06:16:12]MH_I2C_Read... [06:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:16:13]Read from MH i2c: E2 [06:16:13]MH_I2C_Read... [06:16:13]Read from MH i2c: E2 0E 00 [06:16:13]MH_I2C_Read... [06:16:13]Read from MH i2c: E2 0E 00 19 32 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 76 [06:16:13]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [06:16:13]wFMCommunicate OK [06:16:13]SAM_PROTO_GetShiftState done [06:16:13]FM_GetShiftState done [06:16:13]opened in 1713226843 [06:16:13]opened+sec_in_day 1713313243 [06:16:13]quantity*price = 165026 [06:16:13]sum+1 = 165027 [06:16:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 1650.00 Внесено: 1650.00 СДАЧА: 0.00 НСП 1% : 14.60 НДС 12% : 175.25 Наличными: 1650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 12 16.04.2024 06:16 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29738 ФПД: 166907136053584 1/tax-web-control/client/api/v1/ticket?date=20240416T061617&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29738&fm=166907136053584&tin=02508201610067®Number=0000138879044617&sum=165000 [06:16:14]StoreToDocumentArchive [06:16:14]shift 118 fd 29738 [06:16:14]save to /storage/0118/doc_00029738 [06:16:14]save last doc name /storage/0118/doc_00029738 to /storage/kkm_last_doc_name [06:16:14]save OK [06:16:14]Clear old archive folders... [06:16:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:16:14]tlvbuf is B6F7B0F0 [06:16:14]SAM_PROTO_ClearQueue [06:16:14]wFMCommunicate request_size=4 [06:16:14]MH_SAM_APDU [06:16:14]CAPDU: 80 09 00 00 [06:16:14]Write to MH i2c: E2 08 00 26 32 80 09 00 00 00 00 00 00 CA [06:16:14]Write i2c OK [06:16:14]MH_I2C_Read... [06:16:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:16:14]Read from MH i2c: E2 [06:16:14]MH_I2C_Read... [06:16:14]Read from MH i2c: E2 03 00 [06:16:14]MH_I2C_Read... [06:16:14]Read from MH i2c: E2 03 00 26 32 00 90 00 CC [06:16:14]RAPDU: 90 00 [06:16:14]wFMCommunicate OK [06:16:14]SAM_PROTO_ClearQueue done [06:16:14]KKMCreateOFDPacket [06:16:14]OFDProtocolAddRootSTLVToBuf [06:16:14]FM_MakeSignedData [06:16:14]FM_MakeSignedData [06:16:14]SAM_PROTO_SignData [06:16:14]wFMCommunicate request_size=4 [06:16:14]MH_SAM_APDU [06:16:14]CAPDU: 80 0D 01 02 [06:16:14]Write to MH i2c: E2 08 00 27 32 80 0D 01 02 00 00 00 00 D2 [06:16:14]Write i2c OK [06:16:14]MH_I2C_Read... [06:16:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:16:14]Read from MH i2c: E2 [06:16:14]MH_I2C_Read... [06:16:14]Read from MH i2c: E2 03 00 [06:16:14]MH_I2C_Read... [06:16:14]Read from MH i2c: E2 03 00 27 32 00 90 00 CD [06:16:14]RAPDU: 90 00 [06:16:14]wFMCommunicate OK [06:16:14]wFMCommunicate request_size=255 [06:16:14]MH_SAM_APDU [06:16:14]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 61 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A2 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 44 00 00 00 00 07 04 06 00 88 84 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 B1 17 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 74 00 00 35 04 06 00 [06:16:14]Write to MH i2c: E2 02 01 28 32 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 61 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A2 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 44 00 00 00 00 07 04 06 00 88 84 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 B1 17 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 74 00 00 35 04 06 00 00 00 EB [06:16:14]Write i2c OK [06:16:14]MH_I2C_Read... [06:16:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:16:14]Read from MH i2c: E2 [06:16:14]MH_I2C_Read... [06:16:14]Read from MH i2c: E2 03 00 [06:16:14]MH_I2C_Read... [06:16:14]Read from MH i2c: E2 03 00 28 32 00 90 00 CE [06:16:14]RAPDU: 90 00 [06:16:14]wFMCommunicate OK [06:16:14]wFMCommunicate request_size=11 [06:16:14]MH_SAM_APDU [06:16:14]CAPDU: 80 0D 02 02 06 97 CD 18 8E 11 50 [06:16:14]Write to MH i2c: E2 0E 00 29 32 80 0D 02 02 06 00 97 CD 18 8E 11 50 00 00 4C [06:16:14]Write i2c OK [06:16:14]MH_I2C_Read... [06:16:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:16:14]Read from MH i2c: E2 [06:16:14]MH_I2C_Read... [06:16:14]Read from MH i2c: E2 03 00 [06:16:14]MH_I2C_Read... [06:16:14]Read from MH i2c: E2 03 00 29 32 00 90 00 CF [06:16:14]RAPDU: 90 00 [06:16:14]wFMCommunicate OK [06:16:14]wFMCommunicate request_size=4 [06:16:14]MH_SAM_APDU [06:16:14]CAPDU: 80 0D 03 02 [06:16:14]Write to MH i2c: E2 08 00 2A 32 80 0D 03 02 00 00 00 00 D7 [06:16:14]Write i2c OK [06:16:14]MH_I2C_Read... [06:16:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:16:14]Read from MH i2c: E2 [06:16:14]MH_I2C_Read... [06:16:14]Read from MH i2c: E2 0B 00 [06:16:14]MH_I2C_Read... [06:16:14]Read from MH i2c: E2 0B 00 2A 32 00 47 02 8B 62 22 9F AF E3 90 00 61 [06:16:14]RAPDU: 47 02 8B 62 22 9F AF E3 90 00 [06:16:14]wFMCommunicate OK [06:16:14]SAM_PROTO_SignData done [06:16:14]FM_MakeSignedData done [06:16:14]CreateOFDProtocolMessage [06:16:14]wFMCommunicate request_size=4 [06:16:14]MH_SAM_APDU [06:16:14]CAPDU: 80 11 00 00 [06:16:14]Write to MH i2c: E2 08 00 2B 32 80 11 00 00 00 00 00 00 D7 [06:16:14]Write i2c OK [06:16:14]MH_I2C_Read... [06:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:16:14]Read from MH i2c: E2 [06:16:14]MH_I2C_Read... [06:16:14]Read from MH i2c: E2 17 00 [06:16:14]MH_I2C_Read... [06:16:14]Read from MH i2c: E2 17 00 2B 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 26 [06:16:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:16:14]wFMCommunicate OK [06:16:14]CreateOFDProtocolMessage done [06:16:14]OFDSenderStorePacket 29738 [06:16:14]StoreOFDPacket docnum=29738 [06:16:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D8 49 08 01 57 24 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 61 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A2 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 44 00 00 00 00 07 04 06 00 88 84 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 B1 17 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 74 00 00 35 04 06 00 97 CD 18 8E 11 50 47 02 8B 62 22 9F AF E3 [06:16:14]CheckFolder [06:16:14]dirname=/storage/ofd_packets [06:16:14]CheckFolder done [06:16:14]ProducePacketName [06:16:14]name=ofd_packets/00029738 [06:16:14]NVStorageSaveData ofd_packets/00029738 [06:16:14]File name is /storage/ofd_packets/00029738 [06:16:14]Write 302 bytes [06:16:14]NVStorageSaveData done [06:16:14]OFDSenderStorePacket done [06:16:14]KKMCreateOFDPacket done [06:16:14]NVStorageSaveData kkm_last_timestamp [06:16:14]File name is /storage/kkm_last_timestamp [06:16:14]Write 4 bytes [06:16:14]NVStorageSaveData done [06:16:14]ExternCall_PrintAddStr [06:16:14]wPrintStart [06:16:14]Write to MH i2c: 01 00 00 2C 32 5E [06:16:14]Write i2c OK [06:16:14]MH_I2C_Read... [06:16:14]Read from MH i2c: 01 [06:16:14]MH_I2C_Read... [06:16:14]Read from MH i2c: 01 07 00 [06:16:14]MH_I2C_Read... [06:16:14]Read from MH i2c: 01 07 00 2C 32 00 00 00 00 00 FF 0F 73 [06:16:14]RasterBufferAndPrint [06:16:14]line Счет N : (1)348213 [06:16:14]line ИНН: 02508201610067 [06:16:14]line Контрольно-Кассовый Чек [06:16:14]line ПРОДАЖА [06:16:14]line ТРК (МРК, ГНК) : 31 [06:16:14]line Товар: 2710124130 [06:16:14]line SUPER-92-К-5 [06:16:14]line 25.080 * 65.80 [06:16:14]line = 1650.26 [06:16:14]line НДС 12% НСП 1% [06:16:14]line > о реализуемом товаре [06:16:14]line ОКРУГЛЕНИЕ: -0.26 [06:16:14]line ИТОГО: 1650.00 [06:16:14]line Внесено: 1650.00 [06:16:14]line СДАЧА: 0.00 [06:16:14]line НСП 1% : 14.60 [06:16:14]line НДС 12% : 175.25 [06:16:14]line Наличными: 1650.00 [06:16:14]line Безнал.: 0.00 [06:16:14]line Место: АЗС № 108 "Партнер Нефть" [06:16:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:16:14]line СНО: Общий режим [06:16:14]line Чек 12 16.04.2024 06:16 [06:16:14]line Смена: 118 ФФД: 1.0 [06:16:14]line ЗНМ: 0300000027 [06:16:14]line РНМ: 0000138879044617 [06:16:14]line Версия ККМ: 001 [06:16:14]line ФМ: 0000000000963154 [06:16:14]line ФД: 29738 [06:16:14]line ФПД: 166907136053584 [06:16:14]line 1/tax-web-control/client/api/v1/ticket?date=20240416T061617&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29738&fm=166907136053584&tin=02508201610067®Number=0000138879044617&sum=165000 [06:16:15]OFD Sender: Processing packet 29738 [packets to send 8, broken 7] [06:16:15]ProducePacketName [06:16:15]name=ofd_packets/00029738 [06:16:15]OFD Sender: To server: pG, [06:16:15]CommunicateWithHost lk.salyk.kg:30040 [06:16:15]ConnectInit lk.salyk.kg [06:16:15]written 0, free lines is 4095 [06:16:15]Connected sock=10 [06:16:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D8 49 08 01 57 24 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 61 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 A2 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 44 00 00 00 00 07 04 06 00 88 84 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 B1 17 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 74 00 00 35 04 06 00 97 CD 18 8E 11 50 47 02 8B 62 22 9F AF E3 [06:16:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9B 0E 47 00 82 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 74 00 00 F4 03 04 00 4F C2 1D 66 B6 04 01 00 00 19 AE 83 E9 A5 EA 57 80 [06:16:15]CommunicateWithHost err = 0 [06:16:15]CheckOFDResponse [06:16:15]1017 (14) - 77093643461234 [06:16:15]1041 (16) - 0000000000963154 [06:16:15]1040 (4) - 29738 [06:16:15]1012 (4) - 16.04.2024 00:11 [06:16:15]1206 (1) - 0 [06:16:15]OFD Sender: Remove packet 29738 [06:16:15]ProducePacketName [06:16:15]name=ofd_packets/00029738 [06:16:15]NVStorageDeleteData [06:16:15]Write to MH i2c: 01 00 00 56 32 88 [06:16:15]Write i2c OK [06:16:15]MH_I2C_Read... [06:16:15]Read from MH i2c: 01 [06:16:15]MH_I2C_Read... [06:16:15]Read from MH i2c: 01 07 00 [06:16:15]MH_I2C_Read... [06:16:15]Read from MH i2c: 01 07 00 56 32 00 00 00 00 00 C6 0C 61 [06:16:15]RasterBufferAndPrint [06:16:15]line [06:16:15]line [06:16:15]line [06:16:15]line [06:16:15]line [06:16:15]written 0, free lines is 3275 [06:16:15]MH_Cut [06:16:15]Write to MH i2c: D1 01 00 5D 32 01 61 [06:16:15]Write i2c OK [06:16:15]MH_I2C_Read... [06:16:15]Read from MH i2c: D1 [06:16:15]MH_I2C_Read... [06:16:15]Read from MH i2c: D1 01 00 [06:16:15]MH_I2C_Read... [06:16:15]Read from MH i2c: D1 01 00 5D 32 00 60 [06:16:15]Write to MH i2c: 01 00 00 5E 32 90 [06:16:15]Write i2c OK [06:16:15]MH_I2C_Read... [06:16:15]OFD Sender: No OFD packet to send [06:16:16]*** Cut start [06:16:16]*** Partial cut [06:16:16]*** CUTSNS_PIN = 1 [06:16:16]*** CUTSNS_PIN = 0 [06:16:16]*** Brake cut motor [06:16:16]Read from MH i2c: 01 [06:16:16]MH_I2C_Read... [06:16:16]*** Stop cut motor [06:16:16]*** Cut end [06:16:16]Read from MH i2c: 01 07 00 [06:16:16]MH_I2C_Read... [06:16:16]Read from MH i2c: 01 07 00 5E 32 00 00 00 00 00 FF 0F A5 [06:16:16]process_action close_receipt done [06:16:16]requested_data is exist [06:16:16]produce_requested_data [06:16:16]requested_item fm.sn is exist - process it [06:16:16]wFMCommunicate request_size=4 [06:16:16]MH_SAM_APDU [06:16:16]CAPDU: 80 11 00 00 [06:16:16]Write to MH i2c: E2 08 00 5F 32 80 11 00 00 00 00 00 00 0B [06:16:16]Write i2c OK [06:16:16]MH_I2C_Read... [06:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:16:16]Read from MH i2c: E2 [06:16:16]MH_I2C_Read... [06:16:16]Read from MH i2c: E2 17 00 [06:16:16]MH_I2C_Read... [06:16:16]Read from MH i2c: E2 17 00 5F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5A [06:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:16:16]wFMCommunicate OK [06:16:16]requested_item fd.num is exist - process it [06:16:16]SAM_PROTO_GetFieldsCounters [06:16:16]wFMCommunicate request_size=4 [06:16:16]MH_SAM_APDU [06:16:16]CAPDU: 80 13 00 00 [06:16:16]Write to MH i2c: E2 08 00 60 32 80 13 00 00 00 00 00 00 0E [06:16:16]Write i2c OK [06:16:16]MH_I2C_Read... [06:16:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:16:17]Read from MH i2c: E2 [06:16:17]MH_I2C_Read... [06:16:17]Read from MH i2c: E2 62 00 [06:16:17]MH_I2C_Read... [06:16:17]Read from MH i2c: E2 62 00 60 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2A 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [06:16:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2A 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:16:17]wFMCommunicate OK [06:16:17]SAM_PROTO_GetFieldsCounters done [06:16:17]requested_item shift.num is exist - process it [06:16:17]requested_item shift.opened is exist - process it [06:16:17]req_shift_opened [06:16:17]FM_GetShiftState [06:16:17]SAM_PROTO_GetShiftState [06:16:17]wFMCommunicate request_size=4 [06:16:17]MH_SAM_APDU [06:16:17]CAPDU: 80 13 01 00 [06:16:17]Write to MH i2c: E2 08 00 61 32 80 13 01 00 00 00 00 00 10 [06:16:17]Write i2c OK [06:16:17]MH_I2C_Read... [06:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:16:17]Read from MH i2c: E2 [06:16:17]MH_I2C_Read... [06:16:17]Read from MH i2c: E2 0E 00 [06:16:17]MH_I2C_Read... [06:16:17]Read from MH i2c: E2 0E 00 61 32 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 BE [06:16:17]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [06:16:17]wFMCommunicate OK [06:16:17]SAM_PROTO_GetShiftState done [06:16:17]FM_GetShiftState done [06:16:17]req_shift_opened done [06:16:17]requested_item shift.open_date is exist - process it [06:16:17]req_shift_open_date [06:16:17]req_shift_open_date done [06:16:17]produce_requested_data done [06:16:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29738,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [06:16:17]process_action_free close_receipt [06:16:17]json_value_free [06:16:17]json_value_free done [06:16:17]process_json_proto returns [06:16:17]Send response to host [06:16:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29738,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [06:16:17]free response buf [06:16:17]execute_script done [06:16:17]execute_script returns [06:16:17]free content buf [06:16:17]Sock 9.Close socket [06:16:17]Sock 9.Thread stoped [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:29]accept exits with 7 [06:28:29]New connection [06:28:29]New thread 3066965348 created [06:28:29]Thread 3067108708 joined [06:28:29]Waiting for new connection... [06:28:29] Sock 7.Parse request [06:28:29]Sock 7.Check first char [06:28:29]Sock 7.First char is OK [06:28:29]request: POST /json_proto HTTP/1.0 [06:28:29]Method: POST [06:28:29]URL: /json_proto [06:28:29]Method is POST - this is cgi request [06:28:29]url: /json_proto [06:28:29]query_string will be loaded in cgi processing [06:28:29]execute_cgi json_proto POST (null) [06:28:29]execute_cgi path=json_proto method=POST [06:28:29]POST find Content-Length [06:28:29]Host: 172.17.33.3:8080 [06:28:29]Content-Length: 682 [06:28:29]Content-Type: application/json [06:28:29] [06:28:29]POST finish read [06:28:29]Found Content-Length = 682 [06:28:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 29.420, "sum" : 982.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 982.00, "payments": [ { "type": 0, "sum" : 982.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:29]execute_script... [06:28:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 29.420, "sum" : 982.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 982.00, "payments": [ { "type": 0, "sum" : 982.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:29]POST & json_proto [06:28:29]process_json_proto [06:28:29]json parsed OK: [06:28:29]protocol is kg_v1.0 [06:28:29]action value=close_receipt [06:28:29]process_action close_receipt [06:28:29]cmd_close_receipt [06:28:29]MH_GetDate [06:28:29]Write to MH i2c: F0 00 00 62 32 83 [06:28:29]Write i2c OK [06:28:29]MH_I2C_Read... [06:28:29]Read from MH i2c: F0 [06:28:29]MH_I2C_Read... [06:28:29]Read from MH i2c: F0 09 00 [06:28:29]MH_I2C_Read... [06:28:29]Read from MH i2c: F0 09 00 62 32 00 91 1A 1E 66 23 5B 8F 65 2D [06:28:29]GetLastDocTimeStamp 1713248177 [06:28:29]current date 1713248913 [06:28:29]FM_GetShiftState [06:28:29]SAM_PROTO_GetShiftState [06:28:29]wFMCommunicate request_size=4 [06:28:29]MH_SAM_APDU [06:28:29]CAPDU: 80 13 01 00 [06:28:29]Write to MH i2c: E2 08 00 63 32 80 13 01 00 00 00 00 00 12 [06:28:29]Write i2c OK [06:28:29]MH_I2C_Read... [06:28:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:29]Read from MH i2c: E2 [06:28:29]MH_I2C_Read... [06:28:29]Read from MH i2c: E2 0E 00 [06:28:29]MH_I2C_Read... [06:28:29]Read from MH i2c: E2 0E 00 63 32 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 C0 [06:28:29]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [06:28:29]wFMCommunicate OK [06:28:29]SAM_PROTO_GetShiftState done [06:28:29]FM_GetShiftState done [06:28:29]opened in 1713226843 [06:28:29]opened+sec_in_day 1713313243 [06:28:29]quantity*price = 98262 [06:28:29]sum+1 = 98264 [06:28:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 982.00 Внесено: 3000.00 СДАЧА: 2018.00 НСП 1% : 8.70 НДС 12% : 104.35 Наличными: 982.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 13 16.04.2024 06:28 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29739 ФПД: 47804339135260 1/tax-web-control/client/api/v1/ticket?date=20240416T062833&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29739&fm=47804339135260&tin=02508201610067®Number=0000138879044617&sum=98200 [06:28:30]StoreToDocumentArchive [06:28:30]shift 118 fd 29739 [06:28:30]save to /storage/0118/doc_00029739 [06:28:30]save last doc name /storage/0118/doc_00029739 to /storage/kkm_last_doc_name [06:28:30]save OK [06:28:30]Clear old archive folders... [06:28:30]ProcessDocumentItem done err = 0, tmpTLVsize=250 [06:28:30]tlvbuf is 01A25070 [06:28:30]SAM_PROTO_ClearQueue [06:28:30]wFMCommunicate request_size=4 [06:28:30]MH_SAM_APDU [06:28:30]CAPDU: 80 09 00 00 [06:28:30]Write to MH i2c: E2 08 00 70 32 80 09 00 00 00 00 00 00 14 [06:28:30]Write i2c OK [06:28:30]MH_I2C_Read... [06:28:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:28:30]Read from MH i2c: E2 [06:28:30]MH_I2C_Read... [06:28:30]Read from MH i2c: E2 03 00 [06:28:30]MH_I2C_Read... [06:28:30]Read from MH i2c: E2 03 00 70 32 00 90 00 16 [06:28:30]RAPDU: 90 00 [06:28:30]wFMCommunicate OK [06:28:30]SAM_PROTO_ClearQueue done [06:28:30]KKMCreateOFDPacket [06:28:30]OFDProtocolAddRootSTLVToBuf [06:28:30]FM_MakeSignedData [06:28:30]FM_MakeSignedData [06:28:30]SAM_PROTO_SignData [06:28:30]wFMCommunicate request_size=4 [06:28:30]MH_SAM_APDU [06:28:30]CAPDU: 80 0D 01 02 [06:28:30]Write to MH i2c: E2 08 00 71 32 80 0D 01 02 00 00 00 00 1C [06:28:30]Write i2c OK [06:28:30]MH_I2C_Read... [06:28:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:28:30]Read from MH i2c: E2 [06:28:30]MH_I2C_Read... [06:28:30]Read from MH i2c: E2 03 00 [06:28:30]MH_I2C_Read... [06:28:30]Read from MH i2c: E2 03 00 71 32 00 90 00 17 [06:28:30]RAPDU: 90 00 [06:28:30]wFMCommunicate OK [06:28:30]wFMCommunicate request_size=255 [06:28:30]MH_SAM_APDU [06:28:30]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 EC 72 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 D7 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 28 00 00 00 00 07 04 06 00 98 7F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 91 1A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 74 00 00 35 04 06 00 2B 7A [06:28:30]Write to MH i2c: E2 02 01 72 32 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 EC 72 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 D7 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 28 00 00 00 00 07 04 06 00 98 7F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 91 1A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 74 00 00 35 04 06 00 2B 7A 00 00 3B [06:28:30]Write i2c OK [06:28:30]MH_I2C_Read... [06:28:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:30]Read from MH i2c: E2 [06:28:30]MH_I2C_Read... [06:28:30]Read from MH i2c: E2 03 00 [06:28:30]MH_I2C_Read... [06:28:30]Read from MH i2c: E2 03 00 72 32 00 90 00 18 [06:28:30]RAPDU: 90 00 [06:28:30]wFMCommunicate OK [06:28:30]wFMCommunicate request_size=9 [06:28:30]MH_SAM_APDU [06:28:30]CAPDU: 80 0D 02 02 04 50 A7 23 1C [06:28:30]Write to MH i2c: E2 0C 00 73 32 80 0D 02 02 04 00 50 A7 23 1C 00 00 5D [06:28:30]Write i2c OK [06:28:30]MH_I2C_Read... [06:28:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:30]Read from MH i2c: E2 [06:28:30]MH_I2C_Read... [06:28:30]Read from MH i2c: E2 03 00 [06:28:30]MH_I2C_Read... [06:28:30]Read from MH i2c: E2 03 00 73 32 00 90 00 19 [06:28:30]RAPDU: 90 00 [06:28:30]wFMCommunicate OK [06:28:30]wFMCommunicate request_size=4 [06:28:30]MH_SAM_APDU [06:28:30]CAPDU: 80 0D 03 02 [06:28:30]Write to MH i2c: E2 08 00 74 32 80 0D 03 02 00 00 00 00 21 [06:28:30]Write i2c OK [06:28:30]MH_I2C_Read... [06:28:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:28:31]Read from MH i2c: E2 [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: E2 0B 00 [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: E2 0B 00 74 32 00 52 D0 3E 57 D7 32 6C 35 90 00 83 [06:28:31]RAPDU: 52 D0 3E 57 D7 32 6C 35 90 00 [06:28:31]wFMCommunicate OK [06:28:31]SAM_PROTO_SignData done [06:28:31]FM_MakeSignedData done [06:28:31]CreateOFDProtocolMessage [06:28:31]wFMCommunicate request_size=4 [06:28:31]MH_SAM_APDU [06:28:31]CAPDU: 80 11 00 00 [06:28:31]Write to MH i2c: E2 08 00 75 32 80 11 00 00 00 00 00 00 21 [06:28:31]Write i2c OK [06:28:31]MH_I2C_Read... [06:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:31]Read from MH i2c: E2 [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: E2 17 00 [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: E2 17 00 75 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 70 [06:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:28:31]wFMCommunicate OK [06:28:31]CreateOFDProtocolMessage done [06:28:31]OFDSenderStorePacket 29739 [06:28:31]StoreOFDPacket docnum=29739 [06:28:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 A4 11 06 01 E8 27 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 EC 72 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 D7 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 28 00 00 00 00 07 04 06 00 98 7F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 91 1A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 74 00 00 35 04 06 00 2B 7A 50 A7 23 1C 52 D0 3E 57 D7 32 6C 35 [06:28:31]CheckFolder [06:28:31]dirname=/storage/ofd_packets [06:28:31]CheckFolder done [06:28:31]ProducePacketName [06:28:31]name=ofd_packets/00029739 [06:28:31]NVStorageSaveData ofd_packets/00029739 [06:28:31]File name is /storage/ofd_packets/00029739 [06:28:31]Write 300 bytes [06:28:31]NVStorageSaveData done [06:28:31]OFDSenderStorePacket done [06:28:31]KKMCreateOFDPacket done [06:28:31]NVStorageSaveData kkm_last_timestamp [06:28:31]File name is /storage/kkm_last_timestamp [06:28:31]Write 4 bytes [06:28:31]NVStorageSaveData done [06:28:31]ExternCall_PrintAddStr [06:28:31]wPrintStart [06:28:31]Write to MH i2c: 01 00 00 76 32 A8 [06:28:31]Write i2c OK [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: 01 [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: 01 07 00 [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: 01 07 00 76 32 00 00 00 00 00 FF 0F BD [06:28:31]RasterBufferAndPrint [06:28:31]line Счет N : (1)348214 [06:28:31]line ИНН: 02508201610067 [06:28:31]line Контрольно-Кассовый Чек [06:28:31]line ПРОДАЖА [06:28:31]line ТРК (МРК, ГНК) : 71 [06:28:31]line Товар: 2711129700 [06:28:31]line ГАЗ-К-5 [06:28:31]line 29.420 * 33.40 [06:28:31]line = 982.63 [06:28:31]line НДС 12% НСП 1% [06:28:31]line > о реализуемом товаре [06:28:31]line ОКРУГЛЕНИЕ: -0.63 [06:28:31]line ИТОГО: 982.00 [06:28:31]line Внесено: 3000.00 [06:28:31]line СДАЧА: 2018.00 [06:28:31]line НСП 1% : 8.70 [06:28:31]line НДС 12% : 104.35 [06:28:31]line Наличными: 982.00 [06:28:31]line Безнал.: 0.00 [06:28:31]line Место: АЗС № 108 "Партнер Нефть" [06:28:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:28:31]line СНО: Общий режим [06:28:31]line Чек 13 16.04.2024 06:28 [06:28:31]line Смена: 118 ФФД: 1.0 [06:28:31]line ЗНМ: 0300000027 [06:28:31]line РНМ: 0000138879044617 [06:28:31]line Версия ККМ: 001 [06:28:31]line ФМ: 0000000000963154 [06:28:31]line ФД: 29739 [06:28:31]line ФПД: 47804339135260 [06:28:31]line 1/tax-web-control/client/api/v1/ticket?date=20240416T062833&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29739&fm=47804339135260&tin=02508201610067®Number=0000138879044617&sum=98200 [06:28:31]OFD Sender: Processing packet 29739 [packets to send 8, broken 7] [06:28:31]ProducePacketName [06:28:31]name=ofd_packets/00029739 [06:28:31]OFD Sender: To server: pG, [06:28:31]CommunicateWithHost lk.salyk.kg:30040 [06:28:31]ConnectInit lk.salyk.kg [06:28:31]written 0, free lines is 4095 [06:28:31]Connected sock=10 [06:28:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 A4 11 06 01 E8 27 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 EC 72 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 D7 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 28 00 00 00 00 07 04 06 00 98 7F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 91 1A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 74 00 00 35 04 06 00 2B 7A 50 A7 23 1C 52 D0 3E 57 D7 32 6C 35 [06:28:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BB 1E 47 00 0F D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 74 00 00 F4 03 04 00 30 C5 1D 66 B6 04 01 00 00 A0 01 0F 91 E7 F4 62 D6 [06:28:31]CommunicateWithHost err = 0 [06:28:31]CheckOFDResponse [06:28:31]1017 (14) - 77093643461234 [06:28:31]1041 (16) - 0000000000963154 [06:28:31]1040 (4) - 29739 [06:28:31]1012 (4) - 16.04.2024 00:24 [06:28:31]1206 (1) - 0 [06:28:31]OFD Sender: Remove packet 29739 [06:28:31]ProducePacketName [06:28:31]name=ofd_packets/00029739 [06:28:31]NVStorageDeleteData [06:28:31]Write to MH i2c: 01 00 00 A0 32 D2 [06:28:31]Write i2c OK [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: 01 [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: 01 07 00 [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: 01 07 00 A0 32 00 00 00 00 00 C0 0C A5 [06:28:31]RasterBufferAndPrint [06:28:31]line [06:28:31]line [06:28:31]line [06:28:31]line [06:28:31]line [06:28:31]written 0, free lines is 3270 [06:28:31]MH_Cut [06:28:31]Write to MH i2c: D1 01 00 A7 32 01 AB [06:28:31]Write i2c OK [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: D1 [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: D1 01 00 [06:28:31]MH_I2C_Read... [06:28:31]Read from MH i2c: D1 01 00 A7 32 00 AA [06:28:31]Write to MH i2c: 01 00 00 A8 32 DA [06:28:31]Write i2c OK [06:28:31]MH_I2C_Read... [06:28:32]OFD Sender: No OFD packet to send [06:28:32]*** Cut start [06:28:32]*** Partial cut [06:28:32]*** CUTSNS_PIN = 1 [06:28:32]*** CUTSNS_PIN = 0 [06:28:32]*** Brake cut motor [06:28:33]Read from MH i2c: 01 [06:28:33]MH_I2C_Read... [06:28:33]*** Stop cut motor [06:28:33]*** Cut end [06:28:33]Read from MH i2c: 01 07 00 [06:28:33]MH_I2C_Read... [06:28:33]Read from MH i2c: 01 07 00 A8 32 00 00 00 00 00 FF 0F EF [06:28:33]process_action close_receipt done [06:28:33]requested_data is exist [06:28:33]produce_requested_data [06:28:33]requested_item fm.sn is exist - process it [06:28:33]wFMCommunicate request_size=4 [06:28:33]MH_SAM_APDU [06:28:33]CAPDU: 80 11 00 00 [06:28:33]Write to MH i2c: E2 08 00 A9 32 80 11 00 00 00 00 00 00 55 [06:28:33]Write i2c OK [06:28:33]MH_I2C_Read... [06:28:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:33]Read from MH i2c: E2 [06:28:33]MH_I2C_Read... [06:28:33]Read from MH i2c: E2 17 00 [06:28:33]MH_I2C_Read... [06:28:33]Read from MH i2c: E2 17 00 A9 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A4 [06:28:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:28:33]wFMCommunicate OK [06:28:33]requested_item fd.num is exist - process it [06:28:33]SAM_PROTO_GetFieldsCounters [06:28:33]wFMCommunicate request_size=4 [06:28:33]MH_SAM_APDU [06:28:33]CAPDU: 80 13 00 00 [06:28:33]Write to MH i2c: E2 08 00 AA 32 80 13 00 00 00 00 00 00 58 [06:28:33]Write i2c OK [06:28:33]MH_I2C_Read... [06:28:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:28:33]Read from MH i2c: E2 [06:28:33]MH_I2C_Read... [06:28:33]Read from MH i2c: E2 62 00 [06:28:33]MH_I2C_Read... [06:28:33]Read from MH i2c: E2 62 00 AA 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2B 74 00 00 0E 04 04 00 76 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 D2 [06:28:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2B 74 00 00 0E 04 04 00 76 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 [06:28:33]wFMCommunicate OK [06:28:33]SAM_PROTO_GetFieldsCounters done [06:28:33]requested_item shift.num is exist - process it [06:28:33]requested_item shift.opened is exist - process it [06:28:33]req_shift_opened [06:28:33]FM_GetShiftState [06:28:33]SAM_PROTO_GetShiftState [06:28:33]wFMCommunicate request_size=4 [06:28:33]MH_SAM_APDU [06:28:33]CAPDU: 80 13 01 00 [06:28:33]Write to MH i2c: E2 08 00 AB 32 80 13 01 00 00 00 00 00 5A [06:28:33]Write i2c OK [06:28:33]MH_I2C_Read... [06:28:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:33]Read from MH i2c: E2 [06:28:33]MH_I2C_Read... [06:28:33]Read from MH i2c: E2 0E 00 [06:28:33]MH_I2C_Read... [06:28:33]Read from MH i2c: E2 0E 00 AB 32 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 08 [06:28:33]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [06:28:33]wFMCommunicate OK [06:28:33]SAM_PROTO_GetShiftState done [06:28:33]FM_GetShiftState done [06:28:33]req_shift_opened done [06:28:33]requested_item shift.open_date is exist - process it [06:28:33]req_shift_open_date [06:28:33]req_shift_open_date done [06:28:33]produce_requested_data done [06:28:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29739,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [06:28:33]process_action_free close_receipt [06:28:33]json_value_free [06:28:33]json_value_free done [06:28:33]process_json_proto returns [06:28:33]Send response to host [06:28:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29739,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [06:28:33]free response buf [06:28:33]execute_script done [06:28:33]execute_script returns [06:28:33]free content buf [06:28:33]Sock 7.Close socket [06:28:33]Sock 7.Thread stoped [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:36]accept exits with 9 [06:39:36]New connection [06:39:36]New thread 3067108708 created [06:39:36]Thread 3066965348 joined [06:39:36]Waiting for new connection... [06:39:36] Sock 9.Parse request [06:39:36]Sock 9.Check first char [06:39:36]Sock 9.First char is OK [06:39:36]request: POST /json_proto HTTP/1.0 [06:39:36]Method: POST [06:39:36]URL: /json_proto [06:39:36]Method is POST - this is cgi request [06:39:36]url: /json_proto [06:39:36]query_string will be loaded in cgi processing [06:39:36]execute_cgi json_proto POST (null) [06:39:36]execute_cgi path=json_proto method=POST [06:39:36]POST find Content-Length [06:39:36]Host: 172.17.33.3:8080 [06:39:36]Content-Length: 677 [06:39:36]Content-Type: application/json [06:39:36] [06:39:36]POST finish read [06:39:36]Found Content-Length = 677 [06:39:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "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" ] } } [06:39:36]execute_script... [06:39: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 : (1)348215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "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" ] } } [06:39:36]POST & json_proto [06:39:36]process_json_proto [06:39:36]json parsed OK: [06:39:36]protocol is kg_v1.0 [06:39:36]action value=close_receipt [06:39:36]process_action close_receipt [06:39:36]cmd_close_receipt [06:39:36]MH_GetDate [06:39:36]Write to MH i2c: F0 00 00 AC 32 CD [06:39:36]Write i2c OK [06:39:36]MH_I2C_Read... [06:39:36]Read from MH i2c: F0 [06:39:36]MH_I2C_Read... [06:39:36]Read from MH i2c: F0 09 00 [06:39:36]MH_I2C_Read... [06:39:36]Read from MH i2c: F0 09 00 AC 32 00 2D 1D 1E 66 23 5B 8F 65 16 [06:39:36]GetLastDocTimeStamp 1713248913 [06:39:36]current date 1713249581 [06:39:36]FM_GetShiftState [06:39:36]SAM_PROTO_GetShiftState [06:39:36]wFMCommunicate request_size=4 [06:39:36]MH_SAM_APDU [06:39:36]CAPDU: 80 13 01 00 [06:39:36]Write to MH i2c: E2 08 00 AD 32 80 13 01 00 00 00 00 00 5C [06:39:36]Write i2c OK [06:39:36]MH_I2C_Read... [06:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:39:36]Read from MH i2c: E2 [06:39:36]MH_I2C_Read... [06:39:36]Read from MH i2c: E2 0E 00 [06:39:36]MH_I2C_Read... [06:39:36]Read from MH i2c: E2 0E 00 AD 32 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 0A [06:39:36]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [06:39:36]wFMCommunicate OK [06:39:36]SAM_PROTO_GetShiftState done [06:39:36]FM_GetShiftState done [06:39:36]opened in 1713226843 [06:39:36]opened+sec_in_day 1713313243 [06:39:36]quantity*price = 40022 [06:39:36]sum+1 = 40023 [06:39:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 14 16.04.2024 06:39 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29740 ФПД: 78167240844041 1/tax-web-control/client/api/v1/ticket?date=20240416T063941&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29740&fm=78167240844041&tin=02508201610067®Number=0000138879044617&sum=40000 [06:39:38]StoreToDocumentArchive [06:39:38]shift 118 fd 29740 [06:39:38]save to /storage/0118/doc_00029740 [06:39:38]save last doc name /storage/0118/doc_00029740 to /storage/kkm_last_doc_name [06:39:38]save OK [06:39:38]Clear old archive folders... [06:39:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:39:38]tlvbuf is 01A704C0 [06:39:38]SAM_PROTO_ClearQueue [06:39:38]wFMCommunicate request_size=4 [06:39:38]MH_SAM_APDU [06:39:38]CAPDU: 80 09 00 00 [06:39:38]Write to MH i2c: E2 08 00 BA 32 80 09 00 00 00 00 00 00 5E [06:39:38]Write i2c OK [06:39:38]MH_I2C_Read... [06:39:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:39:38]Read from MH i2c: E2 [06:39:38]MH_I2C_Read... [06:39:38]Read from MH i2c: E2 03 00 [06:39:38]MH_I2C_Read... [06:39:38]Read from MH i2c: E2 03 00 BA 32 00 90 00 60 [06:39:38]RAPDU: 90 00 [06:39:38]wFMCommunicate OK [06:39:38]SAM_PROTO_ClearQueue done [06:39:38]KKMCreateOFDPacket [06:39:38]OFDProtocolAddRootSTLVToBuf [06:39:38]FM_MakeSignedData [06:39:38]FM_MakeSignedData [06:39:38]SAM_PROTO_SignData [06:39:38]wFMCommunicate request_size=4 [06:39:38]MH_SAM_APDU [06:39:38]CAPDU: 80 0D 01 02 [06:39:38]Write to MH i2c: E2 08 00 BB 32 80 0D 01 02 00 00 00 00 66 [06:39:38]Write i2c OK [06:39:38]MH_I2C_Read... [06:39:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:39:38]Read from MH i2c: E2 [06:39:38]MH_I2C_Read... [06:39:38]Read from MH i2c: E2 03 00 [06:39:38]MH_I2C_Read... [06:39:38]Read from MH i2c: E2 03 00 BB 32 00 90 00 61 [06:39:38]RAPDU: 90 00 [06:39:38]wFMCommunicate OK [06:39:38]wFMCommunicate request_size=255 [06:39:38]MH_SAM_APDU [06:39:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2D 1D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 74 00 00 35 04 06 00 47 [06:39:38]Write to MH i2c: E2 02 01 BC 32 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 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2D 1D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 74 00 00 35 04 06 00 47 00 00 9E [06:39:38]Write i2c OK [06:39:38]MH_I2C_Read... [06:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:38]Read from MH i2c: E2 [06:39:38]MH_I2C_Read... [06:39:38]Read from MH i2c: E2 03 00 [06:39:38]MH_I2C_Read... [06:39:38]Read from MH i2c: E2 03 00 BC 32 00 90 00 62 [06:39:38]RAPDU: 90 00 [06:39:38]wFMCommunicate OK [06:39:38]wFMCommunicate request_size=10 [06:39:38]MH_SAM_APDU [06:39:38]CAPDU: 80 0D 02 02 05 17 BA 9F A3 09 [06:39:38]Write to MH i2c: E2 0D 00 BD 32 80 0D 02 02 05 00 17 BA 9F A3 09 00 00 8F [06:39:38]Write i2c OK [06:39:38]MH_I2C_Read... [06:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:38]Read from MH i2c: E2 [06:39:38]MH_I2C_Read... [06:39:38]Read from MH i2c: E2 03 00 [06:39:38]MH_I2C_Read... [06:39:38]Read from MH i2c: E2 03 00 BD 32 00 90 00 63 [06:39:38]RAPDU: 90 00 [06:39:38]wFMCommunicate OK [06:39:38]wFMCommunicate request_size=4 [06:39:38]MH_SAM_APDU [06:39:38]CAPDU: 80 0D 03 02 [06:39:38]Write to MH i2c: E2 08 00 BE 32 80 0D 03 02 00 00 00 00 6B [06:39:38]Write i2c OK [06:39:38]MH_I2C_Read... [06:39:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:39:38]Read from MH i2c: E2 [06:39:38]MH_I2C_Read... [06:39:38]Read from MH i2c: E2 0B 00 [06:39:38]MH_I2C_Read... [06:39:38]Read from MH i2c: E2 0B 00 BE 32 00 BB 5F 67 F9 D0 B7 98 5D 90 00 62 [06:39:38]RAPDU: BB 5F 67 F9 D0 B7 98 5D 90 00 [06:39:38]wFMCommunicate OK [06:39:38]SAM_PROTO_SignData done [06:39:38]FM_MakeSignedData done [06:39:38]CreateOFDProtocolMessage [06:39:38]wFMCommunicate request_size=4 [06:39:38]MH_SAM_APDU [06:39:38]CAPDU: 80 11 00 00 [06:39:38]Write to MH i2c: E2 08 00 BF 32 80 11 00 00 00 00 00 00 6B [06:39:38]Write i2c OK [06:39:38]MH_I2C_Read... [06:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:39:38]Read from MH i2c: E2 [06:39:38]MH_I2C_Read... [06:39:38]Read from MH i2c: E2 17 00 [06:39:38]MH_I2C_Read... [06:39:38]Read from MH i2c: E2 17 00 BF 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BA [06:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:39:38]wFMCommunicate OK [06:39:38]CreateOFDProtocolMessage done [06:39:38]OFDSenderStorePacket 29740 [06:39:38]StoreOFDPacket docnum=29740 [06:39:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8C BA 07 01 8A 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2D 1D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 74 00 00 35 04 06 00 47 17 BA 9F A3 09 BB 5F 67 F9 D0 B7 98 5D [06:39:38]CheckFolder [06:39:38]dirname=/storage/ofd_packets [06:39:38]CheckFolder done [06:39:38]ProducePacketName [06:39:38]name=ofd_packets/00029740 [06:39:38]NVStorageSaveData ofd_packets/00029740 [06:39:38]File name is /storage/ofd_packets/00029740 [06:39:38]Write 301 bytes [06:39:38]NVStorageSaveData done [06:39:38]OFDSenderStorePacket done [06:39:38]KKMCreateOFDPacket done [06:39:38]NVStorageSaveData kkm_last_timestamp [06:39:38]File name is /storage/kkm_last_timestamp [06:39:38]Write 4 bytes [06:39:38]NVStorageSaveData done [06:39:38]ExternCall_PrintAddStr [06:39:38]wPrintStart [06:39:38]Write to MH i2c: 01 00 00 C0 32 F2 [06:39:38]Write i2c OK [06:39:38]MH_I2C_Read... [06:39:38]Read from MH i2c: 01 [06:39:38]MH_I2C_Read... [06:39:38]Read from MH i2c: 01 07 00 [06:39:38]MH_I2C_Read... [06:39:38]Read from MH i2c: 01 07 00 C0 32 00 00 00 00 00 FF 0F 07 [06:39:38]RasterBufferAndPrint [06:39:38]line Счет N : (1)348215 [06:39:38]line ИНН: 02508201610067 [06:39:38]line Контрольно-Кассовый Чек [06:39:38]line ПРОДАЖА [06:39:38]line ТРК (МРК, ГНК) : 33 [06:39:38]line Товар: 2710124500 [06:39:38]line Аи-95-К-5 [06:39:38]line 5.490 * 72.90 [06:39:38]line = 400.22 [06:39:38]line НДС 12% НСП 1% [06:39:38]line > о реализуемом товаре [06:39:38]line ОКРУГЛЕНИЕ: -0.22 [06:39:38]line ИТОГО: 400.00 [06:39:38]line Внесено: 400.00 [06:39:38]line СДАЧА: 0.00 [06:39:38]line НСП 1% : 3.54 [06:39:38]line НДС 12% : 42.50 [06:39:38]line Наличными: 400.00 [06:39:38]line Безнал.: 0.00 [06:39:38]line Место: АЗС № 108 "Партнер Нефть" [06:39:38]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:39:38]line СНО: Общий режим [06:39:38]line Чек 14 16.04.2024 06:39 [06:39:38]line Смена: 118 ФФД: 1.0 [06:39:38]line ЗНМ: 0300000027 [06:39:38]line РНМ: 0000138879044617 [06:39:38]line Версия ККМ: 001 [06:39:38]line ФМ: 0000000000963154 [06:39:38]line ФД: 29740 [06:39:38]line ФПД: 78167240844041 [06:39:38]line 1/tax-web-control/client/api/v1/ticket?date=20240416T063941&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29740&fm=78167240844041&tin=02508201610067®Number=0000138879044617&sum=40000 [06:39:38]OFD Sender: Processing packet 29740 [packets to send 8, broken 7] [06:39:38]ProducePacketName [06:39:38]name=ofd_packets/00029740 [06:39:38]OFD Sender: To server: pG, [06:39:38]CommunicateWithHost lk.salyk.kg:30040 [06:39:38]ConnectInit lk.salyk.kg [06:39:38]written 0, free lines is 4095 [06:39:38]Connected sock=10 [06:39:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8C BA 07 01 8A 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2D 1D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 74 00 00 35 04 06 00 47 17 BA 9F A3 09 BB 5F 67 F9 D0 B7 98 5D [06:39:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B4 CA 47 00 C2 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 2C 74 00 00 F4 03 04 00 CB C7 1D 66 B6 04 01 00 00 FF 64 60 7F A4 DD 4D 66 [06:39:39]CommunicateWithHost err = 0 [06:39:39]CheckOFDResponse [06:39:39]1017 (14) - 77093643461234 [06:39:39]1041 (16) - 0000000000963154 [06:39:39]1040 (4) - 29740 [06:39:39]1012 (4) - 16.04.2024 00:35 [06:39:39]1206 (1) - 0 [06:39:39]OFD Sender: Remove packet 29740 [06:39:39]ProducePacketName [06:39:39]name=ofd_packets/00029740 [06:39:39]NVStorageDeleteData [06:39:39]Write to MH i2c: 01 00 00 EA 32 1C [06:39:39]Write i2c OK [06:39:39]MH_I2C_Read... [06:39:39]Read from MH i2c: 01 [06:39:39]MH_I2C_Read... [06:39:39]Read from MH i2c: 01 07 00 [06:39:39]MH_I2C_Read... [06:39:39]Read from MH i2c: 01 07 00 EA 32 00 00 00 00 00 BD 0C EC [06:39:39]RasterBufferAndPrint [06:39:39]line [06:39:39]line [06:39:39]line [06:39:39]line [06:39:39]line [06:39:39]written 0, free lines is 3266 [06:39:39]MH_Cut [06:39:39]Write to MH i2c: D1 01 00 F1 32 01 F5 [06:39:39]Write i2c OK [06:39:39]MH_I2C_Read... [06:39:39]Read from MH i2c: D1 [06:39:39]MH_I2C_Read... [06:39:39]Read from MH i2c: D1 01 00 [06:39:39]MH_I2C_Read... [06:39:39]Read from MH i2c: D1 01 00 F1 32 00 F4 [06:39:39]Write to MH i2c: 01 00 00 F2 32 24 [06:39:39]Write i2c OK [06:39:39]MH_I2C_Read... [06:39:39]OFD Sender: No OFD packet to send [06:39:40]*** Cut start [06:39:40]*** Partial cut [06:39:40]*** CUTSNS_PIN = 1 [06:39:40]*** CUTSNS_PIN = 0 [06:39:40]*** Brake cut motor [06:39:40]Read from MH i2c: 01 [06:39:40]MH_I2C_Read... [06:39:40]*** Stop cut motor [06:39:40]*** Cut end [06:39:40]Read from MH i2c: 01 07 00 [06:39:40]MH_I2C_Read... [06:39:40]Read from MH i2c: 01 07 00 F2 32 00 00 00 00 00 FF 0F 39 [06:39:40]process_action close_receipt done [06:39:40]requested_data is exist [06:39:40]produce_requested_data [06:39:40]requested_item fm.sn is exist - process it [06:39:40]wFMCommunicate request_size=4 [06:39:40]MH_SAM_APDU [06:39:40]CAPDU: 80 11 00 00 [06:39:40]Write to MH i2c: E2 08 00 F3 32 80 11 00 00 00 00 00 00 9F [06:39:40]Write i2c OK [06:39:40]MH_I2C_Read... [06:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:39:40]Read from MH i2c: E2 [06:39:40]MH_I2C_Read... [06:39:40]Read from MH i2c: E2 17 00 [06:39:40]MH_I2C_Read... [06:39:40]Read from MH i2c: E2 17 00 F3 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EE [06:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:39:40]wFMCommunicate OK [06:39:40]requested_item fd.num is exist - process it [06:39:40]SAM_PROTO_GetFieldsCounters [06:39:40]wFMCommunicate request_size=4 [06:39:40]MH_SAM_APDU [06:39:40]CAPDU: 80 13 00 00 [06:39:40]Write to MH i2c: E2 08 00 F4 32 80 13 00 00 00 00 00 00 A2 [06:39:40]Write i2c OK [06:39:40]MH_I2C_Read... [06:39:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:39:40]Read from MH i2c: E2 [06:39:40]MH_I2C_Read... [06:39:40]Read from MH i2c: E2 62 00 [06:39:40]MH_I2C_Read... [06:39:40]Read from MH i2c: E2 62 00 F4 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2C 74 00 00 0E 04 04 00 76 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 20 [06:39:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2C 74 00 00 0E 04 04 00 76 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 [06:39:40]wFMCommunicate OK [06:39:40]SAM_PROTO_GetFieldsCounters done [06:39:40]requested_item shift.num is exist - process it [06:39:40]requested_item shift.opened is exist - process it [06:39:40]req_shift_opened [06:39:40]FM_GetShiftState [06:39:40]SAM_PROTO_GetShiftState [06:39:40]wFMCommunicate request_size=4 [06:39:40]MH_SAM_APDU [06:39:40]CAPDU: 80 13 01 00 [06:39:40]Write to MH i2c: E2 08 00 F5 32 80 13 01 00 00 00 00 00 A4 [06:39:40]Write i2c OK [06:39:40]MH_I2C_Read... [06:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:39:41]Read from MH i2c: E2 [06:39:41]MH_I2C_Read... [06:39:41]Read from MH i2c: E2 0E 00 [06:39:41]MH_I2C_Read... [06:39:41]Read from MH i2c: E2 0E 00 F5 32 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 52 [06:39:41]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [06:39:41]wFMCommunicate OK [06:39:41]SAM_PROTO_GetShiftState done [06:39:41]FM_GetShiftState done [06:39:41]req_shift_opened done [06:39:41]requested_item shift.open_date is exist - process it [06:39:41]req_shift_open_date [06:39:41]req_shift_open_date done [06:39:41]produce_requested_data done [06:39:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29740,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [06:39:41]process_action_free close_receipt [06:39:41]json_value_free [06:39:41]json_value_free done [06:39:41]process_json_proto returns [06:39:41]Send response to host [06:39:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29740,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [06:39:41]free response buf [06:39:41]execute_script done [06:39:41]execute_script returns [06:39:41]free content buf [06:39:41]Sock 9.Close socket [06:39:41]Sock 9.Thread stoped [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:41]accept exits with 7 [06:40:41]New connection [06:40:41]New thread 3066965348 created [06:40:41]Thread 3067108708 joined [06:40:41]Waiting for new connection... [06:40:41] Sock 7.Parse request [06:40:41]Sock 7.Check first char [06:40:41]Sock 7.First char is OK [06:40:41]request: POST /json_proto HTTP/1.0 [06:40:41]Method: POST [06:40:41]URL: /json_proto [06:40:41]Method is POST - this is cgi request [06:40:41]url: /json_proto [06:40:41]query_string will be loaded in cgi processing [06:40:41]execute_cgi json_proto POST (null) [06:40:41]execute_cgi path=json_proto method=POST [06:40:41]POST find Content-Length [06:40:41]Host: 172.17.33.3:8080 [06:40:41]Content-Length: 840 [06:40:41]Content-Type: application/json [06:40:41] [06:40:41]POST finish read [06:40:41]Found Content-Length = 840 [06:40:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:41]execute_script... [06:40:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:41]POST & json_proto [06:40:41]process_json_proto [06:40:41]json parsed OK: [06:40:41]protocol is kg_v1.0 [06:40:41]action value=close_receipt [06:40:41]process_action close_receipt [06:40:41]cmd_close_receipt [06:40:41]MH_GetDate [06:40:41]Write to MH i2c: F0 00 00 F6 32 17 [06:40:41]Write i2c OK [06:40:41]MH_I2C_Read... [06:40:41]Read from MH i2c: F0 [06:40:41]MH_I2C_Read... [06:40:41]Read from MH i2c: F0 09 00 [06:40:41]MH_I2C_Read... [06:40:41]Read from MH i2c: F0 09 00 F6 32 00 6D 1D 1E 66 23 5B 8F 65 A0 [06:40:41]GetLastDocTimeStamp 1713249581 [06:40:41]current date 1713249645 [06:40:41]FM_GetShiftState [06:40:41]SAM_PROTO_GetShiftState [06:40:41]wFMCommunicate request_size=4 [06:40:41]MH_SAM_APDU [06:40:41]CAPDU: 80 13 01 00 [06:40:41]Write to MH i2c: E2 08 00 F7 32 80 13 01 00 00 00 00 00 A6 [06:40:41]Write i2c OK [06:40:41]MH_I2C_Read... [06:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:41]Read from MH i2c: E2 [06:40:41]MH_I2C_Read... [06:40:41]Read from MH i2c: E2 0E 00 [06:40:41]MH_I2C_Read... [06:40:41]Read from MH i2c: E2 0E 00 F7 32 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 54 [06:40:41]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [06:40:41]wFMCommunicate OK [06:40:41]SAM_PROTO_GetShiftState done [06:40:41]FM_GetShiftState done [06:40:41]opened in 1713226843 [06:40:41]opened+sec_in_day 1713313243 [06:40:41]quantity*price = 50025 [06:40:41]sum+1 = 50027 [06:40:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.26 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.26 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 15 16.04.2024 06:40 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29741 ФПД: 177764846058476 1/tax-web-control/client/api/v1/ticket?date=20240416T064045&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29741&fm=177764846058476&tin=02508201610067®Number=0000138879044617&sum=50026 [06:40:42]StoreToDocumentArchive [06:40:42]shift 118 fd 29741 [06:40:42]save to /storage/0118/doc_00029741 [06:40:42]save last doc name /storage/0118/doc_00029741 to /storage/kkm_last_doc_name [06:40:42]save OK [06:40:42]Clear old archive folders... [06:40:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:40:42]tlvbuf is 01A429B0 [06:40:42]SAM_PROTO_ClearQueue [06:40:42]wFMCommunicate request_size=4 [06:40:42]MH_SAM_APDU [06:40:42]CAPDU: 80 09 00 00 [06:40:42]Write to MH i2c: E2 08 00 04 33 80 09 00 00 00 00 00 00 A9 [06:40:42]Write i2c OK [06:40:42]MH_I2C_Read... [06:40:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:40:42]Read from MH i2c: E2 [06:40:42]MH_I2C_Read... [06:40:42]Read from MH i2c: E2 03 00 [06:40:42]MH_I2C_Read... [06:40:42]Read from MH i2c: E2 03 00 04 33 00 90 00 AB [06:40:42]RAPDU: 90 00 [06:40:42]wFMCommunicate OK [06:40:42]SAM_PROTO_ClearQueue done [06:40:42]KKMCreateOFDPacket [06:40:42]OFDProtocolAddRootSTLVToBuf [06:40:42]FM_MakeSignedData [06:40:42]FM_MakeSignedData [06:40:42]SAM_PROTO_SignData [06:40:42]wFMCommunicate request_size=4 [06:40:42]MH_SAM_APDU [06:40:42]CAPDU: 80 0D 01 02 [06:40:42]Write to MH i2c: E2 08 00 05 33 80 0D 01 02 00 00 00 00 B1 [06:40:42]Write i2c OK [06:40:42]MH_I2C_Read... [06:40:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:40:42]Read from MH i2c: E2 [06:40:42]MH_I2C_Read... [06:40:42]Read from MH i2c: E2 03 00 [06:40:42]MH_I2C_Read... [06:40:42]Read from MH i2c: E2 03 00 05 33 00 90 00 AC [06:40:42]RAPDU: 90 00 [06:40:42]wFMCommunicate OK [06:40:42]wFMCommunicate request_size=255 [06:40:42]MH_SAM_APDU [06:40:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 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 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 6D 1D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 74 00 00 35 04 06 00 A1 [06:40:42]Write to MH i2c: E2 02 01 06 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 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 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 6D 1D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 74 00 00 35 04 06 00 A1 00 00 73 [06:40:42]Write i2c OK [06:40:42]MH_I2C_Read... [06:40:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:42]Read from MH i2c: E2 [06:40:42]MH_I2C_Read... [06:40:42]Read from MH i2c: E2 03 00 [06:40:42]MH_I2C_Read... [06:40:42]Read from MH i2c: E2 03 00 06 33 00 90 00 AD [06:40:42]RAPDU: 90 00 [06:40:42]wFMCommunicate OK [06:40:42]wFMCommunicate request_size=10 [06:40:42]MH_SAM_APDU [06:40:42]CAPDU: 80 0D 02 02 05 AD 1A 80 BB EC [06:40:42]Write to MH i2c: E2 0D 00 07 33 80 0D 02 02 05 00 AD 1A 80 BB EC 00 00 AC [06:40:42]Write i2c OK [06:40:42]MH_I2C_Read... [06:40:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:42]Read from MH i2c: E2 [06:40:42]MH_I2C_Read... [06:40:42]Read from MH i2c: E2 03 00 [06:40:42]MH_I2C_Read... [06:40:42]Read from MH i2c: E2 03 00 07 33 00 90 00 AE [06:40:42]RAPDU: 90 00 [06:40:42]wFMCommunicate OK [06:40:42]wFMCommunicate request_size=4 [06:40:42]MH_SAM_APDU [06:40:42]CAPDU: 80 0D 03 02 [06:40:42]Write to MH i2c: E2 08 00 08 33 80 0D 03 02 00 00 00 00 B6 [06:40:42]Write i2c OK [06:40:42]MH_I2C_Read... [06:40:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:40:42]Read from MH i2c: E2 [06:40:42]MH_I2C_Read... [06:40:42]Read from MH i2c: E2 0B 00 [06:40:42]MH_I2C_Read... [06:40:42]Read from MH i2c: E2 0B 00 08 33 00 56 F3 35 C2 CF 1E 77 0F 90 00 6A [06:40:42]RAPDU: 56 F3 35 C2 CF 1E 77 0F 90 00 [06:40:42]wFMCommunicate OK [06:40:42]SAM_PROTO_SignData done [06:40:42]FM_MakeSignedData done [06:40:42]CreateOFDProtocolMessage [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 09 33 80 11 00 00 00 00 00 00 B6 [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 09 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 05 [06:40:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:40:42]wFMCommunicate OK [06:40:42]CreateOFDProtocolMessage done [06:40:42]OFDSenderStorePacket 29741 [06:40:42]StoreOFDPacket docnum=29741 [06:40:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 40 51 07 01 D7 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 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 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 6D 1D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 74 00 00 35 04 06 00 A1 AD 1A 80 BB EC 56 F3 35 C2 CF 1E 77 0F [06:40:42]CheckFolder [06:40:42]dirname=/storage/ofd_packets [06:40:42]CheckFolder done [06:40:42]ProducePacketName [06:40:42]name=ofd_packets/00029741 [06:40:42]NVStorageSaveData ofd_packets/00029741 [06:40:42]File name is /storage/ofd_packets/00029741 [06:40:42]Write 301 bytes [06:40:42]NVStorageSaveData done [06:40:42]OFDSenderStorePacket done [06:40:42]KKMCreateOFDPacket done [06:40:42]NVStorageSaveData kkm_last_timestamp [06:40:42]File name is /storage/kkm_last_timestamp [06:40:42]Write 4 bytes [06:40:42]NVStorageSaveData done [06:40:42]ExternCall_PrintAddStr [06:40:42]wPrintStart [06:40:42]Write to MH i2c: 01 00 00 0A 33 3D [06:40:42]Write i2c OK [06:40:42]MH_I2C_Read... [06:40:42]Read from MH i2c: 01 [06:40:42]MH_I2C_Read... [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 0A 33 00 00 00 00 00 FF 0F 52 [06:40:42]RasterBufferAndPrint [06:40:42]line Счет N : (1)348216 [06:40:42]line ИНН: 02508201610067 [06:40:42]line Контрольно-Кассовый Чек [06:40:42]line ПРОДАЖА [06:40:42]line ТРК (МРК, ГНК) : 13 [06:40:42]line Товар: 2710124130 [06:40:42]line Аи-92-К-5 [06:40:42]line 7.720 * 64.80 [06:40:42]line = 500.26 [06:40:42]line НДС 12% НСП 1% [06:40:42]line > о реализуемом товаре [06:40:42]line ИТОГО: 500.26 [06:40:42]line НСП 1% : 4.43 [06:40:42]line НДС 12% : 53.12 [06:40:42]line Наличными: 0.00 [06:40:42]line Безнал.: 500.26 [06:40:42]line Место: АЗС № 108 "Партнер Нефть" [06:40:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:40:42]line СНО: Общий режим [06:40:42]line Чек 15 16.04.2024 06:40 [06:40:42]line Смена: 118 ФФД: 1.0 [06:40:42]line ЗНМ: 0300000027 [06:40:42]line РНМ: 0000138879044617 [06:40:42]line Версия ККМ: 001 [06:40:42]line Платежная система: АКБ Кыргызстан [06:40:42]line ФМ: 0000000000963154 [06:40:42]line ФД: 29741 [06:40:42]line ФПД: 177764846058476 [06:40:42]line 1/tax-web-control/client/api/v1/ticket?date=20240416T064045&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29741&fm=177764846058476&tin=02508201610067®Number=0000138879044617&sum=50026 [06:40:43]OFD Sender: Processing packet 29741 [packets to send 8, broken 7] [06:40:43]ProducePacketName [06:40:43]name=ofd_packets/00029741 [06:40:43]OFD Sender: To server: pG, [06:40:43]CommunicateWithHost lk.salyk.kg:30040 [06:40:43]ConnectInit lk.salyk.kg [06:40:43]written 0, free lines is 4095 [06:40:43]Connected sock=10 [06:40:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 40 51 07 01 D7 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 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 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 6D 1D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 74 00 00 35 04 06 00 A1 AD 1A 80 BB EC 56 F3 35 C2 CF 1E 77 0F [06:40:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AD 97 47 00 D1 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 2D 74 00 00 F4 03 04 00 0C C8 1D 66 B6 04 01 00 00 63 79 33 88 96 72 67 1A [06:40:43]CommunicateWithHost err = 0 [06:40:43]CheckOFDResponse [06:40:43]1017 (14) - 77093643461234 [06:40:43]1041 (16) - 0000000000963154 [06:40:43]1040 (4) - 29741 [06:40:43]1012 (4) - 16.04.2024 00:36 [06:40:43]1206 (1) - 0 [06:40:43]OFD Sender: Remove packet 29741 [06:40:43]ProducePacketName [06:40:43]name=ofd_packets/00029741 [06:40:43]NVStorageDeleteData [06:40:43]Write to MH i2c: 01 00 00 33 33 66 [06:40:43]Write i2c OK [06:40:43]MH_I2C_Read... [06:40:43]Read from MH i2c: 01 [06:40:43]MH_I2C_Read... [06:40:43]Read from MH i2c: 01 07 00 [06:40:43]MH_I2C_Read... [06:40:43]Read from MH i2c: 01 07 00 33 33 00 00 00 00 00 DC 0C 55 [06:40:43]RasterBufferAndPrint [06:40:43]line [06:40:43]line [06:40:43]line [06:40:43]line [06:40:43]line [06:40:43]written 0, free lines is 3299 [06:40:43]MH_Cut [06:40:43]Write to MH i2c: D1 01 00 3A 33 01 3F [06:40:43]Write i2c OK [06:40:43]MH_I2C_Read... [06:40:43]Read from MH i2c: D1 [06:40:43]MH_I2C_Read... [06:40:43]Read from MH i2c: D1 01 00 [06:40:43]MH_I2C_Read... [06:40:43]Read from MH i2c: D1 01 00 3A 33 00 3E [06:40:43]Write to MH i2c: 01 00 00 3B 33 6E [06:40:43]Write i2c OK [06:40:43]MH_I2C_Read... [06:40:43]OFD Sender: No OFD packet to send [06:40:44]*** Cut start [06:40:44]*** Partial cut [06:40:44]*** CUTSNS_PIN = 1 [06:40:44]*** CUTSNS_PIN = 0 [06:40:44]*** Brake cut motor [06:40:45]Read from MH i2c: 01 [06:40:45]MH_I2C_Read... [06:40:45]*** Stop cut motor [06:40:45]*** Cut end [06:40:45]Read from MH i2c: 01 07 00 [06:40:45]MH_I2C_Read... [06:40:45]Read from MH i2c: 01 07 00 3B 33 00 00 00 00 00 FF 0F 83 [06:40:45]process_action close_receipt done [06:40:45]requested_data is exist [06:40:45]produce_requested_data [06:40:45]requested_item fm.sn is exist - process it [06:40:45]wFMCommunicate request_size=4 [06:40:45]MH_SAM_APDU [06:40:45]CAPDU: 80 11 00 00 [06:40:45]Write to MH i2c: E2 08 00 3C 33 80 11 00 00 00 00 00 00 E9 [06:40:45]Write i2c OK [06:40:45]MH_I2C_Read... [06:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:45]Read from MH i2c: E2 [06:40:45]MH_I2C_Read... [06:40:45]Read from MH i2c: E2 17 00 [06:40:45]MH_I2C_Read... [06:40:45]Read from MH i2c: E2 17 00 3C 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 38 [06:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:40:45]wFMCommunicate OK [06:40:45]requested_item fd.num is exist - process it [06:40:45]SAM_PROTO_GetFieldsCounters [06:40:45]wFMCommunicate request_size=4 [06:40:45]MH_SAM_APDU [06:40:45]CAPDU: 80 13 00 00 [06:40:45]Write to MH i2c: E2 08 00 3D 33 80 13 00 00 00 00 00 00 EC [06:40:45]Write i2c OK [06:40:45]MH_I2C_Read... [06:40:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:40:45]Read from MH i2c: E2 [06:40:45]MH_I2C_Read... [06:40:45]Read from MH i2c: E2 62 00 [06:40:45]MH_I2C_Read... [06:40:45]Read from MH i2c: E2 62 00 3D 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2D 74 00 00 0E 04 04 00 76 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 6E [06:40:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2D 74 00 00 0E 04 04 00 76 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:45]wFMCommunicate OK [06:40:45]SAM_PROTO_GetFieldsCounters done [06:40:45]requested_item shift.num is exist - process it [06:40:45]requested_item shift.opened is exist - process it [06:40:45]req_shift_opened [06:40:45]FM_GetShiftState [06:40:45]SAM_PROTO_GetShiftState [06:40:45]wFMCommunicate request_size=4 [06:40:45]MH_SAM_APDU [06:40:45]CAPDU: 80 13 01 00 [06:40:45]Write to MH i2c: E2 08 00 3E 33 80 13 01 00 00 00 00 00 EE [06:40:45]Write i2c OK [06:40:45]MH_I2C_Read... [06:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:45]Read from MH i2c: E2 [06:40:45]MH_I2C_Read... [06:40:45]Read from MH i2c: E2 0E 00 [06:40:45]MH_I2C_Read... [06:40:45]Read from MH i2c: E2 0E 00 3E 33 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 9C [06:40:45]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [06:40:45]wFMCommunicate OK [06:40:45]SAM_PROTO_GetShiftState done [06:40:45]FM_GetShiftState done [06:40:45]req_shift_opened done [06:40:45]requested_item shift.open_date is exist - process it [06:40:45]req_shift_open_date [06:40:45]req_shift_open_date done [06:40:45]produce_requested_data done [06:40:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29741,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [06:40:45]process_action_free close_receipt [06:40:45]json_value_free [06:40:45]json_value_free done [06:40:45]process_json_proto returns [06:40:45]Send response to host [06:40:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29741,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [06:40:45]free response buf [06:40:45]execute_script done [06:40:45]execute_script returns [06:40:45]free content buf [06:40:45]Sock 7.Close socket [06:40:45]Sock 7.Thread stoped [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:22]accept exits with 9 [06:49:22]New connection [06:49:22]New thread 3067108708 created [06:49:22]Thread 3066965348 joined [06:49:22]Waiting for new connection... [06:49:22] Sock 9.Parse request [06:49:22]Sock 9.Check first char [06:49:22]Sock 9.First char is OK [06:49:22]request: POST /json_proto HTTP/1.0 [06:49:22]Method: POST [06:49:22]URL: /json_proto [06:49:22]Method is POST - this is cgi request [06:49:22]url: /json_proto [06:49:22]query_string will be loaded in cgi processing [06:49:22]execute_cgi json_proto POST (null) [06:49:22]execute_cgi path=json_proto method=POST [06:49:22]POST find Content-Length [06:49:22]Host: 172.17.33.3:8080 [06:49:22]Content-Length: 677 [06:49:22]Content-Type: application/json [06:49:22] [06:49:22]POST finish read [06:49:22]Found Content-Length = 677 [06:49:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 1.550, "sum" : 100.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:49:22]execute_script... [06:49:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 1.550, "sum" : 100.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:49:22]POST & json_proto [06:49:22]process_json_proto [06:49:22]json parsed OK: [06:49:22]protocol is kg_v1.0 [06:49:22]action value=close_receipt [06:49:22]process_action close_receipt [06:49:22]cmd_close_receipt [06:49:22]MH_GetDate [06:49:22]Write to MH i2c: F0 00 00 3F 33 61 [06:49:22]Write i2c OK [06:49:22]MH_I2C_Read... [06:49:22]Read from MH i2c: F0 [06:49:22]MH_I2C_Read... [06:49:22]Read from MH i2c: F0 09 00 [06:49:22]MH_I2C_Read... [06:49:22]Read from MH i2c: F0 09 00 3F 33 00 77 1F 1E 66 23 5B 8F 65 F6 [06:49:22]GetLastDocTimeStamp 1713249645 [06:49:22]current date 1713250167 [06:49:22]FM_GetShiftState [06:49:22]SAM_PROTO_GetShiftState [06:49:22]wFMCommunicate request_size=4 [06:49:22]MH_SAM_APDU [06:49:22]CAPDU: 80 13 01 00 [06:49:22]Write to MH i2c: E2 08 00 40 33 80 13 01 00 00 00 00 00 F0 [06:49:22]Write i2c OK [06:49:22]MH_I2C_Read... [06:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:23]Read from MH i2c: E2 [06:49:23]MH_I2C_Read... [06:49:23]Read from MH i2c: E2 0E 00 [06:49:23]MH_I2C_Read... [06:49:23]Read from MH i2c: E2 0E 00 40 33 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 9E [06:49:23]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [06:49:23]wFMCommunicate OK [06:49:23]SAM_PROTO_GetShiftState done [06:49:23]FM_GetShiftState done [06:49:23]opened in 1713226843 [06:49:23]opened+sec_in_day 1713313243 [06:49:23]quantity*price = 10044 [06:49:23]sum+1 = 10045 [06:49:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.67 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 16 16.04.2024 06:49 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29742 ФПД: 191947562467607 1/tax-web-control/client/api/v1/ticket?date=20240416T064927&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29742&fm=191947562467607&tin=02508201610067®Number=0000138879044617&sum=10000 [06:49:24]StoreToDocumentArchive [06:49:24]shift 118 fd 29742 [06:49:24]save to /storage/0118/doc_00029742 [06:49:24]save last doc name /storage/0118/doc_00029742 to /storage/kkm_last_doc_name [06:49:24]save OK [06:49:24]Clear old archive folders... [06:49:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:49:24]tlvbuf is 01A88300 [06:49:24]SAM_PROTO_ClearQueue [06:49:24]wFMCommunicate request_size=4 [06:49:24]MH_SAM_APDU [06:49:24]CAPDU: 80 09 00 00 [06:49:24]Write to MH i2c: E2 08 00 4D 33 80 09 00 00 00 00 00 00 F2 [06:49:24]Write i2c OK [06:49:24]MH_I2C_Read... [06:49:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:49:24]Read from MH i2c: E2 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 03 00 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 03 00 4D 33 00 90 00 F4 [06:49:24]RAPDU: 90 00 [06:49:24]wFMCommunicate OK [06:49:24]SAM_PROTO_ClearQueue done [06:49:24]KKMCreateOFDPacket [06:49:24]OFDProtocolAddRootSTLVToBuf [06:49:24]FM_MakeSignedData [06:49:24]FM_MakeSignedData [06:49:24]SAM_PROTO_SignData [06:49:24]wFMCommunicate request_size=4 [06:49:24]MH_SAM_APDU [06:49:24]CAPDU: 80 0D 01 02 [06:49:24]Write to MH i2c: E2 08 00 4E 33 80 0D 01 02 00 00 00 00 FA [06:49:24]Write i2c OK [06:49:24]MH_I2C_Read... [06:49:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:49:24]Read from MH i2c: E2 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 03 00 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 03 00 4E 33 00 90 00 F5 [06:49:24]RAPDU: 90 00 [06:49:24]wFMCommunicate OK [06:49:24]wFMCommunicate request_size=255 [06:49:24]MH_SAM_APDU [06:49:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 06 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 3C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 77 1F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 74 00 00 35 04 06 00 AE [06:49:24]Write to MH i2c: E2 02 01 4F 33 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 0E 06 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 3C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 77 1F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 74 00 00 35 04 06 00 AE 00 00 E7 [06:49:24]Write i2c OK [06:49:24]MH_I2C_Read... [06:49:24]OFD Sender: No OFD packet to send [06:49:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:24]Read from MH i2c: E2 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 03 00 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 03 00 4F 33 00 90 00 F6 [06:49:24]RAPDU: 90 00 [06:49:24]wFMCommunicate OK [06:49:24]wFMCommunicate request_size=10 [06:49:24]MH_SAM_APDU [06:49:24]CAPDU: 80 0D 02 02 05 93 46 46 C1 17 [06:49:24]Write to MH i2c: E2 0D 00 50 33 80 0D 02 02 05 00 93 46 46 C1 17 00 00 FE [06:49:24]Write i2c OK [06:49:24]MH_I2C_Read... [06:49:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:24]Read from MH i2c: E2 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 03 00 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 03 00 50 33 00 90 00 F7 [06:49:24]RAPDU: 90 00 [06:49:24]wFMCommunicate OK [06:49:24]wFMCommunicate request_size=4 [06:49:24]MH_SAM_APDU [06:49:24]CAPDU: 80 0D 03 02 [06:49:24]Write to MH i2c: E2 08 00 51 33 80 0D 03 02 00 00 00 00 FF [06:49:24]Write i2c OK [06:49:24]MH_I2C_Read... [06:49:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:49:24]Read from MH i2c: E2 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 0B 00 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 0B 00 51 33 00 82 2F 8D 9B E0 88 52 17 90 00 AA [06:49:24]RAPDU: 82 2F 8D 9B E0 88 52 17 90 00 [06:49:24]wFMCommunicate OK [06:49:24]SAM_PROTO_SignData done [06:49:24]FM_MakeSignedData done [06:49:24]CreateOFDProtocolMessage [06:49:24]wFMCommunicate request_size=4 [06:49:24]MH_SAM_APDU [06:49:24]CAPDU: 80 11 00 00 [06:49:24]Write to MH i2c: E2 08 00 52 33 80 11 00 00 00 00 00 00 FF [06:49:24]Write i2c OK [06:49:24]MH_I2C_Read... [06:49:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:24]Read from MH i2c: E2 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 17 00 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 17 00 52 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4E [06:49:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:49:24]wFMCommunicate OK [06:49:24]CreateOFDProtocolMessage done [06:49:24]OFDSenderStorePacket 29742 [06:49:24]StoreOFDPacket docnum=29742 [06:49:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B9 FB 07 01 AC 95 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 0E 06 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 3C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 77 1F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 74 00 00 35 04 06 00 AE 93 46 46 C1 17 82 2F 8D 9B E0 88 52 17 [06:49:24]CheckFolder [06:49:24]dirname=/storage/ofd_packets [06:49:24]CheckFolder done [06:49:24]ProducePacketName [06:49:24]name=ofd_packets/00029742 [06:49:24]NVStorageSaveData ofd_packets/00029742 [06:49:24]File name is /storage/ofd_packets/00029742 [06:49:24]Write 301 bytes [06:49:24]NVStorageSaveData done [06:49:24]OFDSenderStorePacket done [06:49:24]KKMCreateOFDPacket done [06:49:24]NVStorageSaveData kkm_last_timestamp [06:49:24]File name is /storage/kkm_last_timestamp [06:49:24]Write 4 bytes [06:49:24]NVStorageSaveData done [06:49:24]ExternCall_PrintAddStr [06:49:24]wPrintStart [06:49:24]Write to MH i2c: 01 00 00 53 33 86 [06:49:24]Write i2c OK [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: 01 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: 01 07 00 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: 01 07 00 53 33 00 00 00 00 00 FF 0F 9B [06:49:24]RasterBufferAndPrint [06:49:24]line Счет N : (1)348217 [06:49:24]line ИНН: 02508201610067 [06:49:24]line Контрольно-Кассовый Чек [06:49:24]line ПРОДАЖА [06:49:24]line ТРК (МРК, ГНК) : 23 [06:49:24]line Товар: 2710124130 [06:49:24]line Аи-92-К-5 [06:49:24]line 1.550 * 64.80 [06:49:24]line = 100.44 [06:49:24]line НДС 12% НСП 1% [06:49:24]line > о реализуемом товаре [06:49:24]line ОКРУГЛЕНИЕ: -0.44 [06:49:24]line ИТОГО: 100.00 [06:49:24]line Внесено: 100.00 [06:49:24]line СДАЧА: 0.00 [06:49:24]line НСП 1% : 0.89 [06:49:24]line НДС 12% : 10.67 [06:49:24]line Наличными: 100.00 [06:49:24]line Безнал.: 0.00 [06:49:24]line Место: АЗС № 108 "Партнер Нефть" [06:49:24]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:49:24]line СНО: Общий режим [06:49:24]line Чек 16 16.04.2024 06:49 [06:49:24]line Смена: 118 ФФД: 1.0 [06:49:24]line ЗНМ: 0300000027 [06:49:24]line РНМ: 0000138879044617 [06:49:24]line Версия ККМ: 001 [06:49:24]line ФМ: 0000000000963154 [06:49:24]line ФД: 29742 [06:49:24]line ФПД: 191947562467607 [06:49:24]line 1/tax-web-control/client/api/v1/ticket?date=20240416T064927&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29742&fm=191947562467607&tin=02508201610067®Number=0000138879044617&sum=10000 [06:49:24]OFD Sender: Processing packet 29742 [packets to send 8, broken 7] [06:49:24]ProducePacketName [06:49:24]name=ofd_packets/00029742 [06:49:24]OFD Sender: To server: pG, [06:49:24]CommunicateWithHost lk.salyk.kg:30040 [06:49:24]ConnectInit lk.salyk.kg [06:49:24]written 0, free lines is 4095 [06:49:25]Write to MH i2c: 01 00 00 7D 33 B0 [06:49:25]Write i2c OK [06:49:25]MH_I2C_Read... [06:49:25]Read from MH i2c: 01 [06:49:25]MH_I2C_Read... [06:49:25]Read from MH i2c: 01 07 00 [06:49:25]MH_I2C_Read... [06:49:25]Read from MH i2c: 01 07 00 7D 33 00 00 00 00 00 BC 0C 7F [06:49:25]RasterBufferAndPrint [06:49:25]line [06:49:25]line [06:49:25]line [06:49:25]line [06:49:25]line [06:49:25]written 0, free lines is 3264 [06:49:25]MH_Cut [06:49:25]Write to MH i2c: D1 01 00 84 33 01 89 [06:49:25]Write i2c OK [06:49:25]MH_I2C_Read... [06:49:25]Read from MH i2c: D1 [06:49:25]MH_I2C_Read... [06:49:25]Read from MH i2c: D1 01 00 [06:49:25]MH_I2C_Read... [06:49:25]Read from MH i2c: D1 01 00 84 33 00 88 [06:49:25]Write to MH i2c: 01 00 00 85 33 B8 [06:49:25]Write i2c OK [06:49:25]MH_I2C_Read... [06:49:26]*** Cut start [06:49:26]*** Partial cut [06:49:26]*** CUTSNS_PIN = 1 [06:49:26]*** CUTSNS_PIN = 0 [06:49:26]*** Brake cut motor [06:49:26]Read from MH i2c: 01 [06:49:26]MH_I2C_Read... [06:49:26]*** Stop cut motor [06:49:26]*** Cut end [06:49:26]Read from MH i2c: 01 07 00 [06:49:26]MH_I2C_Read... [06:49:26]Read from MH i2c: 01 07 00 85 33 00 00 00 00 00 FF 0F CD [06:49:26]process_action close_receipt done [06:49:26]requested_data is exist [06:49:26]produce_requested_data [06:49:26]requested_item fm.sn is exist - process it [06:49:26]wFMCommunicate request_size=4 [06:49:26]MH_SAM_APDU [06:49:26]CAPDU: 80 11 00 00 [06:49:26]Write to MH i2c: E2 08 00 86 33 80 11 00 00 00 00 00 00 33 [06:49:26]Write i2c OK [06:49:26]MH_I2C_Read... [06:49:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:26]Read from MH i2c: E2 [06:49:26]MH_I2C_Read... [06:49:26]Read from MH i2c: E2 17 00 [06:49:26]MH_I2C_Read... [06:49:26]Read from MH i2c: E2 17 00 86 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 82 [06:49:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:49:26]wFMCommunicate OK [06:49:26]requested_item fd.num is exist - process it [06:49:26]SAM_PROTO_GetFieldsCounters [06:49:26]wFMCommunicate request_size=4 [06:49:26]MH_SAM_APDU [06:49:26]CAPDU: 80 13 00 00 [06:49:26]Write to MH i2c: E2 08 00 87 33 80 13 00 00 00 00 00 00 36 [06:49:26]Write i2c OK [06:49:26]MH_I2C_Read... [06:49:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:49:27]Read from MH i2c: E2 [06:49:27]MH_I2C_Read... [06:49:27]Read from MH i2c: E2 62 00 [06:49:27]MH_I2C_Read... [06:49:27]Read from MH i2c: E2 62 00 87 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2E 74 00 00 0E 04 04 00 76 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 BC [06:49:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2E 74 00 00 0E 04 04 00 76 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:49:27]wFMCommunicate OK [06:49:27]SAM_PROTO_GetFieldsCounters done [06:49:27]requested_item shift.num is exist - process it [06:49:27]requested_item shift.opened is exist - process it [06:49:27]req_shift_opened [06:49:27]FM_GetShiftState [06:49:27]SAM_PROTO_GetShiftState [06:49:27]wFMCommunicate request_size=4 [06:49:27]MH_SAM_APDU [06:49:27]CAPDU: 80 13 01 00 [06:49:27]Write to MH i2c: E2 08 00 88 33 80 13 01 00 00 00 00 00 38 [06:49:27]Write i2c OK [06:49:27]MH_I2C_Read... [06:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:27]Read from MH i2c: E2 [06:49:27]MH_I2C_Read... [06:49:27]Read from MH i2c: E2 0E 00 [06:49:27]MH_I2C_Read... [06:49:27]Read from MH i2c: E2 0E 00 88 33 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 E6 [06:49:27]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [06:49:27]wFMCommunicate OK [06:49:27]SAM_PROTO_GetShiftState done [06:49:27]FM_GetShiftState done [06:49:27]req_shift_opened done [06:49:27]requested_item shift.open_date is exist - process it [06:49:27]req_shift_open_date [06:49:27]req_shift_open_date done [06:49:27]produce_requested_data done [06:49:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29742,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [06:49:27]process_action_free close_receipt [06:49:27]json_value_free [06:49:27]json_value_free done [06:49:27]process_json_proto returns [06:49:27]Send response to host [06:49:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29742,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [06:49:27]free response buf [06:49:27]execute_script done [06:49:27]execute_script returns [06:49:27]free content buf [06:49:27]Sock 9.Close socket [06:49:27]Sock 9.Thread stoped [06:51:35]ConnectInit Can't connect to host [06:51:35]CommunicateWithHost connect error [06:51:35]CommunicateWithHost err = -1 [06:51:35]OFD Sender: Server communicate error [06:51:40]OFD Sender: Processing packet 29742 [packets to send 8, broken 7] [06:51:40]ProducePacketName [06:51:40]name=ofd_packets/00029742 [06:51:40]OFD Sender: To server: pG, [06:51:40]CommunicateWithHost lk.salyk.kg:30040 [06:51:40]ConnectInit lk.salyk.kg [06:51:40]Connected sock=9 [06:51:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B9 FB 07 01 AC 95 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 0E 06 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 3C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 77 1F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 74 00 00 35 04 06 00 AE 93 46 46 C1 17 82 2F 8D 9B E0 88 52 17 [06:51:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 40 B3 47 00 D5 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 2E 74 00 00 F4 03 04 00 9D CA 1D 66 B6 04 01 00 00 A2 84 9F C8 ED 7E 1F 4D [06:51:40]CommunicateWithHost err = 0 [06:51:40]CheckOFDResponse [06:51:40]1017 (14) - 77093643461234 [06:51:40]1041 (16) - 0000000000963154 [06:51:40]1040 (4) - 29742 [06:51:40]1012 (4) - 16.04.2024 00:47 [06:51:40]1206 (1) - 0 [06:51:40]OFD Sender: Remove packet 29742 [06:51:40]ProducePacketName [06:51:40]name=ofd_packets/00029742 [06:51:40]NVStorageDeleteData [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]accept exits with 7 [06:53:10]New connection [06:53:10]New thread 3066965348 created [06:53:10]Thread 3067108708 joined [06:53:10]Waiting for new connection... [06:53:10] Sock 7.Parse request [06:53:10]Sock 7.Check first char [06:53:10]Sock 7.First char is OK [06:53:10]request: POST /json_proto HTTP/1.0 [06:53:10]Method: POST [06:53:10]URL: /json_proto [06:53:10]Method is POST - this is cgi request [06:53:10]url: /json_proto [06:53:10]query_string will be loaded in cgi processing [06:53:10]execute_cgi json_proto POST (null) [06:53:10]execute_cgi path=json_proto method=POST [06:53:10]POST find Content-Length [06:53:10]Host: 172.17.33.3:8080 [06:53:10]Content-Length: 1206 [06:53:10]Content-Type: application/json [06:53:10] [06:53:10]POST finish read [06:53:10]Found Content-Length = 1206 [06:53:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348218\u000A16.04.2024 06:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 13.890 x 64.80\u000A\u0418\u0422\u041E\u0413: 900.07\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74589\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:53:10]execute_script... [06:53:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348218\u000A16.04.2024 06:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 13.890 x 64.80\u000A\u0418\u0422\u041E\u0413: 900.07\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74589\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:53:10]POST & json_proto [06:53:10]process_json_proto [06:53:10]json parsed OK: [06:53:10]protocol is kg_v1.0 [06:53:10]action value=print_text [06:53:10]process_action print_text [06:53:10]cmd_print_text [06:53:10]ExternCall_PrintAddStr [06:53:10]wPrintStart [06:53:10]Write to MH i2c: 01 00 00 89 33 BC [06:53:10]Write i2c OK [06:53:10]MH_I2C_Read... [06:53:10]Read from MH i2c: 01 [06:53:10]MH_I2C_Read... [06:53:10]Read from MH i2c: 01 07 00 [06:53:10]MH_I2C_Read... [06:53:10]Read from MH i2c: 01 07 00 89 33 00 00 00 00 00 FF 0F D1 [06:53:10]RasterBufferAndPrint [06:53:10]line *****ТОВАРНЫЙ ЧЕК***** [06:53:10]line АЗС 108 [06:53:10]line Партнер нефть [06:53:10]line 02508201610067 [06:53:10]line Кассир : Шадыканова Ж. [06:53:10]line Счет N : (1)348218 [06:53:10]line 16.04.2024 06:34 [06:53:10]line ПРОДАЖА [06:53:10]line ТРК (МРК, ГНК): 42 [06:53:10]line Вид ГСМ : 2710124130 [06:53:10]line Аи-92-К-5 [06:53:10]line 13.890 x 64.80 [06:53:10]line ИТОГ: 900.07 [06:53:10]line Тип оплаты: Талоны: Топливная Карта [06:53:10]line 74589 [06:53:10]line ______________________ [06:53:10]line (подпись) [06:53:10]written 0, free lines is 4095 [06:53:10]Write to MH i2c: 01 00 00 9E 33 D1 [06:53:10]Write i2c OK [06:53:10]MH_I2C_Read... [06:53:10]Read from MH i2c: 01 [06:53:10]MH_I2C_Read... [06:53:10]Read from MH i2c: 01 07 00 [06:53:10]MH_I2C_Read... [06:53:10]Read from MH i2c: 01 07 00 9E 33 00 00 00 00 00 F5 0D DA [06:53:10]RasterBufferAndPrint [06:53:10]line [06:53:10]line [06:53:10]line [06:53:10]line [06:53:10]line [06:53:10]written 0, free lines is 3575 [06:53:10]MH_Cut [06:53:10]Write to MH i2c: D1 01 00 A5 33 01 AA [06:53:10]Write i2c OK [06:53:10]MH_I2C_Read... [06:53:10]Read from MH i2c: D1 [06:53:10]MH_I2C_Read... [06:53:10]Read from MH i2c: D1 01 00 [06:53:10]MH_I2C_Read... [06:53:10]Read from MH i2c: D1 01 00 A5 33 00 A9 [06:53:10]Write to MH i2c: 01 00 00 A6 33 D9 [06:53:10]Write i2c OK [06:53:10]MH_I2C_Read... [06:53:10]OFD Sender: No OFD packet to send [06:53:11]*** Cut start [06:53:11]*** Partial cut [06:53:11]*** CUTSNS_PIN = 1 [06:53:11]*** CUTSNS_PIN = 0 [06:53:11]*** Brake cut motor [06:53:11]Read from MH i2c: 01 [06:53:11]MH_I2C_Read... [06:53:11]Read from MH i2c: 01 07 00 [06:53:11]MH_I2C_Read... [06:53:11]*** Stop cut motor [06:53:11]*** Cut end [06:53:11]Read from MH i2c: 01 07 00 A6 33 00 00 00 00 00 FF 0F EE [06:53:11]process_action print_text done [06:53:11]requested_data is exist [06:53:11]produce_requested_data [06:53:11]requested_item fm.sn is exist - process it [06:53:11]wFMCommunicate request_size=4 [06:53:11]MH_SAM_APDU [06:53:11]CAPDU: 80 11 00 00 [06:53:11]Write to MH i2c: E2 08 00 A7 33 80 11 00 00 00 00 00 00 54 [06:53:11]Write i2c OK [06:53:11]MH_I2C_Read... [06:53:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:12]Read from MH i2c: E2 [06:53:12]MH_I2C_Read... [06:53:12]Read from MH i2c: E2 17 00 [06:53:12]MH_I2C_Read... [06:53:12]Read from MH i2c: E2 17 00 A7 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A3 [06:53:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:53:12]wFMCommunicate OK [06:53:12]requested_item fd.num is exist - process it [06:53:12]SAM_PROTO_GetFieldsCounters [06:53:12]wFMCommunicate request_size=4 [06:53:12]MH_SAM_APDU [06:53:12]CAPDU: 80 13 00 00 [06:53:12]Write to MH i2c: E2 08 00 A8 33 80 13 00 00 00 00 00 00 57 [06:53:12]Write i2c OK [06:53:12]MH_I2C_Read... [06:53:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:53:12]Read from MH i2c: E2 [06:53:12]MH_I2C_Read... [06:53:12]Read from MH i2c: E2 62 00 [06:53:12]MH_I2C_Read... [06:53:12]Read from MH i2c: E2 62 00 A8 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2E 74 00 00 0E 04 04 00 76 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 DD [06:53:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2E 74 00 00 0E 04 04 00 76 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:53:12]wFMCommunicate OK [06:53:12]SAM_PROTO_GetFieldsCounters done [06:53:12]requested_item shift.num is exist - process it [06:53:12]requested_item shift.opened is exist - process it [06:53:12]req_shift_opened [06:53:12]FM_GetShiftState [06:53:12]SAM_PROTO_GetShiftState [06:53:12]wFMCommunicate request_size=4 [06:53:12]MH_SAM_APDU [06:53:12]CAPDU: 80 13 01 00 [06:53:12]Write to MH i2c: E2 08 00 A9 33 80 13 01 00 00 00 00 00 59 [06:53:12]Write i2c OK [06:53:12]MH_I2C_Read... [06:53:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:12]Read from MH i2c: E2 [06:53:12]MH_I2C_Read... [06:53:12]Read from MH i2c: E2 0E 00 [06:53:12]MH_I2C_Read... [06:53:12]Read from MH i2c: E2 0E 00 A9 33 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 07 [06:53:12]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [06:53:12]wFMCommunicate OK [06:53:12]SAM_PROTO_GetShiftState done [06:53:12]FM_GetShiftState done [06:53:12]req_shift_opened done [06:53:12]requested_item shift.open_date is exist - process it [06:53:12]req_shift_open_date [06:53:12]req_shift_open_date done [06:53:12]produce_requested_data done [06:53:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29742,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [06:53:12]process_action_free print_text [06:53:12]json_value_free [06:53:12]json_value_free done [06:53:12]process_json_proto returns [06:53:12]Send response to host [06:53:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29742,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [06:53:12]free response buf [06:53:12]execute_script done [06:53:12]execute_script returns [06:53:12]free content buf [06:53:12]Sock 7.Close socket [06:53:12]Sock 7.Thread stoped [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:14]accept exits with 9 [06:59:14]New connection [06:59:14]New thread 3067108708 created [06:59:14]Thread 3066965348 joined [06:59:14]Waiting for new connection... [06:59:14] Sock 9.Parse request [06:59:14]Sock 9.Check first char [06:59:14]Sock 9.First char is OK [06:59:14]request: POST /json_proto HTTP/1.0 [06:59:14]Method: POST [06:59:14]URL: /json_proto [06:59:14]Method is POST - this is cgi request [06:59:14]url: /json_proto [06:59:14]query_string will be loaded in cgi processing [06:59:14]execute_cgi json_proto POST (null) [06:59:14]execute_cgi path=json_proto method=POST [06:59:14]POST find Content-Length [06:59:14]Host: 172.17.33.3:8080 [06:59:14]Content-Length: 674 [06:59:14]Content-Type: application/json [06:59:14] [06:59:14]POST finish read [06:59:14]Found Content-Length = 674 [06:59:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "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" ] } } [06:59:14]execute_script... [06:59:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "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" ] } } [06:59:14]POST & json_proto [06:59:14]process_json_proto [06:59:14]json parsed OK: [06:59:14]protocol is kg_v1.0 [06:59:14]action value=close_receipt [06:59:14]process_action close_receipt [06:59:14]cmd_close_receipt [06:59:14]MH_GetDate [06:59:14]Write to MH i2c: F0 00 00 AA 33 CC [06:59:14]Write i2c OK [06:59:14]MH_I2C_Read... [06:59:14]Read from MH i2c: F0 [06:59:14]MH_I2C_Read... [06:59:14]Read from MH i2c: F0 09 00 [06:59:14]MH_I2C_Read... [06:59:14]Read from MH i2c: F0 09 00 AA 33 00 C6 21 1E 66 23 5B 8F 65 B2 [06:59:14]GetLastDocTimeStamp 1713250167 [06:59:14]current date 1713250758 [06:59:14]FM_GetShiftState [06:59:14]SAM_PROTO_GetShiftState [06:59:14]wFMCommunicate request_size=4 [06:59:14]MH_SAM_APDU [06:59:14]CAPDU: 80 13 01 00 [06:59:14]Write to MH i2c: E2 08 00 AB 33 80 13 01 00 00 00 00 00 5B [06:59:14]Write i2c OK [06:59:14]MH_I2C_Read... [06:59:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:14]Read from MH i2c: E2 [06:59:14]MH_I2C_Read... [06:59:14]Read from MH i2c: E2 0E 00 [06:59:14]MH_I2C_Read... [06:59:14]Read from MH i2c: E2 0E 00 AB 33 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 09 [06:59:14]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [06:59:14]wFMCommunicate OK [06:59:14]SAM_PROTO_GetShiftState done [06:59:14]FM_GetShiftState done [06:59:14]opened in 1713226843 [06:59:14]opened+sec_in_day 1713313243 [06:59:14]quantity*price = 40022 [06:59:14]sum+1 = 40023 [06:59:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 17 16.04.2024 06:59 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29743 ФПД: 187768190762619 1/tax-web-control/client/api/v1/ticket?date=20240416T065919&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29743&fm=187768190762619&tin=02508201610067®Number=0000138879044617&sum=40000 [06:59:15]StoreToDocumentArchive [06:59:15]shift 118 fd 29743 [06:59:15]save to /storage/0118/doc_00029743 [06:59:15]save last doc name /storage/0118/doc_00029743 to /storage/kkm_last_doc_name [06:59:15]save OK [06:59:15]Clear old archive folders... [06:59:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:59:15]tlvbuf is B6F7B010 [06:59:15]SAM_PROTO_ClearQueue [06:59:15]wFMCommunicate request_size=4 [06:59:15]MH_SAM_APDU [06:59:15]CAPDU: 80 09 00 00 [06:59:15]Write to MH i2c: E2 08 00 B8 33 80 09 00 00 00 00 00 00 5D [06:59:15]Write i2c OK [06:59:15]MH_I2C_Read... [06:59:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:15]Read from MH i2c: E2 [06:59:15]MH_I2C_Read... [06:59:15]Read from MH i2c: E2 03 00 [06:59:15]MH_I2C_Read... [06:59:15]Read from MH i2c: E2 03 00 B8 33 00 90 00 5F [06:59:15]RAPDU: 90 00 [06:59:15]wFMCommunicate OK [06:59:15]SAM_PROTO_ClearQueue done [06:59:15]KKMCreateOFDPacket [06:59:15]OFDProtocolAddRootSTLVToBuf [06:59:15]FM_MakeSignedData [06:59:15]FM_MakeSignedData [06:59:15]SAM_PROTO_SignData [06:59:15]wFMCommunicate request_size=4 [06:59:15]MH_SAM_APDU [06:59:15]CAPDU: 80 0D 01 02 [06:59:15]Write to MH i2c: E2 08 00 B9 33 80 0D 01 02 00 00 00 00 65 [06:59:15]Write i2c OK [06:59:15]MH_I2C_Read... [06:59:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:15]Read from MH i2c: E2 [06:59:15]MH_I2C_Read... [06:59:15]Read from MH i2c: E2 03 00 [06:59:15]MH_I2C_Read... [06:59:15]Read from MH i2c: E2 03 00 B9 33 00 90 00 60 [06:59:15]RAPDU: 90 00 [06:59:15]wFMCommunicate OK [06:59:15]wFMCommunicate request_size=255 [06:59:15]MH_SAM_APDU [06:59:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 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 11 00 00 00 F4 03 04 00 C7 21 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 74 00 00 35 04 06 00 AA C6 30 4F [06:59:15]Write to MH i2c: E2 02 01 BA 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 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 11 00 00 00 F4 03 04 00 C7 21 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 74 00 00 35 04 06 00 AA C6 30 4F 00 00 38 [06:59:15]Write i2c OK [06:59:15]MH_I2C_Read... [06:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:16]Read from MH i2c: E2 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: E2 03 00 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: E2 03 00 BA 33 00 90 00 61 [06:59:16]RAPDU: 90 00 [06:59:16]wFMCommunicate OK [06:59:16]wFMCommunicate request_size=7 [06:59:16]MH_SAM_APDU [06:59:16]CAPDU: 80 0D 02 02 02 7E 7B [06:59:16]Write to MH i2c: E2 0A 00 BB 33 80 0D 02 02 02 00 7E 7B 00 00 65 [06:59:16]Write i2c OK [06:59:16]MH_I2C_Read... [06:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:16]Read from MH i2c: E2 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: E2 03 00 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: E2 03 00 BB 33 00 90 00 62 [06:59:16]RAPDU: 90 00 [06:59:16]wFMCommunicate OK [06:59:16]wFMCommunicate request_size=4 [06:59:16]MH_SAM_APDU [06:59:16]CAPDU: 80 0D 03 02 [06:59:16]Write to MH i2c: E2 08 00 BC 33 80 0D 03 02 00 00 00 00 6A [06:59:16]Write i2c OK [06:59:16]MH_I2C_Read... [06:59:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:16]OFD Sender: No OFD packet to send [06:59:16]Read from MH i2c: E2 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: E2 0B 00 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: E2 0B 00 BC 33 00 33 E8 D9 54 F4 5B 56 63 90 00 BB [06:59:16]RAPDU: 33 E8 D9 54 F4 5B 56 63 90 00 [06:59:16]wFMCommunicate OK [06:59:16]SAM_PROTO_SignData done [06:59:16]FM_MakeSignedData done [06:59:16]CreateOFDProtocolMessage [06:59:16]wFMCommunicate request_size=4 [06:59:16]MH_SAM_APDU [06:59:16]CAPDU: 80 11 00 00 [06:59:16]Write to MH i2c: E2 08 00 BD 33 80 11 00 00 00 00 00 00 6A [06:59:16]Write i2c OK [06:59:16]MH_I2C_Read... [06:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:16]Read from MH i2c: E2 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: E2 17 00 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: E2 17 00 BD 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B9 [06:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:59:16]wFMCommunicate OK [06:59:16]CreateOFDProtocolMessage done [06:59:16]OFDSenderStorePacket 29743 [06:59:16]StoreOFDPacket docnum=29743 [06:59:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 1A 91 04 01 15 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 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 11 00 00 00 F4 03 04 00 C7 21 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 74 00 00 35 04 06 00 AA C6 30 4F 7E 7B 33 E8 D9 54 F4 5B 56 63 [06:59:16]CheckFolder [06:59:16]dirname=/storage/ofd_packets [06:59:16]CheckFolder done [06:59:16]ProducePacketName [06:59:16]name=ofd_packets/00029743 [06:59:16]NVStorageSaveData ofd_packets/00029743 [06:59:16]File name is /storage/ofd_packets/00029743 [06:59:16]Write 298 bytes [06:59:16]NVStorageSaveData done [06:59:16]OFDSenderStorePacket done [06:59:16]KKMCreateOFDPacket done [06:59:16]NVStorageSaveData kkm_last_timestamp [06:59:16]File name is /storage/kkm_last_timestamp [06:59:16]Write 4 bytes [06:59:16]NVStorageSaveData done [06:59:16]ExternCall_PrintAddStr [06:59:16]wPrintStart [06:59:16]Write to MH i2c: 01 00 00 BE 33 F1 [06:59:16]Write i2c OK [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: 01 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: 01 07 00 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: 01 07 00 BE 33 00 00 00 00 00 FF 0F 06 [06:59:16]RasterBufferAndPrint [06:59:16]line Счет N : (1)348219 [06:59:16]line ИНН: 02508201610067 [06:59:16]line Контрольно-Кассовый Чек [06:59:16]line ПРОДАЖА [06:59:16]line ТРК (МРК, ГНК) : 11 [06:59:16]line Товар: 2710194210 [06:59:16]line ДТ-К-5 [06:59:16]line 5.490 * 72.90 [06:59:16]line = 400.22 [06:59:16]line НДС 12% НСП 1% [06:59:16]line > о реализуемом товаре [06:59:16]line ОКРУГЛЕНИЕ: -0.22 [06:59:16]line ИТОГО: 400.00 [06:59:16]line Внесено: 400.00 [06:59:16]line СДАЧА: 0.00 [06:59:16]line НСП 1% : 3.54 [06:59:16]line НДС 12% : 42.50 [06:59:16]line Наличными: 400.00 [06:59:16]line Безнал.: 0.00 [06:59:16]line Место: АЗС № 108 "Партнер Нефть" [06:59:16]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:59:16]line СНО: Общий режим [06:59:16]line Чек 17 16.04.2024 06:59 [06:59:16]line Смена: 118 ФФД: 1.0 [06:59:16]line ЗНМ: 0300000027 [06:59:16]line РНМ: 0000138879044617 [06:59:16]line Версия ККМ: 001 [06:59:16]line ФМ: 0000000000963154 [06:59:16]line ФД: 29743 [06:59:16]line ФПД: 187768190762619 [06:59:16]line 1/tax-web-control/client/api/v1/ticket?date=20240416T065919&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29743&fm=187768190762619&tin=02508201610067®Number=0000138879044617&sum=40000 [06:59:16]OFD Sender: Processing packet 29743 [packets to send 8, broken 7] [06:59:16]ProducePacketName [06:59:16]name=ofd_packets/00029743 [06:59:16]OFD Sender: To server: pG, [06:59:16]CommunicateWithHost lk.salyk.kg:30040 [06:59:16]ConnectInit lk.salyk.kg [06:59:16]written 0, free lines is 4095 [06:59:16]Connected sock=10 [06:59:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 1A 91 04 01 15 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 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 11 00 00 00 F4 03 04 00 C7 21 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 74 00 00 35 04 06 00 AA C6 30 4F 7E 7B 33 E8 D9 54 F4 5B 56 63 [06:59:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6A 4D 47 00 A0 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 74 00 00 F4 03 04 00 65 CC 1D 66 B6 04 01 00 00 7C D8 5B C8 B1 26 AF 3D [06:59:17]CommunicateWithHost err = 0 [06:59:17]CheckOFDResponse [06:59:17]1017 (14) - 77093643461234 [06:59:17]1041 (16) - 0000000000963154 [06:59:17]1040 (4) - 29743 [06:59:17]1012 (4) - 16.04.2024 00:55 [06:59:17]1206 (1) - 0 [06:59:17]OFD Sender: Remove packet 29743 [06:59:17]ProducePacketName [06:59:17]name=ofd_packets/00029743 [06:59:17]NVStorageDeleteData [06:59:17]Write to MH i2c: 01 00 00 E8 33 1B [06:59:17]Write i2c OK [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: 01 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: 01 07 00 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: 01 07 00 E8 33 00 00 00 00 00 C6 0C F4 [06:59:17]RasterBufferAndPrint [06:59:17]line [06:59:17]line [06:59:17]line [06:59:17]line [06:59:17]line [06:59:17]written 0, free lines is 3276 [06:59:17]MH_Cut [06:59:17]Write to MH i2c: D1 01 00 EF 33 01 F4 [06:59:17]Write i2c OK [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: D1 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: D1 01 00 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: D1 01 00 EF 33 00 F3 [06:59:17]Write to MH i2c: 01 00 00 F0 33 23 [06:59:17]Write i2c OK [06:59:17]MH_I2C_Read... [06:59:17]OFD Sender: No OFD packet to send [06:59:17]*** Cut start [06:59:17]*** Partial cut [06:59:17]*** CUTSNS_PIN = 1 [06:59:18]*** CUTSNS_PIN = 0 [06:59:18]*** Brake cut motor [06:59:18]Read from MH i2c: 01 [06:59:18]MH_I2C_Read... [06:59:18]*** Stop cut motor [06:59:18]*** Cut end [06:59:18]Read from MH i2c: 01 07 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: 01 07 00 F0 33 00 00 00 00 00 FF 0F 38 [06:59:18]process_action close_receipt done [06:59:18]requested_data is exist [06:59:18]produce_requested_data [06:59:18]requested_item fm.sn is exist - process it [06:59:18]wFMCommunicate request_size=4 [06:59:18]MH_SAM_APDU [06:59:18]CAPDU: 80 11 00 00 [06:59:18]Write to MH i2c: E2 08 00 F1 33 80 11 00 00 00 00 00 00 9E [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 17 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 17 00 F1 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 ED [06:59:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:59:18]wFMCommunicate OK [06:59:18]requested_item fd.num is exist - process it [06:59:18]SAM_PROTO_GetFieldsCounters [06:59:18]wFMCommunicate request_size=4 [06:59:18]MH_SAM_APDU [06:59:18]CAPDU: 80 13 00 00 [06:59:18]Write to MH i2c: E2 08 00 F2 33 80 13 00 00 00 00 00 00 A1 [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 62 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 62 00 F2 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2F 74 00 00 0E 04 04 00 76 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 2B [06:59:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2F 74 00 00 0E 04 04 00 76 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:59:18]wFMCommunicate OK [06:59:18]SAM_PROTO_GetFieldsCounters done [06:59:18]requested_item shift.num is exist - process it [06:59:18]requested_item shift.opened is exist - process it [06:59:18]req_shift_opened [06:59:18]FM_GetShiftState [06:59:18]SAM_PROTO_GetShiftState [06:59:18]wFMCommunicate request_size=4 [06:59:18]MH_SAM_APDU [06:59:18]CAPDU: 80 13 01 00 [06:59:18]Write to MH i2c: E2 08 00 F3 33 80 13 01 00 00 00 00 00 A3 [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 0E 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 0E 00 F3 33 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 51 [06:59:18]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [06:59:18]wFMCommunicate OK [06:59:18]SAM_PROTO_GetShiftState done [06:59:18]FM_GetShiftState done [06:59:18]req_shift_opened done [06:59:18]requested_item shift.open_date is exist - process it [06:59:18]req_shift_open_date [06:59:18]req_shift_open_date done [06:59:18]produce_requested_data done [06:59:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29743,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [06:59:18]process_action_free close_receipt [06:59:18]json_value_free [06:59:18]json_value_free done [06:59:18]process_json_proto returns [06:59:18]Send response to host [06:59:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29743,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [06:59:18]free response buf [06:59:18]execute_script done [06:59:18]execute_script returns [06:59:18]free content buf [06:59:18]Sock 9.Close socket [06:59:18]Sock 9.Thread stoped [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:07]accept exits with 7 [07:11:07]New connection [07:11:07]New thread 3066965348 created [07:11:07]Thread 3067108708 joined [07:11:07]Waiting for new connection... [07:11:07] Sock 7.Parse request [07:11:07]Sock 7.Check first char [07:11:07]Sock 7.First char is OK [07:11:07]request: POST /json_proto HTTP/1.0 [07:11:07]Method: POST [07:11:07]URL: /json_proto [07:11:07]Method is POST - this is cgi request [07:11:07]url: /json_proto [07:11:07]query_string will be loaded in cgi processing [07:11:07]execute_cgi json_proto POST (null) [07:11:07]execute_cgi path=json_proto method=POST [07:11:07]POST find Content-Length [07:11:07]Host: 172.17.33.3:8080 [07:11:07]Content-Length: 1206 [07:11:07]Content-Type: application/json [07:11:07] [07:11:07]POST finish read [07:11:07]Found Content-Length = 1206 [07:11:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348220\u000A16.04.2024 06:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 13.890 x 64.80\u000A\u0418\u0422\u041E\u0413: 900.07\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74586\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:11:07]execute_script... [07:11:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348220\u000A16.04.2024 06:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 13.890 x 64.80\u000A\u0418\u0422\u041E\u0413: 900.07\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74586\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:11:07]POST & json_proto [07:11:07]process_json_proto [07:11:07]json parsed OK: [07:11:07]protocol is kg_v1.0 [07:11:07]action value=print_text [07:11:07]process_action print_text [07:11:07]cmd_print_text [07:11:07]ExternCall_PrintAddStr [07:11:07]wPrintStart [07:11:07]Write to MH i2c: 01 00 00 F4 33 27 [07:11:07]Write i2c OK [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: 01 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: 01 07 00 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: 01 07 00 F4 33 00 00 00 00 00 FF 0F 3C [07:11:07]RasterBufferAndPrint [07:11:07]line *****ТОВАРНЫЙ ЧЕК***** [07:11:07]line АЗС 108 [07:11:07]line Партнер нефть [07:11:07]line 02508201610067 [07:11:07]line Кассир : Шадыканова Ж. [07:11:07]line Счет N : (1)348220 [07:11:07]line 16.04.2024 06:52 [07:11:07]line ПРОДАЖА [07:11:07]line ТРК (МРК, ГНК): 42 [07:11:07]line Вид ГСМ : 2710124130 [07:11:07]line Аи-92-К-5 [07:11:07]line 13.890 x 64.80 [07:11:07]line ИТОГ: 900.07 [07:11:07]line Тип оплаты: Талоны: Топливная Карта [07:11:07]line 74586 [07:11:07]line ______________________ [07:11:07]line (подпись) [07:11:07]written 0, free lines is 4095 [07:11:07]Write to MH i2c: 01 00 00 09 34 3D [07:11:07]Write i2c OK [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: 01 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: 01 07 00 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: 01 07 00 09 34 00 00 00 00 00 F5 0D 46 [07:11:07]RasterBufferAndPrint [07:11:07]line [07:11:07]line [07:11:07]line [07:11:07]line [07:11:07]line [07:11:07]written 0, free lines is 3575 [07:11:07]MH_Cut [07:11:07]Write to MH i2c: D1 01 00 10 34 01 16 [07:11:07]Write i2c OK [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: D1 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: D1 01 00 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: D1 01 00 10 34 00 15 [07:11:07]Write to MH i2c: 01 00 00 11 34 45 [07:11:07]Write i2c OK [07:11:07]MH_I2C_Read... [07:11:08]OFD Sender: No OFD packet to send [07:11:08]*** Cut start [07:11:08]*** Partial cut [07:11:08]*** CUTSNS_PIN = 1 [07:11:08]*** CUTSNS_PIN = 0 [07:11:08]*** Brake cut motor [07:11:09]Read from MH i2c: 01 [07:11:09]MH_I2C_Read... [07:11:09]*** Stop cut motor [07:11:09]*** Cut end [07:11:09]Read from MH i2c: 01 07 00 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: 01 07 00 11 34 00 00 00 00 00 FF 0F 5A [07:11:09]process_action print_text done [07:11:09]requested_data is exist [07:11:09]produce_requested_data [07:11:09]requested_item fm.sn is exist - process it [07:11:09]wFMCommunicate request_size=4 [07:11:09]MH_SAM_APDU [07:11:09]CAPDU: 80 11 00 00 [07:11:09]Write to MH i2c: E2 08 00 12 34 80 11 00 00 00 00 00 00 C0 [07:11:09]Write i2c OK [07:11:09]MH_I2C_Read... [07:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:09]Read from MH i2c: E2 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: E2 17 00 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: E2 17 00 12 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0F [07:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:11:09]wFMCommunicate OK [07:11:09]requested_item fd.num is exist - process it [07:11:09]SAM_PROTO_GetFieldsCounters [07:11:09]wFMCommunicate request_size=4 [07:11:09]MH_SAM_APDU [07:11:09]CAPDU: 80 13 00 00 [07:11:09]Write to MH i2c: E2 08 00 13 34 80 13 00 00 00 00 00 00 C3 [07:11:09]Write i2c OK [07:11:09]MH_I2C_Read... [07:11:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:11:09]Read from MH i2c: E2 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: E2 62 00 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: E2 62 00 13 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2F 74 00 00 0E 04 04 00 76 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 4D [07:11:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2F 74 00 00 0E 04 04 00 76 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 [07:11:09]wFMCommunicate OK [07:11:09]SAM_PROTO_GetFieldsCounters done [07:11:09]requested_item shift.num is exist - process it [07:11:09]requested_item shift.opened is exist - process it [07:11:09]req_shift_opened [07:11:09]FM_GetShiftState [07:11:09]SAM_PROTO_GetShiftState [07:11:09]wFMCommunicate request_size=4 [07:11:09]MH_SAM_APDU [07:11:09]CAPDU: 80 13 01 00 [07:11:09]Write to MH i2c: E2 08 00 14 34 80 13 01 00 00 00 00 00 C5 [07:11:09]Write i2c OK [07:11:09]MH_I2C_Read... [07:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:09]Read from MH i2c: E2 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: E2 0E 00 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: E2 0E 00 14 34 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 73 [07:11:09]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [07:11:09]wFMCommunicate OK [07:11:09]SAM_PROTO_GetShiftState done [07:11:09]FM_GetShiftState done [07:11:09]req_shift_opened done [07:11:09]requested_item shift.open_date is exist - process it [07:11:09]req_shift_open_date [07:11:09]req_shift_open_date done [07:11:09]produce_requested_data done [07:11:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29743,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [07:11:09]process_action_free print_text [07:11:09]json_value_free [07:11:09]json_value_free done [07:11:09]process_json_proto returns [07:11:09]Send response to host [07:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29743,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [07:11:09]free response buf [07:11:09]execute_script done [07:11:09]execute_script returns [07:11:09]free content buf [07:11:09]Sock 7.Close socket [07:11:09]Sock 7.Thread stoped [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:51]accept exits with 9 [07:19:51]New connection [07:19:51]New thread 3067108708 created [07:19:51]Thread 3066965348 joined [07:19:51]Waiting for new connection... [07:19:51] Sock 9.Parse request [07:19:51]Sock 9.Check first char [07:19:51]Sock 9.First char is OK [07:19:51]request: POST /json_proto HTTP/1.0 [07:19:51]Method: POST [07:19:51]URL: /json_proto [07:19:51]Method is POST - this is cgi request [07:19:51]url: /json_proto [07:19:51]query_string will be loaded in cgi processing [07:19:51]execute_cgi json_proto POST (null) [07:19:51]execute_cgi path=json_proto method=POST [07:19:51]POST find Content-Length [07:19:51]Host: 172.17.33.3:8080 [07:19:51]Content-Length: 682 [07:19:51]Content-Type: application/json [07:19:51] [07:19:51]POST finish read [07:19:51]Found Content-Length = 682 [07:19:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:51]execute_script... [07:19:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:51]POST & json_proto [07:19:51]process_json_proto [07:19:51]json parsed OK: [07:19:51]protocol is kg_v1.0 [07:19:51]action value=close_receipt [07:19:51]process_action close_receipt [07:19:51]cmd_close_receipt [07:19:51]MH_GetDate [07:19:51]Write to MH i2c: F0 00 00 15 34 38 [07:19:51]Write i2c OK [07:19:51]MH_I2C_Read... [07:19:51]Read from MH i2c: F0 [07:19:51]MH_I2C_Read... [07:19:51]Read from MH i2c: F0 09 00 [07:19:51]MH_I2C_Read... [07:19:51]Read from MH i2c: F0 09 00 15 34 00 9B 26 1E 66 23 5B 8F 65 F8 [07:19:51]GetLastDocTimeStamp 1713250759 [07:19:51]current date 1713251995 [07:19:51]FM_GetShiftState [07:19:51]SAM_PROTO_GetShiftState [07:19:51]wFMCommunicate request_size=4 [07:19:51]MH_SAM_APDU [07:19:51]CAPDU: 80 13 01 00 [07:19:51]Write to MH i2c: E2 08 00 16 34 80 13 01 00 00 00 00 00 C7 [07:19:51]Write i2c OK [07:19:51]MH_I2C_Read... [07:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:51]Read from MH i2c: E2 [07:19:51]MH_I2C_Read... [07:19:51]Read from MH i2c: E2 0E 00 [07:19:51]MH_I2C_Read... [07:19:51]Read from MH i2c: E2 0E 00 16 34 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 75 [07:19:51]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [07:19:51]wFMCommunicate OK [07:19:51]SAM_PROTO_GetShiftState done [07:19:51]FM_GetShiftState done [07:19:51]opened in 1713226843 [07:19:51]opened+sec_in_day 1713313243 [07:19:51]quantity*price = 200037 [07:19:51]sum+1 = 200039 [07:19:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 18 16.04.2024 07:19 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29744 ФПД: 255964383463490 1/tax-web-control/client/api/v1/ticket?date=20240416T071955&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29744&fm=255964383463490&tin=02508201610067®Number=0000138879044617&sum=200000 [07:19:52]StoreToDocumentArchive [07:19:52]shift 118 fd 29744 [07:19:52]save to /storage/0118/doc_00029744 [07:19:52]save last doc name /storage/0118/doc_00029744 to /storage/kkm_last_doc_name [07:19:52]save OK [07:19:52]Clear old archive folders... [07:19:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:19:52]tlvbuf is B6F005F0 [07:19:52]SAM_PROTO_ClearQueue [07:19:52]wFMCommunicate request_size=4 [07:19:52]MH_SAM_APDU [07:19:52]CAPDU: 80 09 00 00 [07:19:52]Write to MH i2c: E2 08 00 23 34 80 09 00 00 00 00 00 00 C9 [07:19:52]Write i2c OK [07:19:52]MH_I2C_Read... [07:19:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:19:52]Read from MH i2c: E2 [07:19:52]MH_I2C_Read... [07:19:52]Read from MH i2c: E2 03 00 [07:19:52]MH_I2C_Read... [07:19:52]Read from MH i2c: E2 03 00 23 34 00 90 00 CB [07:19:52]RAPDU: 90 00 [07:19:52]wFMCommunicate OK [07:19:52]SAM_PROTO_ClearQueue done [07:19:52]KKMCreateOFDPacket [07:19:52]OFDProtocolAddRootSTLVToBuf [07:19:52]FM_MakeSignedData [07:19:52]FM_MakeSignedData [07:19:52]SAM_PROTO_SignData [07:19:52]wFMCommunicate request_size=4 [07:19:52]MH_SAM_APDU [07:19:52]CAPDU: 80 0D 01 02 [07:19:52]Write to MH i2c: E2 08 00 24 34 80 0D 01 02 00 00 00 00 D1 [07:19:52]Write i2c OK [07:19:52]MH_I2C_Read... [07:19:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:19:52]Read from MH i2c: E2 [07:19:52]MH_I2C_Read... [07:19:52]Read from MH i2c: E2 03 00 [07:19:52]MH_I2C_Read... [07:19:52]Read from MH i2c: E2 03 00 24 34 00 90 00 CC [07:19:52]RAPDU: 90 00 [07:19:52]wFMCommunicate OK [07:19:52]wFMCommunicate request_size=255 [07:19:52]MH_SAM_APDU [07:19:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9B 26 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 74 00 00 35 04 06 00 E8 [07:19:52]Write to MH i2c: E2 02 01 25 34 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 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9B 26 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 74 00 00 35 04 06 00 E8 00 00 D9 [07:19:52]Write i2c OK [07:19:52]MH_I2C_Read... [07:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:53]Read from MH i2c: E2 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: E2 03 00 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: E2 03 00 25 34 00 90 00 CD [07:19:53]RAPDU: 90 00 [07:19:53]wFMCommunicate OK [07:19:53]wFMCommunicate request_size=10 [07:19:53]MH_SAM_APDU [07:19:53]CAPDU: 80 0D 02 02 05 CC 5A 26 C8 42 [07:19:53]Write to MH i2c: E2 0D 00 26 34 80 0D 02 02 05 00 CC 5A 26 C8 42 00 00 34 [07:19:53]Write i2c OK [07:19:53]MH_I2C_Read... [07:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:53]Read from MH i2c: E2 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: E2 03 00 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: E2 03 00 26 34 00 90 00 CE [07:19:53]RAPDU: 90 00 [07:19:53]wFMCommunicate OK [07:19:53]wFMCommunicate request_size=4 [07:19:53]MH_SAM_APDU [07:19:53]CAPDU: 80 0D 03 02 [07:19:53]Write to MH i2c: E2 08 00 27 34 80 0D 03 02 00 00 00 00 D6 [07:19:53]Write i2c OK [07:19:53]MH_I2C_Read... [07:19:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:19:53]Read from MH i2c: E2 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: E2 0B 00 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: E2 0B 00 27 34 00 A7 89 27 36 96 15 2C 0E 90 00 49 [07:19:53]RAPDU: A7 89 27 36 96 15 2C 0E 90 00 [07:19:53]wFMCommunicate OK [07:19:53]SAM_PROTO_SignData done [07:19:53]FM_MakeSignedData done [07:19:53]CreateOFDProtocolMessage [07:19:53]wFMCommunicate request_size=4 [07:19:53]MH_SAM_APDU [07:19:53]CAPDU: 80 11 00 00 [07:19:53]Write to MH i2c: E2 08 00 28 34 80 11 00 00 00 00 00 00 D6 [07:19:53]Write i2c OK [07:19:53]MH_I2C_Read... [07:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:53]Read from MH i2c: E2 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: E2 17 00 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: E2 17 00 28 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 25 [07:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:19:53]wFMCommunicate OK [07:19:53]CreateOFDProtocolMessage done [07:19:53]OFDSenderStorePacket 29744 [07:19:53]StoreOFDPacket docnum=29744 [07:19:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 52 8F 07 01 05 2F 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 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9B 26 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 74 00 00 35 04 06 00 E8 CC 5A 26 C8 42 A7 89 27 36 96 15 2C 0E [07:19:53]CheckFolder [07:19:53]dirname=/storage/ofd_packets [07:19:53]CheckFolder done [07:19:53]ProducePacketName [07:19:53]name=ofd_packets/00029744 [07:19:53]NVStorageSaveData ofd_packets/00029744 [07:19:53]File name is /storage/ofd_packets/00029744 [07:19:53]Write 301 bytes [07:19:53]NVStorageSaveData done [07:19:53]OFDSenderStorePacket done [07:19:53]KKMCreateOFDPacket done [07:19:53]NVStorageSaveData kkm_last_timestamp [07:19:53]File name is /storage/kkm_last_timestamp [07:19:53]Write 4 bytes [07:19:53]NVStorageSaveData done [07:19:53]ExternCall_PrintAddStr [07:19:53]wPrintStart [07:19:53]Write to MH i2c: 01 00 00 29 34 5D [07:19:53]Write i2c OK [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: 01 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: 01 07 00 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: 01 07 00 29 34 00 00 00 00 00 FF 0F 72 [07:19:53]RasterBufferAndPrint [07:19:53]line Счет N : (1)348221 [07:19:53]line ИНН: 02508201610067 [07:19:53]line Контрольно-Кассовый Чек [07:19:53]line ПРОДАЖА [07:19:53]line ТРК (МРК, ГНК) : 33 [07:19:53]line Товар: 2710124500 [07:19:53]line Аи-95-К-5 [07:19:53]line 27.440 * 72.90 [07:19:53]line = 2000.38 [07:19:53]line НДС 12% НСП 1% [07:19:53]line > о реализуемом товаре [07:19:53]line ОКРУГЛЕНИЕ: -0.38 [07:19:53]line ИТОГО: 2000.00 [07:19:53]line Внесено: 2000.00 [07:19:53]line СДАЧА: 0.00 [07:19:53]line НСП 1% : 17.70 [07:19:53]line НДС 12% : 212.43 [07:19:53]line Наличными: 2000.00 [07:19:53]line Безнал.: 0.00 [07:19:53]line Место: АЗС № 108 "Партнер Нефть" [07:19:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:19:53]line СНО: Общий режим [07:19:53]line Чек 18 16.04.2024 07:19 [07:19:53]line Смена: 118 ФФД: 1.0 [07:19:53]line ЗНМ: 0300000027 [07:19:53]line РНМ: 0000138879044617 [07:19:53]line Версия ККМ: 001 [07:19:53]line ФМ: 0000000000963154 [07:19:53]line ФД: 29744 [07:19:53]line ФПД: 255964383463490 [07:19:53]line 1/tax-web-control/client/api/v1/ticket?date=20240416T071955&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29744&fm=255964383463490&tin=02508201610067®Number=0000138879044617&sum=200000 [07:19:53]written 0, free lines is 4095 [07:19:53]OFD Sender: Processing packet 29744 [packets to send 8, broken 7] [07:19:53]ProducePacketName [07:19:53]name=ofd_packets/00029744 [07:19:53]OFD Sender: To server: pG, [07:19:53]CommunicateWithHost lk.salyk.kg:30040 [07:19:53]ConnectInit lk.salyk.kg [07:19:53]Connected sock=10 [07:19:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 52 8F 07 01 05 2F 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 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 9B 26 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 74 00 00 35 04 06 00 E8 CC 5A 26 C8 42 A7 89 27 36 96 15 2C 0E [07:19:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 96 2D 47 00 8A 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 74 00 00 F4 03 04 00 3A D1 1D 66 B6 04 01 00 00 4C 92 08 49 B8 97 A0 11 [07:19:53]CommunicateWithHost err = 0 [07:19:53]CheckOFDResponse [07:19:53]1017 (14) - 77093643461234 [07:19:53]1041 (16) - 0000000000963154 [07:19:53]1040 (4) - 29744 [07:19:53]1012 (4) - 16.04.2024 01:15 [07:19:53]1206 (1) - 0 [07:19:53]OFD Sender: Remove packet 29744 [07:19:53]ProducePacketName [07:19:53]name=ofd_packets/00029744 [07:19:53]NVStorageDeleteData [07:19:53]Write to MH i2c: 01 00 00 53 34 87 [07:19:53]Write i2c OK [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: 01 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: 01 07 00 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: 01 07 00 53 34 00 00 00 00 00 C9 0C 63 [07:19:53]RasterBufferAndPrint [07:19:53]line [07:19:53]line [07:19:53]line [07:19:53]line [07:19:53]line [07:19:53]written 0, free lines is 3279 [07:19:53]MH_Cut [07:19:53]Write to MH i2c: D1 01 00 5A 34 01 60 [07:19:53]Write i2c OK [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: D1 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: D1 01 00 [07:19:53]MH_I2C_Read... [07:19:53]Read from MH i2c: D1 01 00 5A 34 00 5F [07:19:53]Write to MH i2c: 01 00 00 5B 34 8F [07:19:53]Write i2c OK [07:19:53]MH_I2C_Read... [07:19:54]OFD Sender: No OFD packet to send [07:19:54]*** Cut start [07:19:54]*** Partial cut [07:19:54]*** CUTSNS_PIN = 1 [07:19:54]*** CUTSNS_PIN = 0 [07:19:54]*** Brake cut motor [07:19:55]Read from MH i2c: 01 [07:19:55]MH_I2C_Read... [07:19:55]*** Stop cut motor [07:19:55]*** Cut end [07:19:55]Read from MH i2c: 01 07 00 [07:19:55]MH_I2C_Read... [07:19:55]Read from MH i2c: 01 07 00 5B 34 00 00 00 00 00 FF 0F A4 [07:19:55]process_action close_receipt done [07:19:55]requested_data is exist [07:19:55]produce_requested_data [07:19:55]requested_item fm.sn is exist - process it [07:19:55]wFMCommunicate request_size=4 [07:19:55]MH_SAM_APDU [07:19:55]CAPDU: 80 11 00 00 [07:19:55]Write to MH i2c: E2 08 00 5C 34 80 11 00 00 00 00 00 00 0A [07:19:55]Write i2c OK [07:19:55]MH_I2C_Read... [07:19:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:55]Read from MH i2c: E2 [07:19:55]MH_I2C_Read... [07:19:55]Read from MH i2c: E2 17 00 [07:19:55]MH_I2C_Read... [07:19:55]Read from MH i2c: E2 17 00 5C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 59 [07:19:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:19:55]wFMCommunicate OK [07:19:55]requested_item fd.num is exist - process it [07:19:55]SAM_PROTO_GetFieldsCounters [07:19:55]wFMCommunicate request_size=4 [07:19:55]MH_SAM_APDU [07:19:55]CAPDU: 80 13 00 00 [07:19:55]Write to MH i2c: E2 08 00 5D 34 80 13 00 00 00 00 00 00 0D [07:19:55]Write i2c OK [07:19:55]MH_I2C_Read... [07:19:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:19:55]Read from MH i2c: E2 [07:19:55]MH_I2C_Read... [07:19:55]Read from MH i2c: E2 62 00 [07:19:55]MH_I2C_Read... [07:19:55]Read from MH i2c: E2 62 00 5D 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 30 74 00 00 0E 04 04 00 76 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 9B [07:19:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 30 74 00 00 0E 04 04 00 76 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:19:55]wFMCommunicate OK [07:19:55]SAM_PROTO_GetFieldsCounters done [07:19:55]requested_item shift.num is exist - process it [07:19:55]requested_item shift.opened is exist - process it [07:19:55]req_shift_opened [07:19:55]FM_GetShiftState [07:19:55]SAM_PROTO_GetShiftState [07:19:55]wFMCommunicate request_size=4 [07:19:55]MH_SAM_APDU [07:19:55]CAPDU: 80 13 01 00 [07:19:55]Write to MH i2c: E2 08 00 5E 34 80 13 01 00 00 00 00 00 0F [07:19:55]Write i2c OK [07:19:55]MH_I2C_Read... [07:19:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:55]Read from MH i2c: E2 [07:19:55]MH_I2C_Read... [07:19:55]Read from MH i2c: E2 0E 00 [07:19:55]MH_I2C_Read... [07:19:55]Read from MH i2c: E2 0E 00 5E 34 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 BD [07:19:55]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [07:19:55]wFMCommunicate OK [07:19:55]SAM_PROTO_GetShiftState done [07:19:55]FM_GetShiftState done [07:19:55]req_shift_opened done [07:19:55]requested_item shift.open_date is exist - process it [07:19:55]req_shift_open_date [07:19:55]req_shift_open_date done [07:19:55]produce_requested_data done [07:19:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29744,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [07:19:55]process_action_free close_receipt [07:19:55]json_value_free [07:19:55]json_value_free done [07:19:55]process_json_proto returns [07:19:55]Send response to host [07:19:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29744,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [07:19:55]free response buf [07:19:55]execute_script done [07:19:55]execute_script returns [07:19:55]free content buf [07:19:55]Sock 9.Close socket [07:19:55]Sock 9.Thread stoped [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:52]accept exits with 7 [07:20:52]New connection [07:20:52]New thread 3066965348 created [07:20:52]Thread 3067108708 joined [07:20:52]Waiting for new connection... [07:20:52] Sock 7.Parse request [07:20:52]Sock 7.Check first char [07:20:52]Sock 7.First char is OK [07:20:52]request: POST /json_proto HTTP/1.0 [07:20:52]Method: POST [07:20:52]URL: /json_proto [07:20:52]Method is POST - this is cgi request [07:20:52]url: /json_proto [07:20:52]query_string will be loaded in cgi processing [07:20:52]execute_cgi json_proto POST (null) [07:20:52]execute_cgi path=json_proto method=POST [07:20:52]POST find Content-Length [07:20:52]Host: 172.17.33.3:8080 [07:20:52]Content-Length: 843 [07:20:52]Content-Type: application/json [07:20:52] [07:20:52]POST finish read [07:20:52]Found Content-Length = 843 [07:20:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 16.470, "sum" : 1200.66, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1200.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:20:52]execute_script... [07:20:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 16.470, "sum" : 1200.66, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1200.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:20:52]POST & json_proto [07:20:52]process_json_proto [07:20:52]json parsed OK: [07:20:52]protocol is kg_v1.0 [07:20:52]action value=close_receipt [07:20:52]process_action close_receipt [07:20:52]cmd_close_receipt [07:20:52]MH_GetDate [07:20:52]Write to MH i2c: F0 00 00 5F 34 82 [07:20:52]Write i2c OK [07:20:52]MH_I2C_Read... [07:20:52]Read from MH i2c: F0 [07:20:52]MH_I2C_Read... [07:20:52]Read from MH i2c: F0 09 00 [07:20:52]MH_I2C_Read... [07:20:52]Read from MH i2c: F0 09 00 5F 34 00 D9 26 1E 66 23 5B 8F 65 80 [07:20:52]GetLastDocTimeStamp 1713251995 [07:20:52]current date 1713252057 [07:20:52]FM_GetShiftState [07:20:52]SAM_PROTO_GetShiftState [07:20:52]wFMCommunicate request_size=4 [07:20:52]MH_SAM_APDU [07:20:52]CAPDU: 80 13 01 00 [07:20:52]Write to MH i2c: E2 08 00 60 34 80 13 01 00 00 00 00 00 11 [07:20:52]Write i2c OK [07:20:52]MH_I2C_Read... [07:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:53]Read from MH i2c: E2 [07:20:53]MH_I2C_Read... [07:20:53]Read from MH i2c: E2 0E 00 [07:20:53]MH_I2C_Read... [07:20:53]Read from MH i2c: E2 0E 00 60 34 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 BF [07:20:53]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [07:20:53]wFMCommunicate OK [07:20:53]SAM_PROTO_GetShiftState done [07:20:53]FM_GetShiftState done [07:20:53]opened in 1713226843 [07:20:53]opened+sec_in_day 1713313243 [07:20:53]quantity*price = 120066 [07:20:53]sum+1 = 120067 [07:20:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.66 НСП 1% : 10.62 НДС 12% : 127.50 Наличными: 0.00 Безнал.: 1200.66 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 19 16.04.2024 07:20 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29745 ФПД: 189695461932047 1/tax-web-control/client/api/v1/ticket?date=20240416T072057&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29745&fm=189695461932047&tin=02508201610067®Number=0000138879044617&sum=120066 [07:20:54]StoreToDocumentArchive [07:20:54]shift 118 fd 29745 [07:20:54]save to /storage/0118/doc_00029745 [07:20:54]save last doc name /storage/0118/doc_00029745 to /storage/kkm_last_doc_name [07:20:54]save OK [07:20:54]Clear old archive folders... [07:20:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:20:54]tlvbuf is 01A61110 [07:20:54]SAM_PROTO_ClearQueue [07:20:54]wFMCommunicate request_size=4 [07:20:54]MH_SAM_APDU [07:20:54]CAPDU: 80 09 00 00 [07:20:54]Write to MH i2c: E2 08 00 6D 34 80 09 00 00 00 00 00 00 13 [07:20:54]Write i2c OK [07:20:54]MH_I2C_Read... [07:20:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:20:54]Read from MH i2c: E2 [07:20:54]MH_I2C_Read... [07:20:54]Read from MH i2c: E2 03 00 [07:20:54]MH_I2C_Read... [07:20:54]Read from MH i2c: E2 03 00 6D 34 00 90 00 15 [07:20:54]RAPDU: 90 00 [07:20:54]wFMCommunicate OK [07:20:54]SAM_PROTO_ClearQueue done [07:20:54]KKMCreateOFDPacket [07:20:54]OFDProtocolAddRootSTLVToBuf [07:20:54]FM_MakeSignedData [07:20:54]FM_MakeSignedData [07:20:54]SAM_PROTO_SignData [07:20:54]wFMCommunicate request_size=4 [07:20:54]MH_SAM_APDU [07:20:54]CAPDU: 80 0D 01 02 [07:20:54]Write to MH i2c: E2 08 00 6E 34 80 0D 01 02 00 00 00 00 1B [07:20:54]Write i2c OK [07:20:54]MH_I2C_Read... [07:20:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:20:54]Read from MH i2c: E2 [07:20:54]MH_I2C_Read... [07:20:54]Read from MH i2c: E2 03 00 [07:20:54]MH_I2C_Read... [07:20:54]Read from MH i2c: E2 03 00 6E 34 00 90 00 16 [07:20:54]RAPDU: 90 00 [07:20:54]wFMCommunicate OK [07:20:54]wFMCommunicate request_size=255 [07:20:54]MH_SAM_APDU [07:20:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 D9 26 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 74 00 00 35 04 06 00 AC [07:20:54]Write to MH i2c: E2 02 01 6F 34 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 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 D9 26 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 74 00 00 35 04 06 00 AC 00 00 80 [07:20:54]Write i2c OK [07:20:54]MH_I2C_Read... [07:20:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:54]Read from MH i2c: E2 [07:20:54]MH_I2C_Read... [07:20:54]Read from MH i2c: E2 03 00 [07:20:54]MH_I2C_Read... [07:20:54]Read from MH i2c: E2 03 00 6F 34 00 90 00 17 [07:20:54]RAPDU: 90 00 [07:20:54]wFMCommunicate OK [07:20:54]wFMCommunicate request_size=10 [07:20:54]MH_SAM_APDU [07:20:54]CAPDU: 80 0D 02 02 05 86 EA 9F BC 0F [07:20:54]Write to MH i2c: E2 0D 00 70 34 80 0D 02 02 05 00 86 EA 9F BC 0F 00 00 02 [07:20:54]Write i2c OK [07:20:54]MH_I2C_Read... [07:20:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:54]Read from MH i2c: E2 [07:20:54]MH_I2C_Read... [07:20:54]Read from MH i2c: E2 03 00 [07:20:54]MH_I2C_Read... [07:20:54]Read from MH i2c: E2 03 00 70 34 00 90 00 18 [07:20:54]RAPDU: 90 00 [07:20:54]wFMCommunicate OK [07:20:54]wFMCommunicate request_size=4 [07:20:54]MH_SAM_APDU [07:20:54]CAPDU: 80 0D 03 02 [07:20:54]Write to MH i2c: E2 08 00 71 34 80 0D 03 02 00 00 00 00 20 [07:20:54]Write i2c OK [07:20:54]MH_I2C_Read... [07:20:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:20:54]Read from MH i2c: E2 [07:20:54]MH_I2C_Read... [07:20:54]Read from MH i2c: E2 0B 00 [07:20:54]MH_I2C_Read... [07:20:54]Read from MH i2c: E2 0B 00 71 34 00 66 3F F9 A1 2A 47 EE 18 90 00 D7 [07:20:54]RAPDU: 66 3F F9 A1 2A 47 EE 18 90 00 [07:20:54]wFMCommunicate OK [07:20:54]SAM_PROTO_SignData done [07:20:54]FM_MakeSignedData done [07:20:54]CreateOFDProtocolMessage [07:20:54]wFMCommunicate request_size=4 [07:20:54]MH_SAM_APDU [07:20:54]CAPDU: 80 11 00 00 [07:20:54]Write to MH i2c: E2 08 00 72 34 80 11 00 00 00 00 00 00 20 [07:20:54]Write i2c OK [07:20:54]MH_I2C_Read... [07:20:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:54]Read from MH i2c: E2 [07:20:54]MH_I2C_Read... [07:20:54]Read from MH i2c: E2 17 00 [07:20:54]MH_I2C_Read... [07:20:54]Read from MH i2c: E2 17 00 72 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6F [07:20:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:20:54]wFMCommunicate OK [07:20:54]CreateOFDProtocolMessage done [07:20:54]OFDSenderStorePacket 29745 [07:20:54]StoreOFDPacket docnum=29745 [07:20:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AE F4 07 01 96 7B 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 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 D9 26 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 74 00 00 35 04 06 00 AC 86 EA 9F BC 0F 66 3F F9 A1 2A 47 EE 18 [07:20:54]CheckFolder [07:20:54]dirname=/storage/ofd_packets [07:20:54]CheckFolder done [07:20:54]ProducePacketName [07:20:54]name=ofd_packets/00029745 [07:20:54]NVStorageSaveData ofd_packets/00029745 [07:20:54]File name is /storage/ofd_packets/00029745 [07:20:54]Write 301 bytes [07:20:54]NVStorageSaveData done [07:20:54]OFDSenderStorePacket done [07:20:54]KKMCreateOFDPacket done [07:20:54]NVStorageSaveData kkm_last_timestamp [07:20:54]File name is /storage/kkm_last_timestamp [07:20:54]Write 4 bytes [07:20:54]NVStorageSaveData done [07:20:54]ExternCall_PrintAddStr [07:20:54]wPrintStart [07:20:54]Write to MH i2c: 01 00 00 73 34 A7 [07:20:54]Write i2c OK [07:20:54]MH_I2C_Read... [07:20:54]Read from MH i2c: 01 [07:20:54]MH_I2C_Read... [07:20:54]Read from MH i2c: 01 07 00 [07:20:54]MH_I2C_Read... [07:20:54]Read from MH i2c: 01 07 00 73 34 00 00 00 00 00 FF 0F BC [07:20:54]RasterBufferAndPrint [07:20:54]line Счет N : (1)348222 [07:20:54]line ИНН: 02508201610067 [07:20:54]line Контрольно-Кассовый Чек [07:20:54]line ПРОДАЖА [07:20:54]line ТРК (МРК, ГНК) : 33 [07:20:54]line Товар: 2710124500 [07:20:54]line Аи-95-К-5 [07:20:54]line 16.470 * 72.90 [07:20:54]line = 1200.66 [07:20:54]line НДС 12% НСП 1% [07:20:54]line > о реализуемом товаре [07:20:54]line ИТОГО: 1200.66 [07:20:54]line НСП 1% : 10.62 [07:20:54]line НДС 12% : 127.50 [07:20:54]line Наличными: 0.00 [07:20:54]line Безнал.: 1200.66 [07:20:54]line Место: АЗС № 108 "Партнер Нефть" [07:20:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:20:54]line СНО: Общий режим [07:20:54]line Чек 19 16.04.2024 07:20 [07:20:54]line Смена: 118 ФФД: 1.0 [07:20:54]line ЗНМ: 0300000027 [07:20:54]line РНМ: 0000138879044617 [07:20:54]line Версия ККМ: 001 [07:20:54]line Платежная система: АКБ Кыргызстан [07:20:54]line ФМ: 0000000000963154 [07:20:54]line ФД: 29745 [07:20:54]line ФПД: 189695461932047 [07:20:54]line 1/tax-web-control/client/api/v1/ticket?date=20240416T072057&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29745&fm=189695461932047&tin=02508201610067®Number=0000138879044617&sum=120066 [07:20:54]written 0, free lines is 4095 [07:20:54]OFD Sender: Processing packet 29745 [packets to send 8, broken 7] [07:20:54]ProducePacketName [07:20:54]name=ofd_packets/00029745 [07:20:54]OFD Sender: To server: pG, [07:20:54]CommunicateWithHost lk.salyk.kg:30040 [07:20:54]ConnectInit lk.salyk.kg [07:20:54]Connected sock=10 [07:20:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AE F4 07 01 96 7B 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 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 02 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 02 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 D9 26 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 74 00 00 35 04 06 00 AC 86 EA 9F BC 0F 66 3F F9 A1 2A 47 EE 18 [07:20:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C6 35 47 00 5F FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 74 00 00 F4 03 04 00 77 D1 1D 66 B6 04 01 00 00 B1 28 E6 05 AE 3E C9 27 [07:20:54]CommunicateWithHost err = 0 [07:20:54]CheckOFDResponse [07:20:54]1017 (14) - 77093643461234 [07:20:54]1041 (16) - 0000000000963154 [07:20:54]1040 (4) - 29745 [07:20:54]1012 (4) - 16.04.2024 01:16 [07:20:54]1206 (1) - 0 [07:20:54]OFD Sender: Remove packet 29745 [07:20:54]ProducePacketName [07:20:54]name=ofd_packets/00029745 [07:20:54]NVStorageDeleteData [07:20:55]Write to MH i2c: 01 00 00 9C 34 D0 [07:20:55]Write i2c OK [07:20:55]MH_I2C_Read... [07:20:55]Read from MH i2c: 01 [07:20:55]MH_I2C_Read... [07:20:55]Read from MH i2c: 01 07 00 [07:20:55]MH_I2C_Read... [07:20:55]Read from MH i2c: 01 07 00 9C 34 00 00 00 00 00 EC 0C CF [07:20:55]RasterBufferAndPrint [07:20:55]line [07:20:55]line [07:20:55]line [07:20:55]line [07:20:55]line [07:20:55]written 0, free lines is 3314 [07:20:55]MH_Cut [07:20:55]Write to MH i2c: D1 01 00 A3 34 01 A9 [07:20:55]Write i2c OK [07:20:55]MH_I2C_Read... [07:20:55]Read from MH i2c: D1 [07:20:55]MH_I2C_Read... [07:20:55]Read from MH i2c: D1 01 00 [07:20:55]MH_I2C_Read... [07:20:55]Read from MH i2c: D1 01 00 A3 34 00 A8 [07:20:55]Write to MH i2c: 01 00 00 A4 34 D8 [07:20:55]Write i2c OK [07:20:55]MH_I2C_Read... [07:20:55]OFD Sender: No OFD packet to send [07:20:55]*** Cut start [07:20:55]*** Partial cut [07:20:55]*** CUTSNS_PIN = 1 [07:20:55]*** CUTSNS_PIN = 0 [07:20:56]*** Brake cut motor [07:20:56]Read from MH i2c: 01 [07:20:56]MH_I2C_Read... [07:20:56]*** Stop cut motor [07:20:56]*** Cut end [07:20:56]Read from MH i2c: 01 07 00 [07:20:56]MH_I2C_Read... [07:20:56]Read from MH i2c: 01 07 00 A4 34 00 00 00 00 00 FF 0F ED [07:20:56]process_action close_receipt done [07:20:56]requested_data is exist [07:20:56]produce_requested_data [07:20:56]requested_item fm.sn is exist - process it [07:20:56]wFMCommunicate request_size=4 [07:20:56]MH_SAM_APDU [07:20:56]CAPDU: 80 11 00 00 [07:20:56]Write to MH i2c: E2 08 00 A5 34 80 11 00 00 00 00 00 00 53 [07:20:56]Write i2c OK [07:20:56]MH_I2C_Read... [07:20:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:56]Read from MH i2c: E2 [07:20:56]MH_I2C_Read... [07:20:56]Read from MH i2c: E2 17 00 [07:20:56]MH_I2C_Read... [07:20:56]Read from MH i2c: E2 17 00 A5 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A2 [07:20:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:20:56]wFMCommunicate OK [07:20:56]requested_item fd.num is exist - process it [07:20:56]SAM_PROTO_GetFieldsCounters [07:20:56]wFMCommunicate request_size=4 [07:20:56]MH_SAM_APDU [07:20:56]CAPDU: 80 13 00 00 [07:20:56]Write to MH i2c: E2 08 00 A6 34 80 13 00 00 00 00 00 00 56 [07:20:56]Write i2c OK [07:20:56]MH_I2C_Read... [07:20:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:20:56]Read from MH i2c: E2 [07:20:56]MH_I2C_Read... [07:20:56]Read from MH i2c: E2 62 00 [07:20:56]MH_I2C_Read... [07:20:56]Read from MH i2c: E2 62 00 A6 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 31 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [07:20:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 31 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:20:56]wFMCommunicate OK [07:20:56]SAM_PROTO_GetFieldsCounters done [07:20:56]requested_item shift.num is exist - process it [07:20:56]requested_item shift.opened is exist - process it [07:20:56]req_shift_opened [07:20:56]FM_GetShiftState [07:20:56]SAM_PROTO_GetShiftState [07:20:56]wFMCommunicate request_size=4 [07:20:56]MH_SAM_APDU [07:20:56]CAPDU: 80 13 01 00 [07:20:56]Write to MH i2c: E2 08 00 A7 34 80 13 01 00 00 00 00 00 58 [07:20:56]Write i2c OK [07:20:56]MH_I2C_Read... [07:20:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:56]Read from MH i2c: E2 [07:20:56]MH_I2C_Read... [07:20:56]Read from MH i2c: E2 0E 00 [07:20:56]MH_I2C_Read... [07:20:56]Read from MH i2c: E2 0E 00 A7 34 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 06 [07:20:56]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [07:20:56]wFMCommunicate OK [07:20:56]SAM_PROTO_GetShiftState done [07:20:56]FM_GetShiftState done [07:20:56]req_shift_opened done [07:20:56]requested_item shift.open_date is exist - process it [07:20:56]req_shift_open_date [07:20:56]req_shift_open_date done [07:20:56]produce_requested_data done [07:20:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29745,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [07:20:56]process_action_free close_receipt [07:20:56]json_value_free [07:20:56]json_value_free done [07:20:56]process_json_proto returns [07:20:56]Send response to host [07:20:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29745,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [07:20:56]free response buf [07:20:56]execute_script done [07:20:56]execute_script returns [07:20:56]free content buf [07:20:56]Sock 7.Close socket [07:20:56]Sock 7.Thread stoped [07:21:00]OFD Sender: No OFD packet to send [07:21:05]OFD Sender: No OFD packet to send [07:21:10]OFD Sender: No OFD packet to send [07:21:15]OFD Sender: No OFD packet to send [07:21:20]OFD Sender: No OFD packet to send [07:21:25]OFD Sender: No OFD packet to send [07:21:30]OFD Sender: No OFD packet to send [07:21:35]OFD Sender: No OFD packet to send [07:21:40]OFD Sender: No OFD packet to send [07:21:45]OFD Sender: No OFD packet to send [07:21:50]OFD Sender: No OFD packet to send [07:21:55]OFD Sender: No OFD packet to send [07:22:00]OFD Sender: No OFD packet to send [07:22:05]OFD Sender: No OFD packet to send [07:22:10]OFD Sender: No OFD packet to send [07:22:15]OFD Sender: No OFD packet to send [07:22:20]OFD Sender: No OFD packet to send [07:22:25]OFD Sender: No OFD packet to send [07:22:30]OFD Sender: No OFD packet to send [07:22:35]OFD Sender: No OFD packet to send [07:22:40]OFD Sender: No OFD packet to send [07:22:45]OFD Sender: No OFD packet to send [07:22:50]OFD Sender: No OFD packet to send [07:22:55]OFD Sender: No OFD packet to send [07:23:00]OFD Sender: No OFD packet to send [07:23:05]OFD Sender: No OFD packet to send [07:23:10]OFD Sender: No OFD packet to send [07:23:15]OFD Sender: No OFD packet to send [07:23:20]OFD Sender: No OFD packet to send [07:23:25]OFD Sender: No OFD packet to send [07:23:30]OFD Sender: No OFD packet to send [07:23:35]accept exits with 9 [07:23:35]New connection [07:23:35]New thread 3067108708 created [07:23:35]Thread 3066965348 joined [07:23:35]Waiting for new connection... [07:23:35] Sock 9.Parse request [07:23:35]Sock 9.Check first char [07:23:35]Sock 9.First char is OK [07:23:35]request: POST /json_proto HTTP/1.0 [07:23:35]Method: POST [07:23:35]URL: /json_proto [07:23:35]Method is POST - this is cgi request [07:23:35]url: /json_proto [07:23:35]query_string will be loaded in cgi processing [07:23:35]execute_cgi json_proto POST (null) [07:23:35]execute_cgi path=json_proto method=POST [07:23:35]POST find Content-Length [07:23:35]Host: 172.17.33.3:8080 [07:23:35]Content-Length: 675 [07:23:35]Content-Type: application/json [07:23:35] [07:23:35]POST finish read [07:23:35]Found Content-Length = 675 [07:23:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:23:35]execute_script... [07:23:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:23:35]POST & json_proto [07:23:35]process_json_proto [07:23:35]json parsed OK: [07:23:35]protocol is kg_v1.0 [07:23:35]action value=close_receipt [07:23:35]process_action close_receipt [07:23:35]cmd_close_receipt [07:23:35]MH_GetDate [07:23:35]Write to MH i2c: F0 00 00 A8 34 CB [07:23:35]Write i2c OK [07:23:35]MH_I2C_Read... [07:23:35]Read from MH i2c: F0 [07:23:35]MH_I2C_Read... [07:23:35]Read from MH i2c: F0 09 00 [07:23:35]MH_I2C_Read... [07:23:35]Read from MH i2c: F0 09 00 A8 34 00 7B 27 1E 66 23 5B 8F 65 6C [07:23:35]GetLastDocTimeStamp 1713252057 [07:23:35]current date 1713252219 [07:23:35]FM_GetShiftState [07:23:35]SAM_PROTO_GetShiftState [07:23:35]wFMCommunicate request_size=4 [07:23:35]MH_SAM_APDU [07:23:35]CAPDU: 80 13 01 00 [07:23:35]Write to MH i2c: E2 08 00 A9 34 80 13 01 00 00 00 00 00 5A [07:23:35]Write i2c OK [07:23:35]MH_I2C_Read... [07:23:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:23:35]Read from MH i2c: E2 [07:23:35]MH_I2C_Read... [07:23:35]Read from MH i2c: E2 0E 00 [07:23:35]MH_I2C_Read... [07:23:35]Read from MH i2c: E2 0E 00 A9 34 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 08 [07:23:35]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [07:23:35]wFMCommunicate OK [07:23:35]SAM_PROTO_GetShiftState done [07:23:35]FM_GetShiftState done [07:23:35]opened in 1713226843 [07:23:35]opened+sec_in_day 1713313243 [07:23:35]quantity*price = 100016 [07:23:35]sum+1 = 100017 [07:23:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 20 16.04.2024 07:23 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29746 ФПД: 96320231331155 1/tax-web-control/client/api/v1/ticket?date=20240416T072339&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29746&fm=96320231331155&tin=02508201610067®Number=0000138879044617&sum=100000 [07:23:36]StoreToDocumentArchive [07:23:36]shift 118 fd 29746 [07:23:36]save to /storage/0118/doc_00029746 [07:23:36]save last doc name /storage/0118/doc_00029746 to /storage/kkm_last_doc_name [07:23:36]save OK [07:23:36]Clear old archive folders... [07:23:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:23:36]tlvbuf is B6F003A0 [07:23:36]SAM_PROTO_ClearQueue [07:23:36]wFMCommunicate request_size=4 [07:23:36]MH_SAM_APDU [07:23:36]CAPDU: 80 09 00 00 [07:23:36]Write to MH i2c: E2 08 00 B6 34 80 09 00 00 00 00 00 00 5C [07:23:36]Write i2c OK [07:23:36]MH_I2C_Read... [07:23:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:23:36]Read from MH i2c: E2 [07:23:36]MH_I2C_Read... [07:23:36]Read from MH i2c: E2 03 00 [07:23:36]MH_I2C_Read... [07:23:36]Read from MH i2c: E2 03 00 B6 34 00 90 00 5E [07:23:36]RAPDU: 90 00 [07:23:36]wFMCommunicate OK [07:23:36]SAM_PROTO_ClearQueue done [07:23:36]KKMCreateOFDPacket [07:23:36]OFDProtocolAddRootSTLVToBuf [07:23:36]FM_MakeSignedData [07:23:36]FM_MakeSignedData [07:23:36]SAM_PROTO_SignData [07:23:36]wFMCommunicate request_size=4 [07:23:36]MH_SAM_APDU [07:23:36]CAPDU: 80 0D 01 02 [07:23:36]Write to MH i2c: E2 08 00 B7 34 80 0D 01 02 00 00 00 00 64 [07:23:36]Write i2c OK [07:23:36]MH_I2C_Read... [07:23:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:23:36]Read from MH i2c: E2 [07:23:36]MH_I2C_Read... [07:23:36]Read from MH i2c: E2 03 00 [07:23:36]MH_I2C_Read... [07:23:36]Read from MH i2c: E2 03 00 B7 34 00 90 00 5F [07:23:36]RAPDU: 90 00 [07:23:36]wFMCommunicate OK [07:23:36]wFMCommunicate request_size=255 [07:23:36]MH_SAM_APDU [07:23:36]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 7B 27 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 74 00 00 35 04 06 00 [07:23:36]Write to MH i2c: E2 02 01 B8 34 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 7B 27 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 74 00 00 35 04 06 00 00 00 96 [07:23:36]Write i2c OK [07:23:36]MH_I2C_Read... [07:23:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:23:37]Read from MH i2c: E2 [07:23:37]MH_I2C_Read... [07:23:37]Read from MH i2c: E2 03 00 [07:23:37]MH_I2C_Read... [07:23:37]Read from MH i2c: E2 03 00 B8 34 00 90 00 60 [07:23:37]RAPDU: 90 00 [07:23:37]wFMCommunicate OK [07:23:37]wFMCommunicate request_size=11 [07:23:37]MH_SAM_APDU [07:23:37]CAPDU: 80 0D 02 02 06 57 9A 4D 2C 55 53 [07:23:37]Write to MH i2c: E2 0E 00 B9 34 80 0D 02 02 06 00 57 9A 4D 2C 55 53 00 00 85 [07:23:37]Write i2c OK [07:23:37]MH_I2C_Read... [07:23:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:23:37]Read from MH i2c: E2 [07:23:37]MH_I2C_Read... [07:23:37]Read from MH i2c: E2 03 00 [07:23:37]MH_I2C_Read... [07:23:37]Read from MH i2c: E2 03 00 B9 34 00 90 00 61 [07:23:37]RAPDU: 90 00 [07:23:37]wFMCommunicate OK [07:23:37]wFMCommunicate request_size=4 [07:23:37]MH_SAM_APDU [07:23:37]CAPDU: 80 0D 03 02 [07:23:37]Write to MH i2c: E2 08 00 BA 34 80 0D 03 02 00 00 00 00 69 [07:23:37]Write i2c OK [07:23:37]MH_I2C_Read... [07:23:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:23:37]Read from MH i2c: E2 [07:23:37]MH_I2C_Read... [07:23:37]Read from MH i2c: E2 0B 00 [07:23:37]MH_I2C_Read... [07:23:37]Read from MH i2c: E2 0B 00 BA 34 00 DC C9 9C CF 2B 4E 35 37 90 00 5F [07:23:37]RAPDU: DC C9 9C CF 2B 4E 35 37 90 00 [07:23:37]wFMCommunicate OK [07:23:37]SAM_PROTO_SignData done [07:23:37]FM_MakeSignedData done [07:23:37]CreateOFDProtocolMessage [07:23:37]wFMCommunicate request_size=4 [07:23:37]MH_SAM_APDU [07:23:37]CAPDU: 80 11 00 00 [07:23:37]Write to MH i2c: E2 08 00 BB 34 80 11 00 00 00 00 00 00 69 [07:23:37]Write i2c OK [07:23:37]MH_I2C_Read... [07:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:23:37]Read from MH i2c: E2 [07:23:37]MH_I2C_Read... [07:23:37]Read from MH i2c: E2 17 00 [07:23:37]MH_I2C_Read... [07:23:37]Read from MH i2c: E2 17 00 BB 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B8 [07:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:23:37]wFMCommunicate OK [07:23:37]CreateOFDProtocolMessage done [07:23:37]OFDSenderStorePacket 29746 [07:23:37]StoreOFDPacket docnum=29746 [07:23:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 88 F4 08 01 3D 71 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 7B 27 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 74 00 00 35 04 06 00 57 9A 4D 2C 55 53 DC C9 9C CF 2B 4E 35 37 [07:23:37]CheckFolder [07:23:37]dirname=/storage/ofd_packets [07:23:37]CheckFolder done [07:23:37]ProducePacketName [07:23:37]name=ofd_packets/00029746 [07:23:37]NVStorageSaveData ofd_packets/00029746 [07:23:37]File name is /storage/ofd_packets/00029746 [07:23:37]Write 302 bytes [07:23:37]NVStorageSaveData done [07:23:37]OFDSenderStorePacket done [07:23:37]KKMCreateOFDPacket done [07:23:37]NVStorageSaveData kkm_last_timestamp [07:23:37]File name is /storage/kkm_last_timestamp [07:23:37]Write 4 bytes [07:23:37]NVStorageSaveData done [07:23:37]ExternCall_PrintAddStr [07:23:37]wPrintStart [07:23:37]Write to MH i2c: 01 00 00 BC 34 F0 [07:23:37]Write i2c OK [07:23:37]MH_I2C_Read... [07:23:37]Read from MH i2c: 01 [07:23:37]MH_I2C_Read... [07:23:37]Read from MH i2c: 01 07 00 [07:23:37]MH_I2C_Read... [07:23:37]Read from MH i2c: 01 07 00 BC 34 00 00 00 00 00 FF 0F 05 [07:23:37]RasterBufferAndPrint [07:23:37]line Счет N : (1)348223 [07:23:37]line ИНН: 02508201610067 [07:23:37]line Контрольно-Кассовый Чек [07:23:37]line ПРОДАЖА [07:23:37]line ТРК (МРК, ГНК) : 41 [07:23:37]line Товар: 2710124130 [07:23:37]line SUPER-92-К-5 [07:23:37]line 15.200 * 65.80 [07:23:37]line = 1000.16 [07:23:37]line НДС 12% НСП 1% [07:23:37]line > о реализуемом товаре [07:23:37]line ОКРУГЛЕНИЕ: -0.16 [07:23:37]line ИТОГО: 1000.00 [07:23:37]line Внесено: 1000.00 [07:23:37]line СДАЧА: 0.00 [07:23:37]line НСП 1% : 8.85 [07:23:37]line НДС 12% : 106.21 [07:23:37]line Наличными: 1000.00 [07:23:37]line Безнал.: 0.00 [07:23:37]line Место: АЗС № 108 "Партнер Нефть" [07:23:37]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:23:37]line СНО: Общий режим [07:23:37]line Чек 20 16.04.2024 07:23 [07:23:37]line Смена: 118 ФФД: 1.0 [07:23:37]line ЗНМ: 0300000027 [07:23:37]line РНМ: 0000138879044617 [07:23:37]line Версия ККМ: 001 [07:23:37]line ФМ: 0000000000963154 [07:23:37]line ФД: 29746 [07:23:37]line ФПД: 96320231331155 [07:23:37]line 1/tax-web-control/client/api/v1/ticket?date=20240416T072339&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29746&fm=96320231331155&tin=02508201610067®Number=0000138879044617&sum=100000 [07:23:37]OFD Sender: Processing packet 29746 [packets to send 8, broken 7] [07:23:37]ProducePacketName [07:23:37]name=ofd_packets/00029746 [07:23:37]OFD Sender: To server: pG, [07:23:37]CommunicateWithHost lk.salyk.kg:30040 [07:23:37]ConnectInit lk.salyk.kg [07:23:37]written 0, free lines is 4095 [07:23:37]Connected sock=10 [07:23:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 88 F4 08 01 3D 71 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 7B 27 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 74 00 00 35 04 06 00 57 9A 4D 2C 55 53 DC C9 9C CF 2B 4E 35 37 [07:23:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D9 8F 47 00 22 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 32 74 00 00 F4 03 04 00 1A D2 1D 66 B6 04 01 00 00 EE 36 98 0E AE 4F 33 FD [07:23:37]CommunicateWithHost err = 0 [07:23:37]CheckOFDResponse [07:23:37]1017 (14) - 77093643461234 [07:23:37]1041 (16) - 0000000000963154 [07:23:37]1040 (4) - 29746 [07:23:37]1012 (4) - 16.04.2024 01:19 [07:23:37]1206 (1) - 0 [07:23:37]OFD Sender: Remove packet 29746 [07:23:37]ProducePacketName [07:23:37]name=ofd_packets/00029746 [07:23:37]NVStorageDeleteData [07:23:37]Write to MH i2c: 01 00 00 E6 34 1A [07:23:37]Write i2c OK [07:23:37]MH_I2C_Read... [07:23:37]Read from MH i2c: 01 [07:23:37]MH_I2C_Read... [07:23:37]Read from MH i2c: 01 07 00 [07:23:37]MH_I2C_Read... [07:23:37]Read from MH i2c: 01 07 00 E6 34 00 00 00 00 00 C0 0C ED [07:23:37]RasterBufferAndPrint [07:23:37]line [07:23:37]line [07:23:37]line [07:23:37]line [07:23:37]line [07:23:37]written 0, free lines is 3270 [07:23:38]MH_Cut [07:23:38]Write to MH i2c: D1 01 00 ED 34 01 F3 [07:23:38]Write i2c OK [07:23:38]MH_I2C_Read... [07:23:38]Read from MH i2c: D1 [07:23:38]MH_I2C_Read... [07:23:38]Read from MH i2c: D1 01 00 [07:23:38]MH_I2C_Read... [07:23:38]Read from MH i2c: D1 01 00 ED 34 00 F2 [07:23:38]Write to MH i2c: 01 00 00 EE 34 22 [07:23:38]Write i2c OK [07:23:38]MH_I2C_Read... [07:23:38]OFD Sender: No OFD packet to send [07:23:38]*** Cut start [07:23:38]*** Partial cut [07:23:38]*** CUTSNS_PIN = 1 [07:23:38]*** CUTSNS_PIN = 0 [07:23:39]*** Brake cut motor [07:23:39]Read from MH i2c: 01 [07:23:39]MH_I2C_Read... [07:23:39]*** Stop cut motor [07:23:39]*** Cut end [07:23:39]Read from MH i2c: 01 07 00 [07:23:39]MH_I2C_Read... [07:23:39]Read from MH i2c: 01 07 00 EE 34 00 00 00 00 00 FF 0F 37 [07:23:39]process_action close_receipt done [07:23:39]requested_data is exist [07:23:39]produce_requested_data [07:23:39]requested_item fm.sn is exist - process it [07:23:39]wFMCommunicate request_size=4 [07:23:39]MH_SAM_APDU [07:23:39]CAPDU: 80 11 00 00 [07:23:39]Write to MH i2c: E2 08 00 EF 34 80 11 00 00 00 00 00 00 9D [07:23:39]Write i2c OK [07:23:39]MH_I2C_Read... [07:23:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:23:39]Read from MH i2c: E2 [07:23:39]MH_I2C_Read... [07:23:39]Read from MH i2c: E2 17 00 [07:23:39]MH_I2C_Read... [07:23:39]Read from MH i2c: E2 17 00 EF 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EC [07:23:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:23:39]wFMCommunicate OK [07:23:39]requested_item fd.num is exist - process it [07:23:39]SAM_PROTO_GetFieldsCounters [07:23:39]wFMCommunicate request_size=4 [07:23:39]MH_SAM_APDU [07:23:39]CAPDU: 80 13 00 00 [07:23:39]Write to MH i2c: E2 08 00 F0 34 80 13 00 00 00 00 00 00 A0 [07:23:39]Write i2c OK [07:23:39]MH_I2C_Read... [07:23:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:23:39]Read from MH i2c: E2 [07:23:39]MH_I2C_Read... [07:23:39]Read from MH i2c: E2 62 00 [07:23:39]MH_I2C_Read... [07:23:39]Read from MH i2c: E2 62 00 F0 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 32 74 00 00 0E 04 04 00 76 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 36 [07:23:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 32 74 00 00 0E 04 04 00 76 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 [07:23:39]wFMCommunicate OK [07:23:39]SAM_PROTO_GetFieldsCounters done [07:23:39]requested_item shift.num is exist - process it [07:23:39]requested_item shift.opened is exist - process it [07:23:39]req_shift_opened [07:23:39]FM_GetShiftState [07:23:39]SAM_PROTO_GetShiftState [07:23:39]wFMCommunicate request_size=4 [07:23:39]MH_SAM_APDU [07:23:39]CAPDU: 80 13 01 00 [07:23:39]Write to MH i2c: E2 08 00 F1 34 80 13 01 00 00 00 00 00 A2 [07:23:39]Write i2c OK [07:23:39]MH_I2C_Read... [07:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:23:39]Read from MH i2c: E2 [07:23:39]MH_I2C_Read... [07:23:39]Read from MH i2c: E2 0E 00 [07:23:39]MH_I2C_Read... [07:23:39]Read from MH i2c: E2 0E 00 F1 34 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 50 [07:23:39]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [07:23:39]wFMCommunicate OK [07:23:39]SAM_PROTO_GetShiftState done [07:23:39]FM_GetShiftState done [07:23:39]req_shift_opened done [07:23:39]requested_item shift.open_date is exist - process it [07:23:39]req_shift_open_date [07:23:39]req_shift_open_date done [07:23:39]produce_requested_data done [07:23:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29746,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [07:23:39]process_action_free close_receipt [07:23:39]json_value_free [07:23:39]json_value_free done [07:23:39]process_json_proto returns [07:23:39]Send response to host [07:23:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29746,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [07:23:39]free response buf [07:23:39]execute_script done [07:23:39]execute_script returns [07:23:39]free content buf [07:23:39]Sock 9.Close socket [07:23:39]Sock 9.Thread stoped [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:54]accept exits with 7 [07:32:54]New connection [07:32:54]New thread 3066965348 created [07:32:54]Thread 3067108708 joined [07:32:54]Waiting for new connection... [07:32:54] Sock 7.Parse request [07:32:54]Sock 7.Check first char [07:32:54]Sock 7.First char is OK [07:32:54]request: POST /json_proto HTTP/1.0 [07:32:54]Method: POST [07:32:54]URL: /json_proto [07:32:54]Method is POST - this is cgi request [07:32:54]url: /json_proto [07:32:54]query_string will be loaded in cgi processing [07:32:54]execute_cgi json_proto POST (null) [07:32:54]execute_cgi path=json_proto method=POST [07:32:54]POST find Content-Length [07:32:54]Host: 172.17.33.3:8080 [07:32:54]Content-Length: 685 [07:32:54]Content-Type: application/json [07:32:54] [07:32:54]POST finish read [07:32:54]Found Content-Length = 685 [07:32:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 32.940, "sum" : 1100.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:54]execute_script... [07:32:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 32.940, "sum" : 1100.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:54]POST & json_proto [07:32:54]process_json_proto [07:32:54]json parsed OK: [07:32:54]protocol is kg_v1.0 [07:32:54]action value=close_receipt [07:32:54]process_action close_receipt [07:32:54]cmd_close_receipt [07:32:54]MH_GetDate [07:32:54]Write to MH i2c: F0 00 00 F2 34 15 [07:32:54]Write i2c OK [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: F0 [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: F0 09 00 [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: F0 09 00 F2 34 00 AA 29 1E 66 23 5B 8F 65 E7 [07:32:54]GetLastDocTimeStamp 1713252219 [07:32:54]current date 1713252778 [07:32:54]FM_GetShiftState [07:32:54]SAM_PROTO_GetShiftState [07:32:54]wFMCommunicate request_size=4 [07:32:54]MH_SAM_APDU [07:32:54]CAPDU: 80 13 01 00 [07:32:54]Write to MH i2c: E2 08 00 F3 34 80 13 01 00 00 00 00 00 A4 [07:32:54]Write i2c OK [07:32:54]MH_I2C_Read... [07:32:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:54]Read from MH i2c: E2 [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: E2 0E 00 [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: E2 0E 00 F3 34 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 52 [07:32:54]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [07:32:54]wFMCommunicate OK [07:32:54]SAM_PROTO_GetShiftState done [07:32:54]FM_GetShiftState done [07:32:54]opened in 1713226843 [07:32:54]opened+sec_in_day 1713313243 [07:32:54]quantity*price = 110019 [07:32:54]sum+1 = 110021 [07:32:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.83 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 21 16.04.2024 07:32 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29747 ФПД: 22574437501123 1/tax-web-control/client/api/v1/ticket?date=20240416T073258&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29747&fm=22574437501123&tin=02508201610067®Number=0000138879044617&sum=110000 [07:32:55]StoreToDocumentArchive [07:32:55]shift 118 fd 29747 [07:32:55]save to /storage/0118/doc_00029747 [07:32:55]save last doc name /storage/0118/doc_00029747 to /storage/kkm_last_doc_name [07:32:55]save OK [07:32:55]Clear old archive folders... [07:32:55]ProcessDocumentItem done err = 0, tmpTLVsize=250 [07:32:55]tlvbuf is 01ABD230 [07:32:55]SAM_PROTO_ClearQueue [07:32:55]wFMCommunicate request_size=4 [07:32:55]MH_SAM_APDU [07:32:55]CAPDU: 80 09 00 00 [07:32:55]Write to MH i2c: E2 08 00 00 35 80 09 00 00 00 00 00 00 A7 [07:32:55]Write i2c OK [07:32:55]MH_I2C_Read... [07:32:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:32:55]Read from MH i2c: E2 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: E2 03 00 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: E2 03 00 00 35 00 90 00 A9 [07:32:55]RAPDU: 90 00 [07:32:55]wFMCommunicate OK [07:32:55]SAM_PROTO_ClearQueue done [07:32:55]KKMCreateOFDPacket [07:32:55]OFDProtocolAddRootSTLVToBuf [07:32:55]FM_MakeSignedData [07:32:55]FM_MakeSignedData [07:32:55]SAM_PROTO_SignData [07:32:55]wFMCommunicate request_size=4 [07:32:55]MH_SAM_APDU [07:32:55]CAPDU: 80 0D 01 02 [07:32:55]Write to MH i2c: E2 08 00 01 35 80 0D 01 02 00 00 00 00 AF [07:32:55]Write i2c OK [07:32:55]MH_I2C_Read... [07:32:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:32:55]Read from MH i2c: E2 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: E2 03 00 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: E2 03 00 01 35 00 90 00 AA [07:32:55]RAPDU: 90 00 [07:32:55]wFMCommunicate OK [07:32:55]wFMCommunicate request_size=255 [07:32:55]MH_SAM_APDU [07:32:55]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AC 80 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C4 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 2D 00 00 00 00 07 04 06 00 B0 AD 01 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 AA 29 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 74 00 00 35 04 06 00 14 88 [07:32:55]Write to MH i2c: E2 02 01 02 35 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AC 80 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C4 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 2D 00 00 00 00 07 04 06 00 B0 AD 01 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 AA 29 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 74 00 00 35 04 06 00 14 88 00 00 BF [07:32:55]Write i2c OK [07:32:55]MH_I2C_Read... [07:32:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:55]Read from MH i2c: E2 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: E2 03 00 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: E2 03 00 02 35 00 90 00 AB [07:32:55]RAPDU: 90 00 [07:32:55]wFMCommunicate OK [07:32:55]wFMCommunicate request_size=9 [07:32:55]MH_SAM_APDU [07:32:55]CAPDU: 80 0D 02 02 04 05 54 08 C3 [07:32:55]Write to MH i2c: E2 0C 00 03 35 80 0D 02 02 04 00 05 54 08 C3 00 00 DE [07:32:55]Write i2c OK [07:32:55]MH_I2C_Read... [07:32:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:55]Read from MH i2c: E2 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: E2 03 00 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: E2 03 00 03 35 00 90 00 AC [07:32:55]RAPDU: 90 00 [07:32:55]wFMCommunicate OK [07:32:55]wFMCommunicate request_size=4 [07:32:55]MH_SAM_APDU [07:32:55]CAPDU: 80 0D 03 02 [07:32:55]Write to MH i2c: E2 08 00 04 35 80 0D 03 02 00 00 00 00 B4 [07:32:55]Write i2c OK [07:32:55]MH_I2C_Read... [07:32:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:32:55]Read from MH i2c: E2 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: E2 0B 00 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: E2 0B 00 04 35 00 E3 1C D9 38 03 79 33 45 90 00 B9 [07:32:55]RAPDU: E3 1C D9 38 03 79 33 45 90 00 [07:32:55]wFMCommunicate OK [07:32:55]SAM_PROTO_SignData done [07:32:55]FM_MakeSignedData done [07:32:55]CreateOFDProtocolMessage [07:32:55]wFMCommunicate request_size=4 [07:32:55]MH_SAM_APDU [07:32:55]CAPDU: 80 11 00 00 [07:32:55]Write to MH i2c: E2 08 00 05 35 80 11 00 00 00 00 00 00 B4 [07:32:55]Write i2c OK [07:32:55]MH_I2C_Read... [07:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:55]Read from MH i2c: E2 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: E2 17 00 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: E2 17 00 05 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 03 [07:32:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:32:55]wFMCommunicate OK [07:32:55]CreateOFDProtocolMessage done [07:32:55]OFDSenderStorePacket 29747 [07:32:55]StoreOFDPacket docnum=29747 [07:32:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 0C 07 06 01 A3 09 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AC 80 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C4 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 2D 00 00 00 00 07 04 06 00 B0 AD 01 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 AA 29 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 74 00 00 35 04 06 00 14 88 05 54 08 C3 E3 1C D9 38 03 79 33 45 [07:32:55]CheckFolder [07:32:55]dirname=/storage/ofd_packets [07:32:55]CheckFolder done [07:32:55]ProducePacketName [07:32:55]name=ofd_packets/00029747 [07:32:55]NVStorageSaveData ofd_packets/00029747 [07:32:55]File name is /storage/ofd_packets/00029747 [07:32:55]Write 300 bytes [07:32:55]NVStorageSaveData done [07:32:55]OFDSenderStorePacket done [07:32:55]KKMCreateOFDPacket done [07:32:55]NVStorageSaveData kkm_last_timestamp [07:32:55]File name is /storage/kkm_last_timestamp [07:32:55]Write 4 bytes [07:32:55]NVStorageSaveData done [07:32:55]ExternCall_PrintAddStr [07:32:55]wPrintStart [07:32:55]Write to MH i2c: 01 00 00 06 35 3B [07:32:55]Write i2c OK [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: 01 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: 01 07 00 [07:32:55]MH_I2C_Read... [07:32:55]Read from MH i2c: 01 07 00 06 35 00 00 00 00 00 FF 0F 50 [07:32:55]RasterBufferAndPrint [07:32:55]line Счет N : (1)348224 [07:32:55]line ИНН: 02508201610067 [07:32:55]line Контрольно-Кассовый Чек [07:32:55]line ПРОДАЖА [07:32:55]line ТРК (МРК, ГНК) : 71 [07:32:55]line Товар: 2711129700 [07:32:55]line ГАЗ-К-5 [07:32:55]line 32.940 * 33.40 [07:32:55]line = 1100.20 [07:32:55]line НДС 12% НСП 1% [07:32:55]line > о реализуемом товаре [07:32:55]line ОКРУГЛЕНИЕ: -0.20 [07:32:55]line ИТОГО: 1100.00 [07:32:55]line Внесено: 1100.00 [07:32:55]line СДАЧА: 0.00 [07:32:55]line НСП 1% : 9.74 [07:32:55]line НДС 12% : 116.83 [07:32:55]line Наличными: 1100.00 [07:32:55]line Безнал.: 0.00 [07:32:55]line Место: АЗС № 108 "Партнер Нефть" [07:32:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:32:55]line СНО: Общий режим [07:32:55]line Чек 21 16.04.2024 07:32 [07:32:55]line Смена: 118 ФФД: 1.0 [07:32:55]line ЗНМ: 0300000027 [07:32:55]line РНМ: 0000138879044617 [07:32:55]line Версия ККМ: 001 [07:32:55]line ФМ: 0000000000963154 [07:32:55]line ФД: 29747 [07:32:55]line ФПД: 22574437501123 [07:32:55]line 1/tax-web-control/client/api/v1/ticket?date=20240416T073258&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29747&fm=22574437501123&tin=02508201610067®Number=0000138879044617&sum=110000 [07:32:56]OFD Sender: Processing packet 29747 [packets to send 8, broken 7] [07:32:56]ProducePacketName [07:32:56]name=ofd_packets/00029747 [07:32:56]OFD Sender: To server: pG, [07:32:56]CommunicateWithHost lk.salyk.kg:30040 [07:32:56]ConnectInit lk.salyk.kg [07:32:56]written 0, free lines is 4095 [07:32:56]Connected sock=10 [07:32:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 0C 07 06 01 A3 09 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AC 80 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C4 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 2D 00 00 00 00 07 04 06 00 B0 AD 01 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 AA 29 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 74 00 00 35 04 06 00 14 88 05 54 08 C3 E3 1C D9 38 03 79 33 45 [07:32:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F7 15 47 00 09 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 36 33 31 35 34 10 04 04 00 33 74 00 00 F4 03 04 00 49 D4 1D 66 B6 04 01 00 00 BE 8A C2 96 A7 62 86 07 [07:32:56]CommunicateWithHost err = 0 [07:32:56]CheckOFDResponse [07:32:56]1017 (14) - 77093643461234 [07:32:56]1041 (16) - 0000000000963154 [07:32:56]1040 (4) - 29747 [07:32:56]1012 (4) - 16.04.2024 01:28 [07:32:56]1206 (1) - 0 [07:32:56]OFD Sender: Remove packet 29747 [07:32:56]ProducePacketName [07:32:56]name=ofd_packets/00029747 [07:32:56]NVStorageDeleteData [07:32:56]Write to MH i2c: 01 00 00 30 35 65 [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: 01 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: 01 07 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: 01 07 00 30 35 00 00 00 00 00 B9 0C 31 [07:32:56]RasterBufferAndPrint [07:32:56]line [07:32:56]line [07:32:56]line [07:32:56]line [07:32:56]line [07:32:56]written 0, free lines is 3261 [07:32:56]MH_Cut [07:32:56]Write to MH i2c: D1 01 00 37 35 01 3E [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: D1 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: D1 01 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: D1 01 00 37 35 00 3D [07:32:56]Write to MH i2c: 01 00 00 38 35 6D [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]OFD Sender: No OFD packet to send [07:32:57]*** Cut start [07:32:57]*** Partial cut [07:32:57]*** CUTSNS_PIN = 1 [07:32:57]*** CUTSNS_PIN = 0 [07:32:57]*** Brake cut motor [07:32:57]Read from MH i2c: 01 [07:32:57]MH_I2C_Read... [07:32:57]*** Stop cut motor [07:32:57]*** Cut end [07:32:57]Read from MH i2c: 01 07 00 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: 01 07 00 38 35 00 00 00 00 00 FF 0F 82 [07:32:57]process_action close_receipt done [07:32:57]requested_data is exist [07:32:57]produce_requested_data [07:32:57]requested_item fm.sn is exist - process it [07:32:57]wFMCommunicate request_size=4 [07:32:57]MH_SAM_APDU [07:32:57]CAPDU: 80 11 00 00 [07:32:57]Write to MH i2c: E2 08 00 39 35 80 11 00 00 00 00 00 00 E8 [07:32:57]Write i2c OK [07:32:57]MH_I2C_Read... [07:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:58]Read from MH i2c: E2 [07:32:58]MH_I2C_Read... [07:32:58]Read from MH i2c: E2 17 00 [07:32:58]MH_I2C_Read... [07:32:58]Read from MH i2c: E2 17 00 39 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 37 [07:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:32:58]wFMCommunicate OK [07:32:58]requested_item fd.num is exist - process it [07:32:58]SAM_PROTO_GetFieldsCounters [07:32:58]wFMCommunicate request_size=4 [07:32:58]MH_SAM_APDU [07:32:58]CAPDU: 80 13 00 00 [07:32:58]Write to MH i2c: E2 08 00 3A 35 80 13 00 00 00 00 00 00 EB [07:32:58]Write i2c OK [07:32:58]MH_I2C_Read... [07:32:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:32:58]Read from MH i2c: E2 [07:32:58]MH_I2C_Read... [07:32:58]Read from MH i2c: E2 62 00 [07:32:58]MH_I2C_Read... [07:32:58]Read from MH i2c: E2 62 00 3A 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 33 74 00 00 0E 04 04 00 76 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 85 [07:32:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 33 74 00 00 0E 04 04 00 76 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 [07:32:58]wFMCommunicate OK [07:32:58]SAM_PROTO_GetFieldsCounters done [07:32:58]requested_item shift.num is exist - process it [07:32:58]requested_item shift.opened is exist - process it [07:32:58]req_shift_opened [07:32:58]FM_GetShiftState [07:32:58]SAM_PROTO_GetShiftState [07:32:58]wFMCommunicate request_size=4 [07:32:58]MH_SAM_APDU [07:32:58]CAPDU: 80 13 01 00 [07:32:58]Write to MH i2c: E2 08 00 3B 35 80 13 01 00 00 00 00 00 ED [07:32:58]Write i2c OK [07:32:58]MH_I2C_Read... [07:32:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:58]Read from MH i2c: E2 [07:32:58]MH_I2C_Read... [07:32:58]Read from MH i2c: E2 0E 00 [07:32:58]MH_I2C_Read... [07:32:58]Read from MH i2c: E2 0E 00 3B 35 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 9B [07:32:58]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [07:32:58]wFMCommunicate OK [07:32:58]SAM_PROTO_GetShiftState done [07:32:58]FM_GetShiftState done [07:32:58]req_shift_opened done [07:32:58]requested_item shift.open_date is exist - process it [07:32:58]req_shift_open_date [07:32:58]req_shift_open_date done [07:32:58]produce_requested_data done [07:32:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29747,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [07:32:58]process_action_free close_receipt [07:32:58]json_value_free [07:32:58]json_value_free done [07:32:58]process_json_proto returns [07:32:58]Send response to host [07:32:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29747,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [07:32:58]free response buf [07:32:58]execute_script done [07:32:58]execute_script returns [07:32:58]free content buf [07:32:58]Sock 7.Close socket [07:32:58]Sock 7.Thread stoped [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:53]accept exits with 9 [07:44:53]New connection [07:44:53]New thread 3067108708 created [07:44:53]Thread 3066965348 joined [07:44:53]Waiting for new connection... [07:44:53] Sock 9.Parse request [07:44:53]Sock 9.Check first char [07:44:53]Sock 9.First char is OK [07:44:53]request: POST /json_proto HTTP/1.0 [07:44:53]Method: POST [07:44:53]URL: /json_proto [07:44:53]Method is POST - this is cgi request [07:44:53]url: /json_proto [07:44:53]query_string will be loaded in cgi processing [07:44:53]execute_cgi json_proto POST (null) [07:44:53]execute_cgi path=json_proto method=POST [07:44:53]POST find Content-Length [07:44:53]Host: 172.17.33.3:8080 [07:44:53]Content-Length: 677 [07:44:53]Content-Type: application/json [07:44:53] [07:44:53]POST finish read [07:44:53]Found Content-Length = 677 [07:44:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "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:44:53]execute_script... [07:44:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "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:44:53]POST & json_proto [07:44:53]process_json_proto [07:44:53]json parsed OK: [07:44:53]protocol is kg_v1.0 [07:44:53]action value=close_receipt [07:44:53]process_action close_receipt [07:44:53]cmd_close_receipt [07:44:53]MH_GetDate [07:44:53]Write to MH i2c: F0 00 00 3C 35 60 [07:44:53]Write i2c OK [07:44:53]MH_I2C_Read... [07:44:53]Read from MH i2c: F0 [07:44:53]MH_I2C_Read... [07:44:53]Read from MH i2c: F0 09 00 [07:44:53]MH_I2C_Read... [07:44:53]Read from MH i2c: F0 09 00 3C 35 00 7A 2C 1E 66 23 5B 8F 65 05 [07:44:53]GetLastDocTimeStamp 1713252778 [07:44:53]current date 1713253498 [07:44:53]FM_GetShiftState [07:44:53]SAM_PROTO_GetShiftState [07:44:53]wFMCommunicate request_size=4 [07:44:53]MH_SAM_APDU [07:44:53]CAPDU: 80 13 01 00 [07:44:53]Write to MH i2c: E2 08 00 3D 35 80 13 01 00 00 00 00 00 EF [07:44:53]Write i2c OK [07:44:53]MH_I2C_Read... [07:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:53]Read from MH i2c: E2 [07:44:53]MH_I2C_Read... [07:44:53]Read from MH i2c: E2 0E 00 [07:44:53]MH_I2C_Read... [07:44:53]Read from MH i2c: E2 0E 00 3D 35 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 9D [07:44:53]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [07:44:53]wFMCommunicate OK [07:44:53]SAM_PROTO_GetShiftState done [07:44:53]FM_GetShiftState done [07:44:53]opened in 1713226843 [07:44:53]opened+sec_in_day 1713313243 [07:44:53]quantity*price = 50025 [07:44:53]sum+1 = 50027 [07:44:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 22 16.04.2024 07:44 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29748 ФПД: 219992915610632 1/tax-web-control/client/api/v1/ticket?date=20240416T074458&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29748&fm=219992915610632&tin=02508201610067®Number=0000138879044617&sum=50000 [07:44:55]StoreToDocumentArchive [07:44:55]shift 118 fd 29748 [07:44:55]save to /storage/0118/doc_00029748 [07:44:55]save last doc name /storage/0118/doc_00029748 to /storage/kkm_last_doc_name [07:44:55]save OK [07:44:55]Clear old archive folders... [07:44:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:44:55]tlvbuf is B6F7B980 [07:44:55]SAM_PROTO_ClearQueue [07:44:55]wFMCommunicate request_size=4 [07:44:55]MH_SAM_APDU [07:44:55]CAPDU: 80 09 00 00 [07:44:55]Write to MH i2c: E2 08 00 4A 35 80 09 00 00 00 00 00 00 F1 [07:44:55]Write i2c OK [07:44:55]MH_I2C_Read... [07:44:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:55]Read from MH i2c: E2 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: E2 03 00 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: E2 03 00 4A 35 00 90 00 F3 [07:44:55]RAPDU: 90 00 [07:44:55]wFMCommunicate OK [07:44:55]SAM_PROTO_ClearQueue done [07:44:55]KKMCreateOFDPacket [07:44:55]OFDProtocolAddRootSTLVToBuf [07:44:55]FM_MakeSignedData [07:44:55]FM_MakeSignedData [07:44:55]SAM_PROTO_SignData [07:44:55]wFMCommunicate request_size=4 [07:44:55]MH_SAM_APDU [07:44:55]CAPDU: 80 0D 01 02 [07:44:55]Write to MH i2c: E2 08 00 4B 35 80 0D 01 02 00 00 00 00 F9 [07:44:55]Write i2c OK [07:44:55]MH_I2C_Read... [07:44:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:55]Read from MH i2c: E2 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: E2 03 00 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: E2 03 00 4B 35 00 90 00 F4 [07:44:55]RAPDU: 90 00 [07:44:55]wFMCommunicate OK [07:44:55]wFMCommunicate request_size=255 [07:44:55]MH_SAM_APDU [07:44:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 16 00 00 00 F4 03 04 00 7A 2C 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 74 00 00 35 04 06 00 C8 [07:44:55]Write to MH i2c: E2 02 01 4C 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 16 00 00 00 F4 03 04 00 7A 2C 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 74 00 00 35 04 06 00 C8 00 00 D8 [07:44:55]Write i2c OK [07:44:55]MH_I2C_Read... [07:44:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:55]Read from MH i2c: E2 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: E2 03 00 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: E2 03 00 4C 35 00 90 00 F5 [07:44:55]RAPDU: 90 00 [07:44:55]wFMCommunicate OK [07:44:55]wFMCommunicate request_size=10 [07:44:55]MH_SAM_APDU [07:44:55]CAPDU: 80 0D 02 02 05 15 17 96 8C 08 [07:44:55]Write to MH i2c: E2 0D 00 4D 35 80 0D 02 02 05 00 15 17 96 8C 08 00 00 5C [07:44:55]Write i2c OK [07:44:55]MH_I2C_Read... [07:44:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:55]Read from MH i2c: E2 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: E2 03 00 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: E2 03 00 4D 35 00 90 00 F6 [07:44:55]RAPDU: 90 00 [07:44:55]wFMCommunicate OK [07:44:55]wFMCommunicate request_size=4 [07:44:55]MH_SAM_APDU [07:44:55]CAPDU: 80 0D 03 02 [07:44:55]Write to MH i2c: E2 08 00 4E 35 80 0D 03 02 00 00 00 00 FE [07:44:55]Write i2c OK [07:44:55]MH_I2C_Read... [07:44:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:55]Read from MH i2c: E2 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: E2 0B 00 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: E2 0B 00 4E 35 00 5C A8 35 A8 04 F4 C6 45 90 00 E3 [07:44:55]RAPDU: 5C A8 35 A8 04 F4 C6 45 90 00 [07:44:55]wFMCommunicate OK [07:44:55]SAM_PROTO_SignData done [07:44:55]FM_MakeSignedData done [07:44:55]CreateOFDProtocolMessage [07:44:55]wFMCommunicate request_size=4 [07:44:55]MH_SAM_APDU [07:44:55]CAPDU: 80 11 00 00 [07:44:55]Write to MH i2c: E2 08 00 4F 35 80 11 00 00 00 00 00 00 FE [07:44:55]Write i2c OK [07:44:55]MH_I2C_Read... [07:44:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:55]Read from MH i2c: E2 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: E2 17 00 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: E2 17 00 4F 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4D [07:44:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:44:55]wFMCommunicate OK [07:44:55]CreateOFDProtocolMessage done [07:44:55]OFDSenderStorePacket 29748 [07:44:55]StoreOFDPacket docnum=29748 [07:44:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3A A6 07 01 B6 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 16 00 00 00 F4 03 04 00 7A 2C 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 74 00 00 35 04 06 00 C8 15 17 96 8C 08 5C A8 35 A8 04 F4 C6 45 [07:44:55]CheckFolder [07:44:55]dirname=/storage/ofd_packets [07:44:55]CheckFolder done [07:44:55]ProducePacketName [07:44:55]name=ofd_packets/00029748 [07:44:55]NVStorageSaveData ofd_packets/00029748 [07:44:55]File name is /storage/ofd_packets/00029748 [07:44:55]Write 301 bytes [07:44:55]NVStorageSaveData done [07:44:55]OFDSenderStorePacket done [07:44:55]KKMCreateOFDPacket done [07:44:55]NVStorageSaveData kkm_last_timestamp [07:44:55]File name is /storage/kkm_last_timestamp [07:44:55]Write 4 bytes [07:44:55]NVStorageSaveData done [07:44:55]ExternCall_PrintAddStr [07:44:55]wPrintStart [07:44:55]Write to MH i2c: 01 00 00 50 35 85 [07:44:55]Write i2c OK [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: 01 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: 01 07 00 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: 01 07 00 50 35 00 00 00 00 00 FF 0F 9A [07:44:55]RasterBufferAndPrint [07:44:55]line Счет N : (1)348225 [07:44:55]line ИНН: 02508201610067 [07:44:55]line Контрольно-Кассовый Чек [07:44:55]line ПРОДАЖА [07:44:55]line ТРК (МРК, ГНК) : 13 [07:44:55]line Товар: 2710124130 [07:44:55]line Аи-92-К-5 [07:44:55]line 7.720 * 64.80 [07:44:55]line = 500.26 [07:44:55]line НДС 12% НСП 1% [07:44:55]line > о реализуемом товаре [07:44:55]line ОКРУГЛЕНИЕ: -0.26 [07:44:55]line ИТОГО: 500.00 [07:44:55]line Внесено: 500.00 [07:44:55]line СДАЧА: 0.00 [07:44:55]line НСП 1% : 4.43 [07:44:55]line НДС 12% : 53.12 [07:44:55]line Наличными: 500.00 [07:44:55]line Безнал.: 0.00 [07:44:55]line Место: АЗС № 108 "Партнер Нефть" [07:44:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:44:55]line СНО: Общий режим [07:44:55]line Чек 22 16.04.2024 07:44 [07:44:55]line Смена: 118 ФФД: 1.0 [07:44:55]line ЗНМ: 0300000027 [07:44:55]line РНМ: 0000138879044617 [07:44:55]line Версия ККМ: 001 [07:44:55]line ФМ: 0000000000963154 [07:44:55]line ФД: 29748 [07:44:55]line ФПД: 219992915610632 [07:44:55]line 1/tax-web-control/client/api/v1/ticket?date=20240416T074458&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29748&fm=219992915610632&tin=02508201610067®Number=0000138879044617&sum=50000 [07:44:55]OFD Sender: Processing packet 29748 [packets to send 8, broken 7] [07:44:55]ProducePacketName [07:44:55]name=ofd_packets/00029748 [07:44:55]OFD Sender: To server: pG, [07:44:55]CommunicateWithHost lk.salyk.kg:30040 [07:44:55]ConnectInit lk.salyk.kg [07:44:55]written 0, free lines is 4095 [07:44:55]Connected sock=10 [07:44:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3A A6 07 01 B6 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 16 00 00 00 F4 03 04 00 7A 2C 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 74 00 00 35 04 06 00 C8 15 17 96 8C 08 5C A8 35 A8 04 F4 C6 45 [07:44:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7A CE 47 00 83 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 36 33 31 35 34 10 04 04 00 34 74 00 00 F4 03 04 00 19 D7 1D 66 B6 04 01 00 00 B9 BD 73 EB EB DF 43 80 [07:44:56]CommunicateWithHost err = 0 [07:44:56]CheckOFDResponse [07:44:56]1017 (14) - 77093643461234 [07:44:56]1041 (16) - 0000000000963154 [07:44:56]1040 (4) - 29748 [07:44:56]1012 (4) - 16.04.2024 01:40 [07:44:56]1206 (1) - 0 [07:44:56]OFD Sender: Remove packet 29748 [07:44:56]ProducePacketName [07:44:56]name=ofd_packets/00029748 [07:44:56]NVStorageDeleteData [07:44:56]Write to MH i2c: 01 00 00 7A 35 AF [07:44:56]Write i2c OK [07:44:56]MH_I2C_Read... [07:44:56]Read from MH i2c: 01 [07:44:56]MH_I2C_Read... [07:44:56]Read from MH i2c: 01 07 00 [07:44:56]MH_I2C_Read... [07:44:56]Read from MH i2c: 01 07 00 7A 35 00 00 00 00 00 C0 0C 82 [07:44:56]RasterBufferAndPrint [07:44:56]line [07:44:56]line [07:44:56]line [07:44:56]line [07:44:56]line [07:44:56]written 0, free lines is 3269 [07:44:56]MH_Cut [07:44:56]Write to MH i2c: D1 01 00 81 35 01 88 [07:44:56]Write i2c OK [07:44:56]MH_I2C_Read... [07:44:56]Read from MH i2c: D1 [07:44:56]MH_I2C_Read... [07:44:56]Read from MH i2c: D1 01 00 [07:44:56]MH_I2C_Read... [07:44:56]Read from MH i2c: D1 01 00 81 35 00 87 [07:44:56]Write to MH i2c: 01 00 00 82 35 B7 [07:44:56]Write i2c OK [07:44:56]MH_I2C_Read... [07:44:56]OFD Sender: No OFD packet to send [07:44:57]*** Cut start [07:44:57]*** Partial cut [07:44:57]*** CUTSNS_PIN = 1 [07:44:57]*** CUTSNS_PIN = 0 [07:44:57]*** Brake cut motor [07:44:57]Read from MH i2c: 01 [07:44:57]MH_I2C_Read... [07:44:57]*** Stop cut motor [07:44:57]*** Cut end [07:44:57]Read from MH i2c: 01 07 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: 01 07 00 82 35 00 00 00 00 00 FF 0F CC [07:44:57]process_action close_receipt done [07:44:57]requested_data is exist [07:44:57]produce_requested_data [07:44:57]requested_item fm.sn is exist - process it [07:44:57]wFMCommunicate request_size=4 [07:44:57]MH_SAM_APDU [07:44:57]CAPDU: 80 11 00 00 [07:44:57]Write to MH i2c: E2 08 00 83 35 80 11 00 00 00 00 00 00 32 [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:57]Read from MH i2c: E2 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 17 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 17 00 83 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 81 [07:44:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:44:57]wFMCommunicate OK [07:44:57]requested_item fd.num is exist - process it [07:44:57]SAM_PROTO_GetFieldsCounters [07:44:57]wFMCommunicate request_size=4 [07:44:57]MH_SAM_APDU [07:44:57]CAPDU: 80 13 00 00 [07:44:57]Write to MH i2c: E2 08 00 84 35 80 13 00 00 00 00 00 00 35 [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:44:58]Read from MH i2c: E2 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 62 00 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 62 00 84 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 34 74 00 00 0E 04 04 00 76 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 D3 [07:44:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 34 74 00 00 0E 04 04 00 76 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 [07:44:58]wFMCommunicate OK [07:44:58]SAM_PROTO_GetFieldsCounters done [07:44:58]requested_item shift.num is exist - process it [07:44:58]requested_item shift.opened is exist - process it [07:44:58]req_shift_opened [07:44:58]FM_GetShiftState [07:44:58]SAM_PROTO_GetShiftState [07:44:58]wFMCommunicate request_size=4 [07:44:58]MH_SAM_APDU [07:44:58]CAPDU: 80 13 01 00 [07:44:58]Write to MH i2c: E2 08 00 85 35 80 13 01 00 00 00 00 00 37 [07:44:58]Write i2c OK [07:44:58]MH_I2C_Read... [07:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:58]Read from MH i2c: E2 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 0E 00 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: E2 0E 00 85 35 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 E5 [07:44:58]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [07:44:58]wFMCommunicate OK [07:44:58]SAM_PROTO_GetShiftState done [07:44:58]FM_GetShiftState done [07:44:58]req_shift_opened done [07:44:58]requested_item shift.open_date is exist - process it [07:44:58]req_shift_open_date [07:44:58]req_shift_open_date done [07:44:58]produce_requested_data done [07:44:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29748,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [07:44:58]process_action_free close_receipt [07:44:58]json_value_free [07:44:58]json_value_free done [07:44:58]process_json_proto returns [07:44:58]Send response to host [07:44:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29748,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [07:44:58]free response buf [07:44:58]execute_script done [07:44:58]execute_script returns [07:44:58]free content buf [07:44:58]Sock 9.Close socket [07:44:58]Sock 9.Thread stoped [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:28]accept exits with 7 [07:58:28]New connection [07:58:28]New thread 3066965348 created [07:58:28]Thread 3067108708 joined [07:58:28]Waiting for new connection... [07:58:28] Sock 7.Parse request [07:58:28]Sock 7.Check first char [07:58:28]Sock 7.First char is OK [07:58:28]request: POST /json_proto HTTP/1.0 [07:58:28]Method: POST [07:58:28]URL: /json_proto [07:58:28]Method is POST - this is cgi request [07:58:28]url: /json_proto [07:58:28]query_string will be loaded in cgi processing [07:58:28]execute_cgi json_proto POST (null) [07:58:28]execute_cgi path=json_proto method=POST [07:58:28]POST find Content-Length [07:58:28]Host: 172.17.33.3:8080 [07:58:28]Content-Length: 677 [07:58:28]Content-Type: application/json [07:58:28] [07:58:28]POST finish read [07:58:28]Found Content-Length = 677 [07:58:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:58:28]execute_script... [07:58:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:58:28]POST & json_proto [07:58:28]process_json_proto [07:58:28]json parsed OK: [07:58:28]protocol is kg_v1.0 [07:58:28]action value=close_receipt [07:58:28]process_action close_receipt [07:58:28]cmd_close_receipt [07:58:28]MH_GetDate [07:58:28]Write to MH i2c: F0 00 00 86 35 AA [07:58:28]Write i2c OK [07:58:28]MH_I2C_Read... [07:58:28]Read from MH i2c: F0 [07:58:28]MH_I2C_Read... [07:58:28]Read from MH i2c: F0 09 00 [07:58:28]MH_I2C_Read... [07:58:28]Read from MH i2c: F0 09 00 86 35 00 A8 2F 1E 66 23 5B 8F 65 80 [07:58:28]GetLastDocTimeStamp 1713253498 [07:58:28]current date 1713254312 [07:58:28]FM_GetShiftState [07:58:28]SAM_PROTO_GetShiftState [07:58:28]wFMCommunicate request_size=4 [07:58:28]MH_SAM_APDU [07:58:28]CAPDU: 80 13 01 00 [07:58:28]Write to MH i2c: E2 08 00 87 35 80 13 01 00 00 00 00 00 39 [07:58:28]Write i2c OK [07:58:28]MH_I2C_Read... [07:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:28]Read from MH i2c: E2 [07:58:28]MH_I2C_Read... [07:58:28]Read from MH i2c: E2 0E 00 [07:58:28]MH_I2C_Read... [07:58:28]Read from MH i2c: E2 0E 00 87 35 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 E7 [07:58:28]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [07:58:28]wFMCommunicate OK [07:58:28]SAM_PROTO_GetShiftState done [07:58:28]FM_GetShiftState done [07:58:28]opened in 1713226843 [07:58:28]opened+sec_in_day 1713313243 [07:58:28]quantity*price = 50009 [07:58:28]sum+1 = 50010 [07:58:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 23 16.04.2024 07:58 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29749 ФПД: 13796623119210 1/tax-web-control/client/api/v1/ticket?date=20240416T075832&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29749&fm=13796623119210&tin=02508201610067®Number=0000138879044617&sum=50000 [07:58:29]StoreToDocumentArchive [07:58:29]shift 118 fd 29749 [07:58:29]save to /storage/0118/doc_00029749 [07:58:29]save last doc name /storage/0118/doc_00029749 to /storage/kkm_last_doc_name [07:58:29]save OK [07:58:29]Clear old archive folders... [07:58:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:58:29]tlvbuf is B6F7B630 [07:58:29]SAM_PROTO_ClearQueue [07:58:29]wFMCommunicate request_size=4 [07:58:29]MH_SAM_APDU [07:58:29]CAPDU: 80 09 00 00 [07:58:29]Write to MH i2c: E2 08 00 94 35 80 09 00 00 00 00 00 00 3B [07:58:29]Write i2c OK [07:58:29]MH_I2C_Read... [07:58:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:29]Read from MH i2c: E2 [07:58:29]MH_I2C_Read... [07:58:29]Read from MH i2c: E2 03 00 [07:58:29]MH_I2C_Read... [07:58:29]Read from MH i2c: E2 03 00 94 35 00 90 00 3D [07:58:29]RAPDU: 90 00 [07:58:29]wFMCommunicate OK [07:58:29]SAM_PROTO_ClearQueue done [07:58:29]KKMCreateOFDPacket [07:58:29]OFDProtocolAddRootSTLVToBuf [07:58:29]FM_MakeSignedData [07:58:29]FM_MakeSignedData [07:58:29]SAM_PROTO_SignData [07:58:29]wFMCommunicate request_size=4 [07:58:29]MH_SAM_APDU [07:58:29]CAPDU: 80 0D 01 02 [07:58:29]Write to MH i2c: E2 08 00 95 35 80 0D 01 02 00 00 00 00 43 [07:58:29]Write i2c OK [07:58:29]MH_I2C_Read... [07:58:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:29]Read from MH i2c: E2 [07:58:29]MH_I2C_Read... [07:58:29]Read from MH i2c: E2 03 00 [07:58:29]MH_I2C_Read... [07:58:29]Read from MH i2c: E2 03 00 95 35 00 90 00 3E [07:58:29]RAPDU: 90 00 [07:58:29]wFMCommunicate OK [07:58:29]wFMCommunicate request_size=255 [07:58:29]MH_SAM_APDU [07:58:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 17 00 00 00 F4 03 04 00 A8 2F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 74 00 00 35 04 06 00 0C [07:58:29]Write to MH i2c: E2 02 01 96 35 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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 17 00 00 00 F4 03 04 00 A8 2F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 74 00 00 35 04 06 00 0C 00 00 58 [07:58:29]Write i2c OK [07:58:29]MH_I2C_Read... [07:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:29]Read from MH i2c: E2 [07:58:29]MH_I2C_Read... [07:58:29]Read from MH i2c: E2 03 00 [07:58:29]MH_I2C_Read... [07:58:29]Read from MH i2c: E2 03 00 96 35 00 90 00 3F [07:58:29]RAPDU: 90 00 [07:58:29]wFMCommunicate OK [07:58:29]wFMCommunicate request_size=10 [07:58:29]MH_SAM_APDU [07:58:29]CAPDU: 80 0D 02 02 05 8C 46 D1 F3 6A [07:58:29]Write to MH i2c: E2 0D 00 97 35 80 0D 02 02 05 00 8C 46 D1 F3 6A 00 00 50 [07:58:29]Write i2c OK [07:58:29]MH_I2C_Read... [07:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:29]Read from MH i2c: E2 [07:58:29]MH_I2C_Read... [07:58:29]Read from MH i2c: E2 03 00 [07:58:29]MH_I2C_Read... [07:58:29]Read from MH i2c: E2 03 00 97 35 00 90 00 40 [07:58:29]RAPDU: 90 00 [07:58:29]wFMCommunicate OK [07:58:29]wFMCommunicate request_size=4 [07:58:29]MH_SAM_APDU [07:58:29]CAPDU: 80 0D 03 02 [07:58:29]Write to MH i2c: E2 08 00 98 35 80 0D 03 02 00 00 00 00 48 [07:58:29]Write i2c OK [07:58:29]MH_I2C_Read... [07:58:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:30]Read from MH i2c: E2 [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: E2 0B 00 [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: E2 0B 00 98 35 00 D5 EB B7 27 60 71 17 DA 90 00 A9 [07:58:30]RAPDU: D5 EB B7 27 60 71 17 DA 90 00 [07:58:30]wFMCommunicate OK [07:58:30]SAM_PROTO_SignData done [07:58:30]FM_MakeSignedData done [07:58:30]CreateOFDProtocolMessage [07:58:30]wFMCommunicate request_size=4 [07:58:30]MH_SAM_APDU [07:58:30]CAPDU: 80 11 00 00 [07:58:30]Write to MH i2c: E2 08 00 99 35 80 11 00 00 00 00 00 00 48 [07:58:30]Write i2c OK [07:58:30]MH_I2C_Read... [07:58:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:30]Read from MH i2c: E2 [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: E2 17 00 [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: E2 17 00 99 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 97 [07:58:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:58:30]wFMCommunicate OK [07:58:30]CreateOFDProtocolMessage done [07:58:30]OFDSenderStorePacket 29749 [07:58:30]StoreOFDPacket docnum=29749 [07:58:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B3 EA 07 01 F3 9A 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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 17 00 00 00 F4 03 04 00 A8 2F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 74 00 00 35 04 06 00 0C 8C 46 D1 F3 6A D5 EB B7 27 60 71 17 DA [07:58:30]CheckFolder [07:58:30]dirname=/storage/ofd_packets [07:58:30]CheckFolder done [07:58:30]ProducePacketName [07:58:30]name=ofd_packets/00029749 [07:58:30]NVStorageSaveData ofd_packets/00029749 [07:58:30]File name is /storage/ofd_packets/00029749 [07:58:30]Write 301 bytes [07:58:30]NVStorageSaveData done [07:58:30]OFDSenderStorePacket done [07:58:30]KKMCreateOFDPacket done [07:58:30]NVStorageSaveData kkm_last_timestamp [07:58:30]File name is /storage/kkm_last_timestamp [07:58:30]Write 4 bytes [07:58:30]NVStorageSaveData done [07:58:30]ExternCall_PrintAddStr [07:58:30]wPrintStart [07:58:30]Write to MH i2c: 01 00 00 9A 35 CF [07:58:30]Write i2c OK [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: 01 [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: 01 07 00 [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: 01 07 00 9A 35 00 00 00 00 00 FF 0F E4 [07:58:30]RasterBufferAndPrint [07:58:30]line Счет N : (1)348226 [07:58:30]line ИНН: 02508201610067 [07:58:30]line Контрольно-Кассовый Чек [07:58:30]line ПРОДАЖА [07:58:30]line ТРК (МРК, ГНК) : 33 [07:58:30]line Товар: 2710124500 [07:58:30]line Аи-95-К-5 [07:58:30]line 6.860 * 72.90 [07:58:30]line = 500.09 [07:58:30]line НДС 12% НСП 1% [07:58:30]line > о реализуемом товаре [07:58:30]line ОКРУГЛЕНИЕ: -0.09 [07:58:30]line ИТОГО: 500.00 [07:58:30]line Внесено: 500.00 [07:58:30]line СДАЧА: 0.00 [07:58:30]line НСП 1% : 4.43 [07:58:30]line НДС 12% : 53.11 [07:58:30]line Наличными: 500.00 [07:58:30]line Безнал.: 0.00 [07:58:30]line Место: АЗС № 108 "Партнер Нефть" [07:58:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:58:30]line СНО: Общий режим [07:58:30]line Чек 23 16.04.2024 07:58 [07:58:30]line Смена: 118 ФФД: 1.0 [07:58:30]line ЗНМ: 0300000027 [07:58:30]line РНМ: 0000138879044617 [07:58:30]line Версия ККМ: 001 [07:58:30]line ФМ: 0000000000963154 [07:58:30]line ФД: 29749 [07:58:30]line ФПД: 13796623119210 [07:58:30]line 1/tax-web-control/client/api/v1/ticket?date=20240416T075832&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29749&fm=13796623119210&tin=02508201610067®Number=0000138879044617&sum=50000 [07:58:30]OFD Sender: Processing packet 29749 [packets to send 8, broken 7] [07:58:30]ProducePacketName [07:58:30]name=ofd_packets/00029749 [07:58:30]OFD Sender: To server: pG, [07:58:30]CommunicateWithHost lk.salyk.kg:30040 [07:58:30]ConnectInit lk.salyk.kg [07:58:30]written 0, free lines is 4095 [07:58:30]Connected sock=10 [07:58:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B3 EA 07 01 F3 9A 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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 17 00 00 00 F4 03 04 00 A8 2F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 74 00 00 35 04 06 00 0C 8C 46 D1 F3 6A D5 EB B7 27 60 71 17 DA [07:58:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7B 7D 47 00 58 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 35 74 00 00 F4 03 04 00 47 DA 1D 66 B6 04 01 00 00 3D D8 14 89 8C 35 23 5A [07:58:30]CommunicateWithHost err = 0 [07:58:30]CheckOFDResponse [07:58:30]1017 (14) - 77093643461234 [07:58:30]1041 (16) - 0000000000963154 [07:58:30]1040 (4) - 29749 [07:58:30]1012 (4) - 16.04.2024 01:54 [07:58:30]1206 (1) - 0 [07:58:30]OFD Sender: Remove packet 29749 [07:58:30]ProducePacketName [07:58:30]name=ofd_packets/00029749 [07:58:30]NVStorageDeleteData [07:58:30]Write to MH i2c: 01 00 00 C4 35 F9 [07:58:30]Write i2c OK [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: 01 [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: 01 07 00 [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: 01 07 00 C4 35 00 00 00 00 00 BC 0C C8 [07:58:30]RasterBufferAndPrint [07:58:30]line [07:58:30]line [07:58:30]line [07:58:30]line [07:58:30]line [07:58:30]written 0, free lines is 3267 [07:58:30]MH_Cut [07:58:30]Write to MH i2c: D1 01 00 CB 35 01 D2 [07:58:30]Write i2c OK [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: D1 [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: D1 01 00 [07:58:30]MH_I2C_Read... [07:58:30]Read from MH i2c: D1 01 00 CB 35 00 D1 [07:58:30]Write to MH i2c: 01 00 00 CC 35 01 [07:58:30]Write i2c OK [07:58:30]MH_I2C_Read... [07:58:31]OFD Sender: No OFD packet to send [07:58:31]*** Cut start [07:58:31]*** Partial cut [07:58:31]*** CUTSNS_PIN = 1 [07:58:31]*** CUTSNS_PIN = 0 [07:58:31]*** Brake cut motor [07:58:32]Read from MH i2c: 01 [07:58:32]MH_I2C_Read... [07:58:32]*** Stop cut motor [07:58:32]*** Cut end [07:58:32]Read from MH i2c: 01 07 00 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: 01 07 00 CC 35 00 00 00 00 00 FF 0F 16 [07:58:32]process_action close_receipt done [07:58:32]requested_data is exist [07:58:32]produce_requested_data [07:58:32]requested_item fm.sn is exist - process it [07:58:32]wFMCommunicate request_size=4 [07:58:32]MH_SAM_APDU [07:58:32]CAPDU: 80 11 00 00 [07:58:32]Write to MH i2c: E2 08 00 CD 35 80 11 00 00 00 00 00 00 7C [07:58:32]Write i2c OK [07:58:32]MH_I2C_Read... [07:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:32]Read from MH i2c: E2 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 17 00 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 17 00 CD 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CB [07:58:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:58:32]wFMCommunicate OK [07:58:32]requested_item fd.num is exist - process it [07:58:32]SAM_PROTO_GetFieldsCounters [07:58:32]wFMCommunicate request_size=4 [07:58:32]MH_SAM_APDU [07:58:32]CAPDU: 80 13 00 00 [07:58:32]Write to MH i2c: E2 08 00 CE 35 80 13 00 00 00 00 00 00 7F [07:58:32]Write i2c OK [07:58:32]MH_I2C_Read... [07:58:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:32]Read from MH i2c: E2 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 62 00 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 62 00 CE 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 35 74 00 00 0E 04 04 00 76 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 21 [07:58:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 35 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:58:32]wFMCommunicate OK [07:58:32]SAM_PROTO_GetFieldsCounters done [07:58:32]requested_item shift.num is exist - process it [07:58:32]requested_item shift.opened is exist - process it [07:58:32]req_shift_opened [07:58:32]FM_GetShiftState [07:58:32]SAM_PROTO_GetShiftState [07:58:32]wFMCommunicate request_size=4 [07:58:32]MH_SAM_APDU [07:58:32]CAPDU: 80 13 01 00 [07:58:32]Write to MH i2c: E2 08 00 CF 35 80 13 01 00 00 00 00 00 81 [07:58:32]Write i2c OK [07:58:32]MH_I2C_Read... [07:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:32]Read from MH i2c: E2 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 0E 00 [07:58:32]MH_I2C_Read... [07:58:32]Read from MH i2c: E2 0E 00 CF 35 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 2F [07:58:32]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [07:58:32]wFMCommunicate OK [07:58:32]SAM_PROTO_GetShiftState done [07:58:32]FM_GetShiftState done [07:58:32]req_shift_opened done [07:58:32]requested_item shift.open_date is exist - process it [07:58:32]req_shift_open_date [07:58:32]req_shift_open_date done [07:58:32]produce_requested_data done [07:58:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29749,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [07:58:32]process_action_free close_receipt [07:58:32]json_value_free [07:58:32]json_value_free done [07:58:32]process_json_proto returns [07:58:32]Send response to host [07:58:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29749,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [07:58:32]free response buf [07:58:32]execute_script done [07:58:32]execute_script returns [07:58:32]free content buf [07:58:32]Sock 7.Close socket [07:58:32]Sock 7.Thread stoped [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:06]OFD Sender: No OFD packet to send [08:01:11]OFD Sender: No OFD packet to send [08:01:16]OFD Sender: No OFD packet to send [08:01:21]OFD Sender: No OFD packet to send [08:01:26]OFD Sender: No OFD packet to send [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:41]OFD Sender: No OFD packet to send [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:46]OFD Sender: No OFD packet to send [08:08:51]OFD Sender: No OFD packet to send [08:08:56]OFD Sender: No OFD packet to send [08:09:01]OFD Sender: No OFD packet to send [08:09:06]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:39]accept exits with 9 [08:13:39]New connection [08:13:39]New thread 3067108708 created [08:13:39]Thread 3066965348 joined [08:13:39]Waiting for new connection... [08:13:39] Sock 9.Parse request [08:13:39]Sock 9.Check first char [08:13:39]Sock 9.First char is OK [08:13:39]request: POST /json_proto HTTP/1.0 [08:13:39]Method: POST [08:13:39]URL: /json_proto [08:13:39]Method is POST - this is cgi request [08:13:39]url: /json_proto [08:13:39]query_string will be loaded in cgi processing [08:13:39]execute_cgi json_proto POST (null) [08:13:39]execute_cgi path=json_proto method=POST [08:13:39]POST find Content-Length [08:13:39]Host: 172.17.33.3:8080 [08:13:39]Content-Length: 677 [08:13:39]Content-Type: application/json [08:13:39] [08:13:39]POST finish read [08:13:39]Found Content-Length = 677 [08:13:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:39]execute_script... [08:13: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 : (1)348227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:39]POST & json_proto [08:13:39]process_json_proto [08:13:39]json parsed OK: [08:13:39]protocol is kg_v1.0 [08:13:39]action value=close_receipt [08:13:39]process_action close_receipt [08:13:39]cmd_close_receipt [08:13:39]MH_GetDate [08:13:39]Write to MH i2c: F0 00 00 D0 35 F4 [08:13:39]Write i2c OK [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: F0 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: F0 09 00 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: F0 09 00 D0 35 00 38 33 1E 66 23 5B 8F 65 5E [08:13:39]GetLastDocTimeStamp 1713254312 [08:13:39]current date 1713255224 [08:13:39]FM_GetShiftState [08:13:39]SAM_PROTO_GetShiftState [08:13:39]wFMCommunicate request_size=4 [08:13:39]MH_SAM_APDU [08:13:39]CAPDU: 80 13 01 00 [08:13:39]Write to MH i2c: E2 08 00 D1 35 80 13 01 00 00 00 00 00 83 [08:13:39]Write i2c OK [08:13:39]MH_I2C_Read... [08:13:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:39]Read from MH i2c: E2 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: E2 0E 00 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: E2 0E 00 D1 35 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 31 [08:13:39]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:13:39]wFMCommunicate OK [08:13:39]SAM_PROTO_GetShiftState done [08:13:39]FM_GetShiftState done [08:13:39]opened in 1713226843 [08:13:39]opened+sec_in_day 1713313243 [08:13:39]quantity*price = 60004 [08:13:39]sum+1 = 60006 [08:13:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 24 16.04.2024 08:13 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29750 ФПД: 256371861233569 1/tax-web-control/client/api/v1/ticket?date=20240416T081344&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29750&fm=256371861233569&tin=02508201610067®Number=0000138879044617&sum=60000 [08:13:40]StoreToDocumentArchive [08:13:40]shift 118 fd 29750 [08:13:40]save to /storage/0118/doc_00029750 [08:13:40]save last doc name /storage/0118/doc_00029750 to /storage/kkm_last_doc_name [08:13:40]save OK [08:13:40]Clear old archive folders... [08:13:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:13:40]tlvbuf is 01A99EF0 [08:13:40]SAM_PROTO_ClearQueue [08:13:40]wFMCommunicate request_size=4 [08:13:40]MH_SAM_APDU [08:13:40]CAPDU: 80 09 00 00 [08:13:40]Write to MH i2c: E2 08 00 DE 35 80 09 00 00 00 00 00 00 85 [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:40]Read from MH i2c: E2 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 03 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 03 00 DE 35 00 90 00 87 [08:13:40]RAPDU: 90 00 [08:13:40]wFMCommunicate OK [08:13:40]SAM_PROTO_ClearQueue done [08:13:40]KKMCreateOFDPacket [08:13:40]OFDProtocolAddRootSTLVToBuf [08:13:40]FM_MakeSignedData [08:13:40]FM_MakeSignedData [08:13:40]SAM_PROTO_SignData [08:13:40]wFMCommunicate request_size=4 [08:13:40]MH_SAM_APDU [08:13:40]CAPDU: 80 0D 01 02 [08:13:40]Write to MH i2c: E2 08 00 DF 35 80 0D 01 02 00 00 00 00 8D [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:40]Read from MH i2c: E2 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 03 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 03 00 DF 35 00 90 00 88 [08:13:40]RAPDU: 90 00 [08:13:40]wFMCommunicate OK [08:13:40]wFMCommunicate request_size=255 [08:13:40]MH_SAM_APDU [08:13:40]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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 38 33 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 74 00 00 35 04 06 00 E9 [08:13:40]Write to MH i2c: E2 02 01 E0 35 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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 38 33 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 74 00 00 35 04 06 00 E9 00 00 71 [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:41]Read from MH i2c: E2 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 E0 35 00 90 00 89 [08:13:41]RAPDU: 90 00 [08:13:41]wFMCommunicate OK [08:13:41]wFMCommunicate request_size=10 [08:13:41]MH_SAM_APDU [08:13:41]CAPDU: 80 0D 02 02 05 2B 39 B8 1F A1 [08:13:41]Write to MH i2c: E2 0D 00 E1 35 80 0D 02 02 05 00 2B 39 B8 1F A1 00 00 76 [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:41]Read from MH i2c: E2 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 E1 35 00 90 00 8A [08:13:41]RAPDU: 90 00 [08:13:41]wFMCommunicate OK [08:13:41]wFMCommunicate request_size=4 [08:13:41]MH_SAM_APDU [08:13:41]CAPDU: 80 0D 03 02 [08:13:41]Write to MH i2c: E2 08 00 E2 35 80 0D 03 02 00 00 00 00 92 [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:41]Read from MH i2c: E2 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 0B 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 0B 00 E2 35 00 00 25 BC FF 3A E7 FD 39 90 00 CA [08:13:41]RAPDU: 00 25 BC FF 3A E7 FD 39 90 00 [08:13:41]wFMCommunicate OK [08:13:41]SAM_PROTO_SignData done [08:13:41]FM_MakeSignedData done [08:13:41]CreateOFDProtocolMessage [08:13:41]wFMCommunicate request_size=4 [08:13:41]MH_SAM_APDU [08:13:41]CAPDU: 80 11 00 00 [08:13:41]Write to MH i2c: E2 08 00 E3 35 80 11 00 00 00 00 00 00 92 [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:41]Read from MH i2c: E2 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 17 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 17 00 E3 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E1 [08:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:13:41]wFMCommunicate OK [08:13:41]CreateOFDProtocolMessage done [08:13:41]OFDSenderStorePacket 29750 [08:13:41]StoreOFDPacket docnum=29750 [08:13:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B9 07 07 01 BF D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 38 33 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 74 00 00 35 04 06 00 E9 2B 39 B8 1F A1 00 25 BC FF 3A E7 FD 39 [08:13:41]CheckFolder [08:13:41]dirname=/storage/ofd_packets [08:13:41]CheckFolder done [08:13:41]ProducePacketName [08:13:41]name=ofd_packets/00029750 [08:13:41]NVStorageSaveData ofd_packets/00029750 [08:13:41]File name is /storage/ofd_packets/00029750 [08:13:41]Write 301 bytes [08:13:41]NVStorageSaveData done [08:13:41]OFDSenderStorePacket done [08:13:41]KKMCreateOFDPacket done [08:13:41]NVStorageSaveData kkm_last_timestamp [08:13:41]File name is /storage/kkm_last_timestamp [08:13:41]Write 4 bytes [08:13:41]NVStorageSaveData done [08:13:41]ExternCall_PrintAddStr [08:13:41]wPrintStart [08:13:41]Write to MH i2c: 01 00 00 E4 35 19 [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: 01 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: 01 07 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: 01 07 00 E4 35 00 00 00 00 00 FF 0F 2E [08:13:41]RasterBufferAndPrint [08:13:41]line Счет N : (1)348227 [08:13:41]line ИНН: 02508201610067 [08:13:41]line Контрольно-Кассовый Чек [08:13:41]line ПРОДАЖА [08:13:41]line ТРК (МРК, ГНК) : 32 [08:13:41]line Товар: 2710124130 [08:13:41]line Аи-92-К-5 [08:13:41]line 9.260 * 64.80 [08:13:41]line = 600.05 [08:13:41]line НДС 12% НСП 1% [08:13:41]line > о реализуемом товаре [08:13:41]line ОКРУГЛЕНИЕ: -0.05 [08:13:41]line ИТОГО: 600.00 [08:13:41]line Внесено: 600.00 [08:13:41]line СДАЧА: 0.00 [08:13:41]line НСП 1% : 5.31 [08:13:41]line НДС 12% : 63.72 [08:13:41]line Наличными: 600.00 [08:13:41]line Безнал.: 0.00 [08:13:41]line Место: АЗС № 108 "Партнер Нефть" [08:13:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:13:41]line СНО: Общий режим [08:13:41]line Чек 24 16.04.2024 08:13 [08:13:41]line Смена: 118 ФФД: 1.0 [08:13:41]line ЗНМ: 0300000027 [08:13:41]line РНМ: 0000138879044617 [08:13:41]line Версия ККМ: 001 [08:13:41]line ФМ: 0000000000963154 [08:13:41]line ФД: 29750 [08:13:41]line ФПД: 256371861233569 [08:13:41]line 1/tax-web-control/client/api/v1/ticket?date=20240416T081344&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29750&fm=256371861233569&tin=02508201610067®Number=0000138879044617&sum=60000 [08:13:41]OFD Sender: Processing packet 29750 [packets to send 8, broken 7] [08:13:41]ProducePacketName [08:13:41]name=ofd_packets/00029750 [08:13:41]OFD Sender: To server: pG, [08:13:41]CommunicateWithHost lk.salyk.kg:30040 [08:13:41]ConnectInit lk.salyk.kg [08:13:41]written 0, free lines is 4095 [08:13:41]Connected sock=10 [08:13:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B9 07 07 01 BF D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 38 33 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 74 00 00 35 04 06 00 E9 2B 39 B8 1F A1 00 25 BC FF 3A E7 FD 39 [08:13:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 06 D7 47 00 3D 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 36 33 31 35 34 10 04 04 00 36 74 00 00 F4 03 04 00 D6 DD 1D 66 B6 04 01 00 00 4C 3B 37 C6 FA 5E AF F9 [08:13:42]CommunicateWithHost err = 0 [08:13:42]CheckOFDResponse [08:13:42]1017 (14) - 77093643461234 [08:13:42]1041 (16) - 0000000000963154 [08:13:42]1040 (4) - 29750 [08:13:42]1012 (4) - 16.04.2024 02:09 [08:13:42]1206 (1) - 0 [08:13:42]OFD Sender: Remove packet 29750 [08:13:42]ProducePacketName [08:13:42]name=ofd_packets/00029750 [08:13:42]NVStorageDeleteData [08:13:42]Write to MH i2c: 01 00 00 0E 36 44 [08:13:42]Write i2c OK [08:13:42]MH_I2C_Read... [08:13:42]Read from MH i2c: 01 [08:13:42]MH_I2C_Read... [08:13:42]Read from MH i2c: 01 07 00 [08:13:42]MH_I2C_Read... [08:13:42]Read from MH i2c: 01 07 00 0E 36 00 00 00 00 00 C0 0C 17 [08:13:42]RasterBufferAndPrint [08:13:42]line [08:13:42]line [08:13:42]line [08:13:42]line [08:13:42]line [08:13:42]written 0, free lines is 3268 [08:13:42]MH_Cut [08:13:42]Write to MH i2c: D1 01 00 15 36 01 1D [08:13:42]Write i2c OK [08:13:42]MH_I2C_Read... [08:13:42]Read from MH i2c: D1 [08:13:42]MH_I2C_Read... [08:13:42]Read from MH i2c: D1 01 00 [08:13:42]MH_I2C_Read... [08:13:42]Read from MH i2c: D1 01 00 15 36 00 1C [08:13:42]Write to MH i2c: 01 00 00 16 36 4C [08:13:42]Write i2c OK [08:13:42]MH_I2C_Read... [08:13:42]OFD Sender: No OFD packet to send [08:13:43]*** Cut start [08:13:43]*** Partial cut [08:13:43]*** CUTSNS_PIN = 1 [08:13:43]*** CUTSNS_PIN = 0 [08:13:43]*** Brake cut motor [08:13:43]Read from MH i2c: 01 [08:13:43]MH_I2C_Read... [08:13:43]*** Stop cut motor [08:13:43]*** Cut end [08:13:43]Read from MH i2c: 01 07 00 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: 01 07 00 16 36 00 00 00 00 00 FF 0F 61 [08:13:43]process_action close_receipt done [08:13:43]requested_data is exist [08:13:43]produce_requested_data [08:13:43]requested_item fm.sn is exist - process it [08:13:43]wFMCommunicate request_size=4 [08:13:43]MH_SAM_APDU [08:13:43]CAPDU: 80 11 00 00 [08:13:43]Write to MH i2c: E2 08 00 17 36 80 11 00 00 00 00 00 00 C7 [08:13:43]Write i2c OK [08:13:43]MH_I2C_Read... [08:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:43]Read from MH i2c: E2 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 17 00 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 17 00 17 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 16 [08:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:13:43]wFMCommunicate OK [08:13:43]requested_item fd.num is exist - process it [08:13:43]SAM_PROTO_GetFieldsCounters [08:13:43]wFMCommunicate request_size=4 [08:13:43]MH_SAM_APDU [08:13:43]CAPDU: 80 13 00 00 [08:13:43]Write to MH i2c: E2 08 00 18 36 80 13 00 00 00 00 00 00 CA [08:13:43]Write i2c OK [08:13:43]MH_I2C_Read... [08:13:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:43]Read from MH i2c: E2 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 62 00 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 62 00 18 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 36 74 00 00 0E 04 04 00 76 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 70 [08:13:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 36 74 00 00 0E 04 04 00 76 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 [08:13:43]wFMCommunicate OK [08:13:43]SAM_PROTO_GetFieldsCounters done [08:13:43]requested_item shift.num is exist - process it [08:13:43]requested_item shift.opened is exist - process it [08:13:43]req_shift_opened [08:13:43]FM_GetShiftState [08:13:43]SAM_PROTO_GetShiftState [08:13:43]wFMCommunicate request_size=4 [08:13:43]MH_SAM_APDU [08:13:43]CAPDU: 80 13 01 00 [08:13:43]Write to MH i2c: E2 08 00 19 36 80 13 01 00 00 00 00 00 CC [08:13:43]Write i2c OK [08:13:43]MH_I2C_Read... [08:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:43]Read from MH i2c: E2 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 0E 00 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 0E 00 19 36 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 7A [08:13:43]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:13:43]wFMCommunicate OK [08:13:43]SAM_PROTO_GetShiftState done [08:13:43]FM_GetShiftState done [08:13:43]req_shift_opened done [08:13:43]requested_item shift.open_date is exist - process it [08:13:43]req_shift_open_date [08:13:43]req_shift_open_date done [08:13:43]produce_requested_data done [08:13:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29750,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:13:43]process_action_free close_receipt [08:13:43]json_value_free [08:13:43]json_value_free done [08:13:43]process_json_proto returns [08:13:43]Send response to host [08:13:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29750,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:13:43]free response buf [08:13:43]execute_script done [08:13:43]execute_script returns [08:13:43]free content buf [08:13:43]Sock 9.Close socket [08:13:43]Sock 9.Thread stoped [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:00]accept exits with 7 [08:16:00]New connection [08:16:00]New thread 3066965348 created [08:16:00]Thread 3067108708 joined [08:16:00]Waiting for new connection... [08:16:00] Sock 7.Parse request [08:16:00]Sock 7.Check first char [08:16:00]Sock 7.First char is OK [08:16:00]request: POST /json_proto HTTP/1.0 [08:16:00]Method: POST [08:16:00]URL: /json_proto [08:16:00]Method is POST - this is cgi request [08:16:00]url: /json_proto [08:16:00]query_string will be loaded in cgi processing [08:16:00]execute_cgi json_proto POST (null) [08:16:00]execute_cgi path=json_proto method=POST [08:16:00]POST find Content-Length [08:16:00]Host: 172.17.33.3:8080 [08:16:00]Content-Length: 670 [08:16:00]Content-Type: application/json [08:16:00] [08:16:00]POST finish read [08:16:00]Found Content-Length = 670 [08:16:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:00]execute_script... [08:16:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:00]POST & json_proto [08:16:00]process_json_proto [08:16:00]json parsed OK: [08:16:00]protocol is kg_v1.0 [08:16:00]action value=close_receipt [08:16:00]process_action close_receipt [08:16:00]cmd_close_receipt [08:16:00]MH_GetDate [08:16:00]Write to MH i2c: F0 00 00 1A 36 3F [08:16:00]Write i2c OK [08:16:00]MH_I2C_Read... [08:16:00]Read from MH i2c: F0 [08:16:00]MH_I2C_Read... [08:16:00]Read from MH i2c: F0 09 00 [08:16:00]MH_I2C_Read... [08:16:00]Read from MH i2c: F0 09 00 1A 36 00 C4 33 1E 66 23 5B 8F 65 35 [08:16:00]GetLastDocTimeStamp 1713255224 [08:16:00]current date 1713255364 [08:16:00]FM_GetShiftState [08:16:00]SAM_PROTO_GetShiftState [08:16:00]wFMCommunicate request_size=4 [08:16:00]MH_SAM_APDU [08:16:00]CAPDU: 80 13 01 00 [08:16:00]Write to MH i2c: E2 08 00 1B 36 80 13 01 00 00 00 00 00 CE [08:16:00]Write i2c OK [08:16:00]MH_I2C_Read... [08:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:00]Read from MH i2c: E2 [08:16:00]MH_I2C_Read... [08:16:00]Read from MH i2c: E2 0E 00 [08:16:00]MH_I2C_Read... [08:16:00]Read from MH i2c: E2 0E 00 1B 36 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 7C [08:16:00]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:16:00]wFMCommunicate OK [08:16:00]SAM_PROTO_GetShiftState done [08:16:00]FM_GetShiftState done [08:16:00]opened in 1713226843 [08:16:00]opened+sec_in_day 1713313243 [08:16:00]quantity*price = 30004 [08:16:00]sum+1 = 30006 [08:16:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 25 16.04.2024 08:16 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29751 ФПД: 137197519098044 1/tax-web-control/client/api/v1/ticket?date=20240416T081604&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29751&fm=137197519098044&tin=02508201610067®Number=0000138879044617&sum=30000 [08:16:01]StoreToDocumentArchive [08:16:01]shift 118 fd 29751 [08:16:01]save to /storage/0118/doc_00029751 [08:16:01]save last doc name /storage/0118/doc_00029751 to /storage/kkm_last_doc_name [08:16:01]save OK [08:16:01]Clear old archive folders... [08:16:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:16:01]tlvbuf is 01A88520 [08:16:01]SAM_PROTO_ClearQueue [08:16:01]wFMCommunicate request_size=4 [08:16:01]MH_SAM_APDU [08:16:01]CAPDU: 80 09 00 00 [08:16:01]Write to MH i2c: E2 08 00 28 36 80 09 00 00 00 00 00 00 D0 [08:16:01]Write i2c OK [08:16:01]MH_I2C_Read... [08:16:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:01]Read from MH i2c: E2 [08:16:01]MH_I2C_Read... [08:16:01]Read from MH i2c: E2 03 00 [08:16:01]MH_I2C_Read... [08:16:01]Read from MH i2c: E2 03 00 28 36 00 90 00 D2 [08:16:01]RAPDU: 90 00 [08:16:01]wFMCommunicate OK [08:16:01]SAM_PROTO_ClearQueue done [08:16:01]KKMCreateOFDPacket [08:16:01]OFDProtocolAddRootSTLVToBuf [08:16:01]FM_MakeSignedData [08:16:01]FM_MakeSignedData [08:16:01]SAM_PROTO_SignData [08:16:01]wFMCommunicate request_size=4 [08:16:01]MH_SAM_APDU [08:16:01]CAPDU: 80 0D 01 02 [08:16:01]Write to MH i2c: E2 08 00 29 36 80 0D 01 02 00 00 00 00 D8 [08:16:01]Write i2c OK [08:16:01]MH_I2C_Read... [08:16:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:01]Read from MH i2c: E2 [08:16:01]MH_I2C_Read... [08:16:01]Read from MH i2c: E2 03 00 [08:16:01]MH_I2C_Read... [08:16:01]Read from MH i2c: E2 03 00 29 36 00 90 00 D3 [08:16:01]RAPDU: 90 00 [08:16:01]wFMCommunicate OK [08:16:01]wFMCommunicate request_size=255 [08:16:01]MH_SAM_APDU [08:16:01]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 C4 33 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 74 00 00 35 04 06 00 [08:16:01]Write to MH i2c: E2 02 01 2A 36 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 C4 33 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 74 00 00 35 04 06 00 00 00 88 [08:16:01]Write i2c OK [08:16:01]MH_I2C_Read... [08:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:01]Read from MH i2c: E2 [08:16:01]MH_I2C_Read... [08:16:01]Read from MH i2c: E2 03 00 [08:16:01]MH_I2C_Read... [08:16:01]Read from MH i2c: E2 03 00 2A 36 00 90 00 D4 [08:16:01]RAPDU: 90 00 [08:16:01]wFMCommunicate OK [08:16:01]wFMCommunicate request_size=11 [08:16:01]MH_SAM_APDU [08:16:01]CAPDU: 80 0D 02 02 06 7C C7 C9 63 D0 BC [08:16:01]Write to MH i2c: E2 0E 00 2B 36 80 0D 02 02 06 00 7C C7 C9 63 D0 BC 00 00 E2 [08:16:01]Write i2c OK [08:16:01]MH_I2C_Read... [08:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:01]Read from MH i2c: E2 [08:16:01]MH_I2C_Read... [08:16:01]Read from MH i2c: E2 03 00 [08:16:01]MH_I2C_Read... [08:16:01]Read from MH i2c: E2 03 00 2B 36 00 90 00 D5 [08:16:01]RAPDU: 90 00 [08:16:01]wFMCommunicate OK [08:16:01]wFMCommunicate request_size=4 [08:16:01]MH_SAM_APDU [08:16:01]CAPDU: 80 0D 03 02 [08:16:01]Write to MH i2c: E2 08 00 2C 36 80 0D 03 02 00 00 00 00 DD [08:16:01]Write i2c OK [08:16:01]MH_I2C_Read... [08:16:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:01]Read from MH i2c: E2 [08:16:01]MH_I2C_Read... [08:16:01]Read from MH i2c: E2 0B 00 [08:16:01]MH_I2C_Read... [08:16:01]Read from MH i2c: E2 0B 00 2C 36 00 47 66 07 20 7A 21 9F 31 90 00 1D [08:16:01]RAPDU: 47 66 07 20 7A 21 9F 31 90 00 [08:16:01]wFMCommunicate OK [08:16:01]SAM_PROTO_SignData done [08:16:01]FM_MakeSignedData done [08:16:01]CreateOFDProtocolMessage [08:16:01]wFMCommunicate request_size=4 [08:16:01]MH_SAM_APDU [08:16:01]CAPDU: 80 11 00 00 [08:16:01]Write to MH i2c: E2 08 00 2D 36 80 11 00 00 00 00 00 00 DD [08:16:01]Write i2c OK [08:16:01]MH_I2C_Read... [08:16:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:01]Read from MH i2c: E2 [08:16:01]MH_I2C_Read... [08:16:01]Read from MH i2c: E2 17 00 [08:16:01]MH_I2C_Read... [08:16:01]Read from MH i2c: E2 17 00 2D 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2C [08:16:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:16:01]wFMCommunicate OK [08:16:01]CreateOFDProtocolMessage done [08:16:01]OFDSenderStorePacket 29751 [08:16:01]StoreOFDPacket docnum=29751 [08:16:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D7 75 08 01 5A 7B 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 C4 33 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 74 00 00 35 04 06 00 7C C7 C9 63 D0 BC 47 66 07 20 7A 21 9F 31 [08:16:01]CheckFolder [08:16:01]dirname=/storage/ofd_packets [08:16:01]CheckFolder done [08:16:01]ProducePacketName [08:16:01]name=ofd_packets/00029751 [08:16:01]NVStorageSaveData ofd_packets/00029751 [08:16:01]File name is /storage/ofd_packets/00029751 [08:16:01]Write 302 bytes [08:16:01]NVStorageSaveData done [08:16:01]OFDSenderStorePacket done [08:16:01]KKMCreateOFDPacket done [08:16:01]NVStorageSaveData kkm_last_timestamp [08:16:01]File name is /storage/kkm_last_timestamp [08:16:01]Write 4 bytes [08:16:01]NVStorageSaveData done [08:16:01]ExternCall_PrintAddStr [08:16:01]wPrintStart [08:16:01]Write to MH i2c: 01 00 00 2E 36 64 [08:16:01]Write i2c OK [08:16:01]MH_I2C_Read... [08:16:01]Read from MH i2c: 01 [08:16:01]MH_I2C_Read... [08:16:01]Read from MH i2c: 01 07 00 [08:16:01]MH_I2C_Read... [08:16:01]Read from MH i2c: 01 07 00 2E 36 00 00 00 00 00 FF 0F 79 [08:16:01]RasterBufferAndPrint [08:16:01]line Счет N : (1)348228 [08:16:01]line ИНН: 02508201610067 [08:16:01]line Контрольно-Кассовый Чек [08:16:01]line ПРОДАЖА [08:16:01]line ТРК (МРК, ГНК) : 31 [08:16:01]line Товар: 2710124130 [08:16:01]line SUPER-92-К-5 [08:16:01]line 4.560 * 65.80 [08:16:01]line = 300.05 [08:16:01]line НДС 12% НСП 1% [08:16:01]line > о реализуемом товаре [08:16:01]line ОКРУГЛЕНИЕ: -0.05 [08:16:01]line ИТОГО: 300.00 [08:16:01]line Внесено: 300.00 [08:16:01]line СДАЧА: 0.00 [08:16:01]line НСП 1% : 2.65 [08:16:01]line НДС 12% : 31.86 [08:16:01]line Наличными: 300.00 [08:16:01]line Безнал.: 0.00 [08:16:01]line Место: АЗС № 108 "Партнер Нефть" [08:16:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:16:01]line СНО: Общий режим [08:16:01]line Чек 25 16.04.2024 08:16 [08:16:01]line Смена: 118 ФФД: 1.0 [08:16:01]line ЗНМ: 0300000027 [08:16:01]line РНМ: 0000138879044617 [08:16:01]line Версия ККМ: 001 [08:16:01]line ФМ: 0000000000963154 [08:16:01]line ФД: 29751 [08:16:01]line ФПД: 137197519098044 [08:16:01]line 1/tax-web-control/client/api/v1/ticket?date=20240416T081604&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29751&fm=137197519098044&tin=02508201610067®Number=0000138879044617&sum=30000 [08:16:02]OFD Sender: Processing packet 29751 [packets to send 8, broken 7] [08:16:02]ProducePacketName [08:16:02]name=ofd_packets/00029751 [08:16:02]OFD Sender: To server: pG, [08:16:02]CommunicateWithHost lk.salyk.kg:30040 [08:16:02]ConnectInit lk.salyk.kg [08:16:02]written 0, free lines is 4095 [08:16:02]Connected sock=10 [08:16:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D7 75 08 01 5A 7B 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 C4 33 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 74 00 00 35 04 06 00 7C C7 C9 63 D0 BC 47 66 07 20 7A 21 9F 31 [08:16:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 50 D2 47 00 8A 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 74 00 00 F4 03 04 00 63 DE 1D 66 B6 04 01 00 00 C4 09 3A E2 05 C9 68 9D [08:16:02]CommunicateWithHost err = 0 [08:16:02]CheckOFDResponse [08:16:02]1017 (14) - 77093643461234 [08:16:02]1041 (16) - 0000000000963154 [08:16:02]1040 (4) - 29751 [08:16:02]1012 (4) - 16.04.2024 02:11 [08:16:02]1206 (1) - 0 [08:16:02]OFD Sender: Remove packet 29751 [08:16:02]ProducePacketName [08:16:02]name=ofd_packets/00029751 [08:16:02]NVStorageDeleteData [08:16:02]Write to MH i2c: 01 00 00 58 36 8E [08:16:02]Write i2c OK [08:16:02]MH_I2C_Read... [08:16:02]Read from MH i2c: 01 [08:16:02]MH_I2C_Read... [08:16:02]Read from MH i2c: 01 07 00 [08:16:02]MH_I2C_Read... [08:16:02]Read from MH i2c: 01 07 00 58 36 00 00 00 00 00 C1 0C 62 [08:16:02]RasterBufferAndPrint [08:16:02]line [08:16:02]line [08:16:02]line [08:16:02]line [08:16:02]line [08:16:02]written 0, free lines is 3270 [08:16:02]MH_Cut [08:16:02]Write to MH i2c: D1 01 00 5F 36 01 67 [08:16:02]Write i2c OK [08:16:02]MH_I2C_Read... [08:16:02]Read from MH i2c: D1 [08:16:02]MH_I2C_Read... [08:16:02]Read from MH i2c: D1 01 00 [08:16:02]MH_I2C_Read... [08:16:02]Read from MH i2c: D1 01 00 5F 36 00 66 [08:16:02]Write to MH i2c: 01 00 00 60 36 96 [08:16:02]Write i2c OK [08:16:02]MH_I2C_Read... [08:16:03]OFD Sender: No OFD packet to send [08:16:03]*** Cut start [08:16:03]*** Partial cut [08:16:03]*** CUTSNS_PIN = 1 [08:16:03]*** CUTSNS_PIN = 0 [08:16:03]*** Brake cut motor [08:16:04]Read from MH i2c: 01 [08:16:04]MH_I2C_Read... [08:16:04]*** Stop cut motor [08:16:04]*** Cut end [08:16:04]Read from MH i2c: 01 07 00 [08:16:04]MH_I2C_Read... [08:16:04]Read from MH i2c: 01 07 00 60 36 00 00 00 00 00 FF 0F AB [08:16:04]process_action close_receipt done [08:16:04]requested_data is exist [08:16:04]produce_requested_data [08:16:04]requested_item fm.sn is exist - process it [08:16:04]wFMCommunicate request_size=4 [08:16:04]MH_SAM_APDU [08:16:04]CAPDU: 80 11 00 00 [08:16:04]Write to MH i2c: E2 08 00 61 36 80 11 00 00 00 00 00 00 11 [08:16:04]Write i2c OK [08:16:04]MH_I2C_Read... [08:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:04]Read from MH i2c: E2 [08:16:04]MH_I2C_Read... [08:16:04]Read from MH i2c: E2 17 00 [08:16:04]MH_I2C_Read... [08:16:04]Read from MH i2c: E2 17 00 61 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 60 [08:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:16:04]wFMCommunicate OK [08:16:04]requested_item fd.num is exist - process it [08:16:04]SAM_PROTO_GetFieldsCounters [08:16:04]wFMCommunicate request_size=4 [08:16:04]MH_SAM_APDU [08:16:04]CAPDU: 80 13 00 00 [08:16:04]Write to MH i2c: E2 08 00 62 36 80 13 00 00 00 00 00 00 14 [08:16:04]Write i2c OK [08:16:04]MH_I2C_Read... [08:16:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:04]Read from MH i2c: E2 [08:16:04]MH_I2C_Read... [08:16:04]Read from MH i2c: E2 62 00 [08:16:04]MH_I2C_Read... [08:16:04]Read from MH i2c: E2 62 00 62 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 37 74 00 00 0E 04 04 00 76 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 BE [08:16:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 37 74 00 00 0E 04 04 00 76 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 [08:16:04]wFMCommunicate OK [08:16:04]SAM_PROTO_GetFieldsCounters done [08:16:04]requested_item shift.num is exist - process it [08:16:04]requested_item shift.opened is exist - process it [08:16:04]req_shift_opened [08:16:04]FM_GetShiftState [08:16:04]SAM_PROTO_GetShiftState [08:16:04]wFMCommunicate request_size=4 [08:16:04]MH_SAM_APDU [08:16:04]CAPDU: 80 13 01 00 [08:16:04]Write to MH i2c: E2 08 00 63 36 80 13 01 00 00 00 00 00 16 [08:16:04]Write i2c OK [08:16:04]MH_I2C_Read... [08:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:04]Read from MH i2c: E2 [08:16:04]MH_I2C_Read... [08:16:04]Read from MH i2c: E2 0E 00 [08:16:04]MH_I2C_Read... [08:16:04]Read from MH i2c: E2 0E 00 63 36 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 C4 [08:16:04]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:16:04]wFMCommunicate OK [08:16:04]SAM_PROTO_GetShiftState done [08:16:04]FM_GetShiftState done [08:16:04]req_shift_opened done [08:16:04]requested_item shift.open_date is exist - process it [08:16:04]req_shift_open_date [08:16:04]req_shift_open_date done [08:16:04]produce_requested_data done [08:16:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29751,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:16:04]process_action_free close_receipt [08:16:04]json_value_free [08:16:04]json_value_free done [08:16:04]process_json_proto returns [08:16:04]Send response to host [08:16:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29751,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:16:04]free response buf [08:16:04]execute_script done [08:16:04]execute_script returns [08:16:04]free content buf [08:16:04]Sock 7.Close socket [08:16:04]Sock 7.Thread stoped [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:16]accept exits with 9 [08:18:16]New connection [08:18:16]New thread 3067108708 created [08:18:16]Thread 3066965348 joined [08:18:16]Waiting for new connection... [08:18:16] Sock 9.Parse request [08:18:16]Sock 9.Check first char [08:18:16]Sock 9.First char is OK [08:18:16]request: POST /json_proto HTTP/1.0 [08:18:16]Method: POST [08:18:16]URL: /json_proto [08:18:16]Method is POST - this is cgi request [08:18:16]url: /json_proto [08:18:16]query_string will be loaded in cgi processing [08:18:16]execute_cgi json_proto POST (null) [08:18:16]execute_cgi path=json_proto method=POST [08:18:16]POST find Content-Length [08:18:16]Host: 172.17.33.3:8080 [08:18:16]Content-Length: 820 [08:18:16]Content-Type: application/json [08:18:16] [08:18:16]POST finish read [08:18:16]Found Content-Length = 820 [08:18:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 14.980, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:16]execute_script... [08:18:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 14.980, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:16]POST & json_proto [08:18:16]process_json_proto [08:18:16]json parsed OK: [08:18:16]protocol is kg_v1.0 [08:18:16]action value=close_receipt [08:18:16]process_action close_receipt [08:18:16]cmd_close_receipt [08:18:16]MH_GetDate [08:18:16]Write to MH i2c: F0 00 00 64 36 89 [08:18:16]Write i2c OK [08:18:16]MH_I2C_Read... [08:18:16]Read from MH i2c: F0 [08:18:16]MH_I2C_Read... [08:18:16]Read from MH i2c: F0 09 00 [08:18:16]MH_I2C_Read... [08:18:16]Read from MH i2c: F0 09 00 64 36 00 4D 34 1E 66 23 5B 8F 65 09 [08:18:16]GetLastDocTimeStamp 1713255364 [08:18:16]current date 1713255501 [08:18:16]FM_GetShiftState [08:18:16]SAM_PROTO_GetShiftState [08:18:16]wFMCommunicate request_size=4 [08:18:16]MH_SAM_APDU [08:18:16]CAPDU: 80 13 01 00 [08:18:16]Write to MH i2c: E2 08 00 65 36 80 13 01 00 00 00 00 00 18 [08:18:16]Write i2c OK [08:18:16]MH_I2C_Read... [08:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:16]Read from MH i2c: E2 [08:18:16]MH_I2C_Read... [08:18:16]Read from MH i2c: E2 0E 00 [08:18:16]MH_I2C_Read... [08:18:16]Read from MH i2c: E2 0E 00 65 36 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 C6 [08:18:16]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:18:16]wFMCommunicate OK [08:18:16]SAM_PROTO_GetShiftState done [08:18:16]FM_GetShiftState done [08:18:16]opened in 1713226843 [08:18:16]opened+sec_in_day 1713313243 [08:18:16]quantity*price = 50033 [08:18:16]sum+1 = 50034 [08:18:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 26 16.04.2024 08:18 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29752 ФПД: 54600237075460 1/tax-web-control/client/api/v1/ticket?date=20240416T081821&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29752&fm=54600237075460&tin=02508201610067®Number=0000138879044617&sum=50033 [08:18:18]StoreToDocumentArchive [08:18:18]shift 118 fd 29752 [08:18:18]save to /storage/0118/doc_00029752 [08:18:18]save last doc name /storage/0118/doc_00029752 to /storage/kkm_last_doc_name [08:18:18]save OK [08:18:18]Clear old archive folders... [08:18:18]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:18:18]tlvbuf is 01A24FC0 [08:18:18]SAM_PROTO_ClearQueue [08:18:18]wFMCommunicate request_size=4 [08:18:18]MH_SAM_APDU [08:18:18]CAPDU: 80 09 00 00 [08:18:18]Write to MH i2c: E2 08 00 72 36 80 09 00 00 00 00 00 00 1A [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:18]Read from MH i2c: E2 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 72 36 00 90 00 1C [08:18:18]RAPDU: 90 00 [08:18:18]wFMCommunicate OK [08:18:18]SAM_PROTO_ClearQueue done [08:18:18]KKMCreateOFDPacket [08:18:18]OFDProtocolAddRootSTLVToBuf [08:18:18]FM_MakeSignedData [08:18:18]FM_MakeSignedData [08:18:18]SAM_PROTO_SignData [08:18:18]wFMCommunicate request_size=4 [08:18:18]MH_SAM_APDU [08:18:18]CAPDU: 80 0D 01 02 [08:18:18]Write to MH i2c: E2 08 00 73 36 80 0D 01 02 00 00 00 00 22 [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:18]OFD Sender: No OFD packet to send [08:18:18]Read from MH i2c: E2 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 73 36 00 90 00 1D [08:18:18]RAPDU: 90 00 [08:18:18]wFMCommunicate OK [08:18:18]wFMCommunicate request_size=255 [08:18:18]MH_SAM_APDU [08:18:18]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 4D 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 74 00 00 35 04 06 00 31 A8 [08:18:18]Write to MH i2c: E2 02 01 74 36 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 4D 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 74 00 00 35 04 06 00 31 A8 00 00 17 [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:18]Read from MH i2c: E2 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 74 36 00 90 00 1E [08:18:18]RAPDU: 90 00 [08:18:18]wFMCommunicate OK [08:18:18]wFMCommunicate request_size=9 [08:18:18]MH_SAM_APDU [08:18:18]CAPDU: 80 0D 02 02 04 9B BC 4C 04 [08:18:18]Write to MH i2c: E2 0C 00 75 36 80 0D 02 02 04 00 9B BC 4C 04 00 00 D4 [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:18]Read from MH i2c: E2 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 03 00 75 36 00 90 00 1F [08:18:18]RAPDU: 90 00 [08:18:18]wFMCommunicate OK [08:18:18]wFMCommunicate request_size=4 [08:18:18]MH_SAM_APDU [08:18:18]CAPDU: 80 0D 03 02 [08:18:18]Write to MH i2c: E2 08 00 76 36 80 0D 03 02 00 00 00 00 27 [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:18]Read from MH i2c: E2 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 0B 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 0B 00 76 36 00 B1 A5 9A 75 7E 2E 2D 1B 90 00 81 [08:18:18]RAPDU: B1 A5 9A 75 7E 2E 2D 1B 90 00 [08:18:18]wFMCommunicate OK [08:18:18]SAM_PROTO_SignData done [08:18:18]FM_MakeSignedData done [08:18:18]CreateOFDProtocolMessage [08:18:18]wFMCommunicate request_size=4 [08:18:18]MH_SAM_APDU [08:18:18]CAPDU: 80 11 00 00 [08:18:18]Write to MH i2c: E2 08 00 77 36 80 11 00 00 00 00 00 00 27 [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:18]Read from MH i2c: E2 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 17 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 17 00 77 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 76 [08:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:18:18]wFMCommunicate OK [08:18:18]CreateOFDProtocolMessage done [08:18:18]OFDSenderStorePacket 29752 [08:18:18]StoreOFDPacket docnum=29752 [08:18:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 E4 DF 06 01 0C 49 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 4D 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 74 00 00 35 04 06 00 31 A8 9B BC 4C 04 B1 A5 9A 75 7E 2E 2D 1B [08:18:18]CheckFolder [08:18:18]dirname=/storage/ofd_packets [08:18:18]CheckFolder done [08:18:18]ProducePacketName [08:18:18]name=ofd_packets/00029752 [08:18:18]NVStorageSaveData ofd_packets/00029752 [08:18:18]File name is /storage/ofd_packets/00029752 [08:18:18]Write 300 bytes [08:18:18]NVStorageSaveData done [08:18:18]OFDSenderStorePacket done [08:18:18]KKMCreateOFDPacket done [08:18:18]NVStorageSaveData kkm_last_timestamp [08:18:18]File name is /storage/kkm_last_timestamp [08:18:18]Write 4 bytes [08:18:18]NVStorageSaveData done [08:18:18]ExternCall_PrintAddStr [08:18:18]wPrintStart [08:18:18]Write to MH i2c: 01 00 00 78 36 AE [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: 01 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: 01 07 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: 01 07 00 78 36 00 00 00 00 00 FF 0F C3 [08:18:18]RasterBufferAndPrint [08:18:18]line Счет N : (1)348229 [08:18:18]line ИНН: 02508201610067 [08:18:18]line Контрольно-Кассовый Чек [08:18:18]line ПРОДАЖА [08:18:18]line ТРК (МРК, ГНК) : 71 [08:18:18]line Товар: 2711129700 [08:18:18]line ГАЗ-К-5 [08:18:18]line 14.980 * 33.40 [08:18:18]line = 500.33 [08:18:18]line НДС 12% НСП 1% [08:18:18]line > о реализуемом товаре [08:18:18]line ИТОГО: 500.33 [08:18:18]line НСП 1% : 4.43 [08:18:18]line НДС 12% : 53.13 [08:18:18]line Наличными: 0.00 [08:18:18]line Безнал.: 500.33 [08:18:18]line Место: АЗС № 108 "Партнер Нефть" [08:18:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:18:18]line СНО: Общий режим [08:18:18]line Чек 26 16.04.2024 08:18 [08:18:18]line Смена: 118 ФФД: 1.0 [08:18:18]line ЗНМ: 0300000027 [08:18:18]line РНМ: 0000138879044617 [08:18:18]line Версия ККМ: 001 [08:18:18]line Платежная система: Бакай Банк [08:18:18]line ФМ: 0000000000963154 [08:18:18]line ФД: 29752 [08:18:18]line ФПД: 54600237075460 [08:18:18]line 1/tax-web-control/client/api/v1/ticket?date=20240416T081821&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29752&fm=54600237075460&tin=02508201610067®Number=0000138879044617&sum=50033 [08:18:18]OFD Sender: Processing packet 29752 [packets to send 8, broken 7] [08:18:18]ProducePacketName [08:18:18]name=ofd_packets/00029752 [08:18:18]OFD Sender: To server: pG, [08:18:18]CommunicateWithHost lk.salyk.kg:30040 [08:18:18]ConnectInit lk.salyk.kg [08:18:18]written 0, free lines is 4095 [08:18:18]Connected sock=10 [08:18:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 E4 DF 06 01 0C 49 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 4D 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 74 00 00 35 04 06 00 31 A8 9B BC 4C 04 B1 A5 9A 75 7E 2E 2D 1B [08:18:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A4 94 47 00 7B EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 74 00 00 F4 03 04 00 EC DE 1D 66 B6 04 01 00 00 66 B0 D9 85 A5 5A 27 9F [08:18:19]CommunicateWithHost err = 0 [08:18:19]CheckOFDResponse [08:18:19]1017 (14) - 77093643461234 [08:18:19]1041 (16) - 0000000000963154 [08:18:19]1040 (4) - 29752 [08:18:19]1012 (4) - 16.04.2024 02:14 [08:18:19]1206 (1) - 0 [08:18:19]OFD Sender: Remove packet 29752 [08:18:19]ProducePacketName [08:18:19]name=ofd_packets/00029752 [08:18:19]NVStorageDeleteData [08:18:19]Write to MH i2c: 01 00 00 A1 36 D7 [08:18:19]Write i2c OK [08:18:19]MH_I2C_Read... [08:18:19]Read from MH i2c: 01 [08:18:19]MH_I2C_Read... [08:18:19]Read from MH i2c: 01 07 00 [08:18:19]MH_I2C_Read... [08:18:19]Read from MH i2c: 01 07 00 A1 36 00 00 00 00 00 D0 0C BA [08:18:19]RasterBufferAndPrint [08:18:19]line [08:18:19]line [08:18:19]line [08:18:19]line [08:18:19]line [08:18:19]written 0, free lines is 3286 [08:18:19]MH_Cut [08:18:19]Write to MH i2c: D1 01 00 A8 36 01 B0 [08:18:19]Write i2c OK [08:18:19]MH_I2C_Read... [08:18:19]Read from MH i2c: D1 [08:18:19]MH_I2C_Read... [08:18:19]Read from MH i2c: D1 01 00 [08:18:19]MH_I2C_Read... [08:18:19]Read from MH i2c: D1 01 00 A8 36 00 AF [08:18:19]Write to MH i2c: 01 00 00 A9 36 DF [08:18:19]Write i2c OK [08:18:19]MH_I2C_Read... [08:18:19]OFD Sender: No OFD packet to send [08:18:20]*** Cut start [08:18:20]*** Partial cut [08:18:20]*** CUTSNS_PIN = 1 [08:18:20]*** CUTSNS_PIN = 0 [08:18:20]*** Brake cut motor [08:18:20]Read from MH i2c: 01 [08:18:20]MH_I2C_Read... [08:18:20]*** Stop cut motor [08:18:20]*** Cut end [08:18:20]Read from MH i2c: 01 07 00 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: 01 07 00 A9 36 00 00 00 00 00 FF 0F F4 [08:18:20]process_action close_receipt done [08:18:20]requested_data is exist [08:18:20]produce_requested_data [08:18:20]requested_item fm.sn is exist - process it [08:18:20]wFMCommunicate request_size=4 [08:18:20]MH_SAM_APDU [08:18:20]CAPDU: 80 11 00 00 [08:18:20]Write to MH i2c: E2 08 00 AA 36 80 11 00 00 00 00 00 00 5A [08:18:20]Write i2c OK [08:18:20]MH_I2C_Read... [08:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:20]Read from MH i2c: E2 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 17 00 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 17 00 AA 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A9 [08:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:18:20]wFMCommunicate OK [08:18:20]requested_item fd.num is exist - process it [08:18:20]SAM_PROTO_GetFieldsCounters [08:18:20]wFMCommunicate request_size=4 [08:18:20]MH_SAM_APDU [08:18:20]CAPDU: 80 13 00 00 [08:18:20]Write to MH i2c: E2 08 00 AB 36 80 13 00 00 00 00 00 00 5D [08:18:20]Write i2c OK [08:18:20]MH_I2C_Read... [08:18:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:20]Read from MH i2c: E2 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 62 00 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 62 00 AB 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 38 74 00 00 0E 04 04 00 76 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 0B [08:18:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 38 74 00 00 0E 04 04 00 76 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 [08:18:20]wFMCommunicate OK [08:18:20]SAM_PROTO_GetFieldsCounters done [08:18:20]requested_item shift.num is exist - process it [08:18:20]requested_item shift.opened is exist - process it [08:18:21]req_shift_opened [08:18:21]FM_GetShiftState [08:18:21]SAM_PROTO_GetShiftState [08:18:21]wFMCommunicate request_size=4 [08:18:21]MH_SAM_APDU [08:18:21]CAPDU: 80 13 01 00 [08:18:21]Write to MH i2c: E2 08 00 AC 36 80 13 01 00 00 00 00 00 5F [08:18:21]Write i2c OK [08:18:21]MH_I2C_Read... [08:18:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:21]Read from MH i2c: E2 [08:18:21]MH_I2C_Read... [08:18:21]Read from MH i2c: E2 0E 00 [08:18:21]MH_I2C_Read... [08:18:21]Read from MH i2c: E2 0E 00 AC 36 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 0D [08:18:21]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:18:21]wFMCommunicate OK [08:18:21]SAM_PROTO_GetShiftState done [08:18:21]FM_GetShiftState done [08:18:21]req_shift_opened done [08:18:21]requested_item shift.open_date is exist - process it [08:18:21]req_shift_open_date [08:18:21]req_shift_open_date done [08:18:21]produce_requested_data done [08:18:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29752,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:18:21]process_action_free close_receipt [08:18:21]json_value_free [08:18:21]json_value_free done [08:18:21]process_json_proto returns [08:18:21]Send response to host [08:18:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29752,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:18:21]free response buf [08:18:21]execute_script done [08:18:21]execute_script returns [08:18:21]free content buf [08:18:21]Sock 9.Close socket [08:18:21]Sock 9.Thread stoped [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:50]accept exits with 7 [08:18:50]New connection [08:18:50]New thread 3066965348 created [08:18:50]Thread 3067108708 joined [08:18:50]Waiting for new connection... [08:18:50] Sock 7.Parse request [08:18:50]Sock 7.Check first char [08:18:50]Sock 7.First char is OK [08:18:50]request: POST /json_proto HTTP/1.0 [08:18:50]Method: POST [08:18:50]URL: /json_proto [08:18:50]Method is POST - this is cgi request [08:18:50]url: /json_proto [08:18:50]query_string will be loaded in cgi processing [08:18:50]execute_cgi json_proto POST (null) [08:18:50]execute_cgi path=json_proto method=POST [08:18:50]POST find Content-Length [08:18:50]Host: 172.17.33.3:8080 [08:18:50]Content-Length: 679 [08:18:50]Content-Type: application/json [08:18:50] [08:18:50]POST finish read [08:18:50]Found Content-Length = 679 [08:18:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:50]execute_script... [08:18:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:50]POST & json_proto [08:18:50]process_json_proto [08:18:50]json parsed OK: [08:18:50]protocol is kg_v1.0 [08:18:50]action value=close_receipt [08:18:50]process_action close_receipt [08:18:50]cmd_close_receipt [08:18:50]MH_GetDate [08:18:50]Write to MH i2c: F0 00 00 AD 36 D2 [08:18:50]Write i2c OK [08:18:50]MH_I2C_Read... [08:18:50]Read from MH i2c: F0 [08:18:50]MH_I2C_Read... [08:18:50]Read from MH i2c: F0 09 00 [08:18:50]MH_I2C_Read... [08:18:50]Read from MH i2c: F0 09 00 AD 36 00 6E 34 1E 66 23 5B 8F 65 73 [08:18:50]GetLastDocTimeStamp 1713255501 [08:18:50]current date 1713255534 [08:18:50]FM_GetShiftState [08:18:50]SAM_PROTO_GetShiftState [08:18:50]wFMCommunicate request_size=4 [08:18:50]MH_SAM_APDU [08:18:50]CAPDU: 80 13 01 00 [08:18:50]Write to MH i2c: E2 08 00 AE 36 80 13 01 00 00 00 00 00 61 [08:18:50]Write i2c OK [08:18:50]MH_I2C_Read... [08:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:50]Read from MH i2c: E2 [08:18:50]MH_I2C_Read... [08:18:50]Read from MH i2c: E2 0E 00 [08:18:50]MH_I2C_Read... [08:18:50]Read from MH i2c: E2 0E 00 AE 36 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 0F [08:18:50]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:18:50]wFMCommunicate OK [08:18:50]SAM_PROTO_GetShiftState done [08:18:50]FM_GetShiftState done [08:18:50]opened in 1713226843 [08:18:50]opened+sec_in_day 1713313243 [08:18:50]quantity*price = 150028 [08:18:50]sum+1 = 150029 [08:18:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 27 16.04.2024 08:18 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29753 ФПД: 257667178017005 1/tax-web-control/client/api/v1/ticket?date=20240416T081855&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29753&fm=257667178017005&tin=02508201610067®Number=0000138879044617&sum=150000 [08:18:51]StoreToDocumentArchive [08:18:51]shift 118 fd 29753 [08:18:51]save to /storage/0118/doc_00029753 [08:18:51]save last doc name /storage/0118/doc_00029753 to /storage/kkm_last_doc_name [08:18:51]save OK [08:18:51]Clear old archive folders... [08:18:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:18:51]tlvbuf is B6F004A0 [08:18:51]SAM_PROTO_ClearQueue [08:18:51]wFMCommunicate request_size=4 [08:18:51]MH_SAM_APDU [08:18:51]CAPDU: 80 09 00 00 [08:18:51]Write to MH i2c: E2 08 00 BB 36 80 09 00 00 00 00 00 00 63 [08:18:51]Write i2c OK [08:18:51]MH_I2C_Read... [08:18:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:51]Read from MH i2c: E2 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: E2 03 00 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: E2 03 00 BB 36 00 90 00 65 [08:18:51]RAPDU: 90 00 [08:18:51]wFMCommunicate OK [08:18:51]SAM_PROTO_ClearQueue done [08:18:51]KKMCreateOFDPacket [08:18:51]OFDProtocolAddRootSTLVToBuf [08:18:51]FM_MakeSignedData [08:18:51]FM_MakeSignedData [08:18:51]SAM_PROTO_SignData [08:18:51]wFMCommunicate request_size=4 [08:18:51]MH_SAM_APDU [08:18:51]CAPDU: 80 0D 01 02 [08:18:51]Write to MH i2c: E2 08 00 BC 36 80 0D 01 02 00 00 00 00 6B [08:18:51]Write i2c OK [08:18:51]MH_I2C_Read... [08:18:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:51]Read from MH i2c: E2 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: E2 03 00 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: E2 03 00 BC 36 00 90 00 66 [08:18:51]RAPDU: 90 00 [08:18:51]wFMCommunicate OK [08:18:51]wFMCommunicate request_size=255 [08:18:51]MH_SAM_APDU [08:18:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 6F 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 74 00 00 35 04 06 00 EA 58 D0 9D [08:18:51]Write to MH i2c: E2 02 01 BD 36 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 6F 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 74 00 00 35 04 06 00 EA 58 D0 9D 00 00 C0 [08:18:51]Write i2c OK [08:18:51]MH_I2C_Read... [08:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:51]Read from MH i2c: E2 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: E2 03 00 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: E2 03 00 BD 36 00 90 00 67 [08:18:51]RAPDU: 90 00 [08:18:51]wFMCommunicate OK [08:18:51]wFMCommunicate request_size=7 [08:18:51]MH_SAM_APDU [08:18:51]CAPDU: 80 0D 02 02 02 B0 ED [08:18:51]Write to MH i2c: E2 0A 00 BE 36 80 0D 02 02 02 00 B0 ED 00 00 0F [08:18:51]Write i2c OK [08:18:51]MH_I2C_Read... [08:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:51]Read from MH i2c: E2 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: E2 03 00 [08:18:51]MH_I2C_Read... [08:18:51]Read from MH i2c: E2 03 00 BE 36 00 90 00 68 [08:18:51]RAPDU: 90 00 [08:18:51]wFMCommunicate OK [08:18:51]wFMCommunicate request_size=4 [08:18:51]MH_SAM_APDU [08:18:51]CAPDU: 80 0D 03 02 [08:18:51]Write to MH i2c: E2 08 00 BF 36 80 0D 03 02 00 00 00 00 70 [08:18:51]Write i2c OK [08:18:51]MH_I2C_Read... [08:18:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:52]Read from MH i2c: E2 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 0B 00 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 0B 00 BF 36 00 36 D3 69 63 7D 00 B2 5C 90 00 D1 [08:18:52]RAPDU: 36 D3 69 63 7D 00 B2 5C 90 00 [08:18:52]wFMCommunicate OK [08:18:52]SAM_PROTO_SignData done [08:18:52]FM_MakeSignedData done [08:18:52]CreateOFDProtocolMessage [08:18:52]wFMCommunicate request_size=4 [08:18:52]MH_SAM_APDU [08:18:52]CAPDU: 80 11 00 00 [08:18:52]Write to MH i2c: E2 08 00 C0 36 80 11 00 00 00 00 00 00 70 [08:18:52]Write i2c OK [08:18:52]MH_I2C_Read... [08:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:52]Read from MH i2c: E2 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 17 00 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: E2 17 00 C0 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BF [08:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:18:52]wFMCommunicate OK [08:18:52]CreateOFDProtocolMessage done [08:18:52]OFDSenderStorePacket 29753 [08:18:52]StoreOFDPacket docnum=29753 [08:18:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 14 74 04 01 81 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 6F 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 74 00 00 35 04 06 00 EA 58 D0 9D B0 ED 36 D3 69 63 7D 00 B2 5C [08:18:52]CheckFolder [08:18:52]dirname=/storage/ofd_packets [08:18:52]CheckFolder done [08:18:52]ProducePacketName [08:18:52]name=ofd_packets/00029753 [08:18:52]NVStorageSaveData ofd_packets/00029753 [08:18:52]File name is /storage/ofd_packets/00029753 [08:18:52]Write 298 bytes [08:18:52]NVStorageSaveData done [08:18:52]OFDSenderStorePacket done [08:18:52]KKMCreateOFDPacket done [08:18:52]NVStorageSaveData kkm_last_timestamp [08:18:52]File name is /storage/kkm_last_timestamp [08:18:52]Write 4 bytes [08:18:52]NVStorageSaveData done [08:18:52]ExternCall_PrintAddStr [08:18:52]wPrintStart [08:18:52]Write to MH i2c: 01 00 00 C1 36 F7 [08:18:52]Write i2c OK [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: 01 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: 01 07 00 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: 01 07 00 C1 36 00 00 00 00 00 FF 0F 0C [08:18:52]RasterBufferAndPrint [08:18:52]line Счет N : (1)348230 [08:18:52]line ИНН: 02508201610067 [08:18:52]line Контрольно-Кассовый Чек [08:18:52]line ПРОДАЖА [08:18:52]line ТРК (МРК, ГНК) : 11 [08:18:52]line Товар: 2710194210 [08:18:52]line ДТ-К-5 [08:18:52]line 20.580 * 72.90 [08:18:52]line = 1500.28 [08:18:52]line НДС 12% НСП 1% [08:18:52]line > о реализуемом товаре [08:18:52]line ОКРУГЛЕНИЕ: -0.28 [08:18:52]line ИТОГО: 1500.00 [08:18:52]line Внесено: 1500.00 [08:18:52]line СДАЧА: 0.00 [08:18:52]line НСП 1% : 13.28 [08:18:52]line НДС 12% : 159.32 [08:18:52]line Наличными: 1500.00 [08:18:52]line Безнал.: 0.00 [08:18:52]line Место: АЗС № 108 "Партнер Нефть" [08:18:52]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:18:52]line СНО: Общий режим [08:18:52]line Чек 27 16.04.2024 08:18 [08:18:52]line Смена: 118 ФФД: 1.0 [08:18:52]line ЗНМ: 0300000027 [08:18:52]line РНМ: 0000138879044617 [08:18:52]line Версия ККМ: 001 [08:18:52]line ФМ: 0000000000963154 [08:18:52]line ФД: 29753 [08:18:52]line ФПД: 257667178017005 [08:18:52]line 1/tax-web-control/client/api/v1/ticket?date=20240416T081855&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29753&fm=257667178017005&tin=02508201610067®Number=0000138879044617&sum=150000 [08:18:52]OFD Sender: Processing packet 29753 [packets to send 8, broken 7] [08:18:52]ProducePacketName [08:18:52]name=ofd_packets/00029753 [08:18:52]OFD Sender: To server: pG, [08:18:52]CommunicateWithHost lk.salyk.kg:30040 [08:18:52]ConnectInit lk.salyk.kg [08:18:52]written 0, free lines is 4095 [08:18:52]Connected sock=10 [08:18:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 14 74 04 01 81 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 6F 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 74 00 00 35 04 06 00 EA 58 D0 9D B0 ED 36 D3 69 63 7D 00 B2 5C [08:18:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F4 61 47 00 3D 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 39 74 00 00 F4 03 04 00 0D DF 1D 66 B6 04 01 00 00 CE 2F AF 69 69 47 B2 51 [08:18:52]CommunicateWithHost err = 0 [08:18:52]CheckOFDResponse [08:18:52]1017 (14) - 77093643461234 [08:18:52]1041 (16) - 0000000000963154 [08:18:52]1040 (4) - 29753 [08:18:52]1012 (4) - 16.04.2024 02:14 [08:18:52]1206 (1) - 0 [08:18:52]OFD Sender: Remove packet 29753 [08:18:52]ProducePacketName [08:18:52]name=ofd_packets/00029753 [08:18:52]NVStorageDeleteData [08:18:52]Write to MH i2c: 01 00 00 EB 36 21 [08:18:52]Write i2c OK [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: 01 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: 01 07 00 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: 01 07 00 EB 36 00 00 00 00 00 C9 0C FD [08:18:52]RasterBufferAndPrint [08:18:52]line [08:18:52]line [08:18:52]line [08:18:52]line [08:18:52]line [08:18:52]written 0, free lines is 3279 [08:18:52]MH_Cut [08:18:52]Write to MH i2c: D1 01 00 F2 36 01 FA [08:18:52]Write i2c OK [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: D1 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: D1 01 00 [08:18:52]MH_I2C_Read... [08:18:52]Read from MH i2c: D1 01 00 F2 36 00 F9 [08:18:52]Write to MH i2c: 01 00 00 F3 36 29 [08:18:52]Write i2c OK [08:18:52]MH_I2C_Read... [08:18:53]OFD Sender: No OFD packet to send [08:18:53]*** Cut start [08:18:53]*** Partial cut [08:18:53]*** CUTSNS_PIN = 1 [08:18:53]*** CUTSNS_PIN = 0 [08:18:53]*** Brake cut motor [08:18:54]Read from MH i2c: 01 [08:18:54]MH_I2C_Read... [08:18:54]*** Stop cut motor [08:18:54]*** Cut end [08:18:54]Read from MH i2c: 01 07 00 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: 01 07 00 F3 36 00 00 00 00 00 FF 0F 3E [08:18:54]process_action close_receipt done [08:18:54]requested_data is exist [08:18:54]produce_requested_data [08:18:54]requested_item fm.sn is exist - process it [08:18:54]wFMCommunicate request_size=4 [08:18:54]MH_SAM_APDU [08:18:54]CAPDU: 80 11 00 00 [08:18:54]Write to MH i2c: E2 08 00 F4 36 80 11 00 00 00 00 00 00 A4 [08:18:54]Write i2c OK [08:18:54]MH_I2C_Read... [08:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:54]Read from MH i2c: E2 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 17 00 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 17 00 F4 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F3 [08:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:18:54]wFMCommunicate OK [08:18:54]requested_item fd.num is exist - process it [08:18:54]SAM_PROTO_GetFieldsCounters [08:18:54]wFMCommunicate request_size=4 [08:18:54]MH_SAM_APDU [08:18:54]CAPDU: 80 13 00 00 [08:18:54]Write to MH i2c: E2 08 00 F5 36 80 13 00 00 00 00 00 00 A7 [08:18:54]Write i2c OK [08:18:54]MH_I2C_Read... [08:18:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:54]Read from MH i2c: E2 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 62 00 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 62 00 F5 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 39 74 00 00 0E 04 04 00 76 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 59 [08:18:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 39 74 00 00 0E 04 04 00 76 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 [08:18:54]wFMCommunicate OK [08:18:54]SAM_PROTO_GetFieldsCounters done [08:18:54]requested_item shift.num is exist - process it [08:18:54]requested_item shift.opened is exist - process it [08:18:54]req_shift_opened [08:18:54]FM_GetShiftState [08:18:54]SAM_PROTO_GetShiftState [08:18:54]wFMCommunicate request_size=4 [08:18:54]MH_SAM_APDU [08:18:54]CAPDU: 80 13 01 00 [08:18:54]Write to MH i2c: E2 08 00 F6 36 80 13 01 00 00 00 00 00 A9 [08:18:54]Write i2c OK [08:18:54]MH_I2C_Read... [08:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:54]Read from MH i2c: E2 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 0E 00 [08:18:54]MH_I2C_Read... [08:18:54]Read from MH i2c: E2 0E 00 F6 36 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 57 [08:18:54]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:18:54]wFMCommunicate OK [08:18:54]SAM_PROTO_GetShiftState done [08:18:54]FM_GetShiftState done [08:18:54]req_shift_opened done [08:18:54]requested_item shift.open_date is exist - process it [08:18:54]req_shift_open_date [08:18:54]req_shift_open_date done [08:18:54]produce_requested_data done [08:18:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29753,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:18:54]process_action_free close_receipt [08:18:54]json_value_free [08:18:54]json_value_free done [08:18:54]process_json_proto returns [08:18:54]Send response to host [08:18:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29753,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:18:54]free response buf [08:18:54]execute_script done [08:18:54]execute_script returns [08:18:54]free content buf [08:18:54]Sock 7.Close socket [08:18:54]Sock 7.Thread stoped [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:07]accept exits with 9 [08:19:07]New connection [08:19:07]New thread 3067108708 created [08:19:07]Thread 3066965348 joined [08:19:07]Waiting for new connection... [08:19:07] Sock 9.Parse request [08:19:07]Sock 9.Check first char [08:19:07]Sock 9.First char is OK [08:19:07]request: POST /json_proto HTTP/1.0 [08:19:07]Method: POST [08:19:07]URL: /json_proto [08:19:07]Method is POST - this is cgi request [08:19:07]url: /json_proto [08:19:07]query_string will be loaded in cgi processing [08:19:07]execute_cgi json_proto POST (null) [08:19:07]execute_cgi path=json_proto method=POST [08:19:07]POST find Content-Length [08:19:07]Host: 172.17.33.3:8080 [08:19:07]Content-Length: 677 [08:19:07]Content-Type: application/json [08:19:07] [08:19:07]POST finish read [08:19:07]Found Content-Length = 677 [08:19:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:07]execute_script... [08:19:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:07]POST & json_proto [08:19:07]process_json_proto [08:19:07]json parsed OK: [08:19:07]protocol is kg_v1.0 [08:19:07]action value=close_receipt [08:19:07]process_action close_receipt [08:19:07]cmd_close_receipt [08:19:07]MH_GetDate [08:19:07]Write to MH i2c: F0 00 00 F7 36 1C [08:19:07]Write i2c OK [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: F0 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: F0 09 00 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: F0 09 00 F7 36 00 7F 34 1E 66 23 5B 8F 65 CE [08:19:07]GetLastDocTimeStamp 1713255535 [08:19:07]current date 1713255551 [08:19:07]FM_GetShiftState [08:19:07]SAM_PROTO_GetShiftState [08:19:07]wFMCommunicate request_size=4 [08:19:07]MH_SAM_APDU [08:19:07]CAPDU: 80 13 01 00 [08:19:07]Write to MH i2c: E2 08 00 F8 36 80 13 01 00 00 00 00 00 AB [08:19:07]Write i2c OK [08:19:07]MH_I2C_Read... [08:19:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:07]Read from MH i2c: E2 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: E2 0E 00 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: E2 0E 00 F8 36 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 59 [08:19:07]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:19:07]wFMCommunicate OK [08:19:07]SAM_PROTO_GetShiftState done [08:19:07]FM_GetShiftState done [08:19:07]opened in 1713226843 [08:19:07]opened+sec_in_day 1713313243 [08:19:07]quantity*price = 40046 [08:19:07]sum+1 = 40047 [08:19:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 28 16.04.2024 08:19 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29754 ФПД: 212299953654367 1/tax-web-control/client/api/v1/ticket?date=20240416T081912&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29754&fm=212299953654367&tin=02508201610067®Number=0000138879044617&sum=40000 [08:19:08]StoreToDocumentArchive [08:19:08]shift 118 fd 29754 [08:19:08]save to /storage/0118/doc_00029754 [08:19:08]save last doc name /storage/0118/doc_00029754 to /storage/kkm_last_doc_name [08:19:08]save OK [08:19:08]Clear old archive folders... [08:19:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:08]tlvbuf is 01ABDAB0 [08:19:08]SAM_PROTO_ClearQueue [08:19:08]wFMCommunicate request_size=4 [08:19:08]MH_SAM_APDU [08:19:08]CAPDU: 80 09 00 00 [08:19:08]Write to MH i2c: E2 08 00 05 37 80 09 00 00 00 00 00 00 AE [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:08]Read from MH i2c: E2 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 05 37 00 90 00 B0 [08:19:08]RAPDU: 90 00 [08:19:08]wFMCommunicate OK [08:19:08]SAM_PROTO_ClearQueue done [08:19:08]KKMCreateOFDPacket [08:19:08]OFDProtocolAddRootSTLVToBuf [08:19:08]FM_MakeSignedData [08:19:08]FM_MakeSignedData [08:19:08]SAM_PROTO_SignData [08:19:08]wFMCommunicate request_size=4 [08:19:08]MH_SAM_APDU [08:19:08]CAPDU: 80 0D 01 02 [08:19:08]Write to MH i2c: E2 08 00 06 37 80 0D 01 02 00 00 00 00 B6 [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:08]Read from MH i2c: E2 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 06 37 00 90 00 B1 [08:19:08]RAPDU: 90 00 [08:19:08]wFMCommunicate OK [08:19:08]wFMCommunicate request_size=255 [08:19:08]MH_SAM_APDU [08:19:08]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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 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 1C 00 00 00 F4 03 04 00 80 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 74 00 00 35 04 06 00 C1 [08:19:08]Write to MH i2c: E2 02 01 07 37 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 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 1C 00 00 00 F4 03 04 00 80 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 74 00 00 35 04 06 00 C1 00 00 8D [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:08]Read from MH i2c: E2 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 07 37 00 90 00 B2 [08:19:08]RAPDU: 90 00 [08:19:08]wFMCommunicate OK [08:19:08]wFMCommunicate request_size=10 [08:19:08]MH_SAM_APDU [08:19:08]CAPDU: 80 0D 02 02 05 15 EF 52 CA 5F [08:19:08]Write to MH i2c: E2 0D 00 08 37 80 0D 02 02 05 00 15 EF 52 CA 5F 00 00 42 [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:08]Read from MH i2c: E2 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 08 37 00 90 00 B3 [08:19:08]RAPDU: 90 00 [08:19:08]wFMCommunicate OK [08:19:08]wFMCommunicate request_size=4 [08:19:08]MH_SAM_APDU [08:19:08]CAPDU: 80 0D 03 02 [08:19:08]Write to MH i2c: E2 08 00 09 37 80 0D 03 02 00 00 00 00 BB [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:09]Read from MH i2c: E2 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 0B 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 0B 00 09 37 00 69 82 0E D5 90 90 5D 5C 90 00 63 [08:19:09]RAPDU: 69 82 0E D5 90 90 5D 5C 90 00 [08:19:09]wFMCommunicate OK [08:19:09]SAM_PROTO_SignData done [08:19:09]FM_MakeSignedData done [08:19:09]CreateOFDProtocolMessage [08:19:09]wFMCommunicate request_size=4 [08:19:09]MH_SAM_APDU [08:19:09]CAPDU: 80 11 00 00 [08:19:09]Write to MH i2c: E2 08 00 0A 37 80 11 00 00 00 00 00 00 BB [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:09]Read from MH i2c: E2 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 17 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 17 00 0A 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0A [08:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:19:09]wFMCommunicate OK [08:19:09]CreateOFDProtocolMessage done [08:19:09]OFDSenderStorePacket 29754 [08:19:09]StoreOFDPacket docnum=29754 [08:19:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FB 45 07 01 59 DF 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 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 1C 00 00 00 F4 03 04 00 80 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 74 00 00 35 04 06 00 C1 15 EF 52 CA 5F 69 82 0E D5 90 90 5D 5C [08:19:09]CheckFolder [08:19:09]dirname=/storage/ofd_packets [08:19:09]CheckFolder done [08:19:09]ProducePacketName [08:19:09]name=ofd_packets/00029754 [08:19:09]NVStorageSaveData ofd_packets/00029754 [08:19:09]File name is /storage/ofd_packets/00029754 [08:19:09]Write 301 bytes [08:19:09]NVStorageSaveData done [08:19:09]OFDSenderStorePacket done [08:19:09]KKMCreateOFDPacket done [08:19:09]NVStorageSaveData kkm_last_timestamp [08:19:09]File name is /storage/kkm_last_timestamp [08:19:09]Write 4 bytes [08:19:09]NVStorageSaveData done [08:19:09]ExternCall_PrintAddStr [08:19:09]wPrintStart [08:19:09]Write to MH i2c: 01 00 00 0B 37 42 [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 07 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 07 00 0B 37 00 00 00 00 00 FF 0F 57 [08:19:09]RasterBufferAndPrint [08:19:09]line Счет N : (1)348231 [08:19:09]line ИНН: 02508201610067 [08:19:09]line Контрольно-Кассовый Чек [08:19:09]line ПРОДАЖА [08:19:09]line ТРК (МРК, ГНК) : 42 [08:19:09]line Товар: 2710124130 [08:19:09]line Аи-92-К-5 [08:19:09]line 6.180 * 64.80 [08:19:09]line = 400.46 [08:19:09]line НДС 12% НСП 1% [08:19:09]line > о реализуемом товаре [08:19:09]line ОКРУГЛЕНИЕ: -0.46 [08:19:09]line ИТОГО: 400.00 [08:19:09]line Внесено: 400.00 [08:19:09]line СДАЧА: 0.00 [08:19:09]line НСП 1% : 3.54 [08:19:09]line НДС 12% : 42.53 [08:19:09]line Наличными: 400.00 [08:19:09]line Безнал.: 0.00 [08:19:09]line Место: АЗС № 108 "Партнер Нефть" [08:19:09]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:19:09]line СНО: Общий режим [08:19:09]line Чек 28 16.04.2024 08:19 [08:19:09]line Смена: 118 ФФД: 1.0 [08:19:09]line ЗНМ: 0300000027 [08:19:09]line РНМ: 0000138879044617 [08:19:09]line Версия ККМ: 001 [08:19:09]line ФМ: 0000000000963154 [08:19:09]line ФД: 29754 [08:19:09]line ФПД: 212299953654367 [08:19:09]line 1/tax-web-control/client/api/v1/ticket?date=20240416T081912&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29754&fm=212299953654367&tin=02508201610067®Number=0000138879044617&sum=40000 [08:19:09]OFD Sender: Processing packet 29754 [packets to send 8, broken 7] [08:19:09]ProducePacketName [08:19:09]name=ofd_packets/00029754 [08:19:09]OFD Sender: To server: pG, [08:19:09]CommunicateWithHost lk.salyk.kg:30040 [08:19:09]ConnectInit lk.salyk.kg [08:19:09]written 0, free lines is 4095 [08:19:09]Connected sock=10 [08:19:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FB 45 07 01 59 DF 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 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 1C 00 00 00 F4 03 04 00 80 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 74 00 00 35 04 06 00 C1 15 EF 52 CA 5F 69 82 0E D5 90 90 5D 5C [08:19:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 88 24 47 00 0F E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 74 00 00 F4 03 04 00 1E DF 1D 66 B6 04 01 00 00 25 70 CC DF F7 A3 94 8A [08:19:09]CommunicateWithHost err = 0 [08:19:09]CheckOFDResponse [08:19:09]1017 (14) - 77093643461234 [08:19:09]1041 (16) - 0000000000963154 [08:19:09]1040 (4) - 29754 [08:19:09]1012 (4) - 16.04.2024 02:14 [08:19:09]1206 (1) - 0 [08:19:09]OFD Sender: Remove packet 29754 [08:19:09]ProducePacketName [08:19:09]name=ofd_packets/00029754 [08:19:09]NVStorageDeleteData [08:19:09]Write to MH i2c: 01 00 00 35 37 6C [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 07 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 07 00 35 37 00 00 00 00 00 CA 0C 49 [08:19:09]RasterBufferAndPrint [08:19:09]line [08:19:09]line [08:19:09]line [08:19:09]line [08:19:09]line [08:19:09]written 0, free lines is 3278 [08:19:09]MH_Cut [08:19:09]Write to MH i2c: D1 01 00 3C 37 01 45 [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: D1 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: D1 01 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: D1 01 00 3C 37 00 44 [08:19:09]Write to MH i2c: 01 00 00 3D 37 74 [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:10]OFD Sender: No OFD packet to send [08:19:10]*** Cut start [08:19:10]*** Partial cut [08:19:10]*** CUTSNS_PIN = 1 [08:19:10]*** CUTSNS_PIN = 0 [08:19:10]*** Brake cut motor [08:19:11]Read from MH i2c: 01 [08:19:11]MH_I2C_Read... [08:19:11]*** Stop cut motor [08:19:11]*** Cut end [08:19:11]Read from MH i2c: 01 07 00 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: 01 07 00 3D 37 00 00 00 00 00 FF 0F 89 [08:19:11]process_action close_receipt done [08:19:11]requested_data is exist [08:19:11]produce_requested_data [08:19:11]requested_item fm.sn is exist - process it [08:19:11]wFMCommunicate request_size=4 [08:19:11]MH_SAM_APDU [08:19:11]CAPDU: 80 11 00 00 [08:19:11]Write to MH i2c: E2 08 00 3E 37 80 11 00 00 00 00 00 00 EF [08:19:11]Write i2c OK [08:19:11]MH_I2C_Read... [08:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:11]Read from MH i2c: E2 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: E2 17 00 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: E2 17 00 3E 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3E [08:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:19:11]wFMCommunicate OK [08:19:11]requested_item fd.num is exist - process it [08:19:11]SAM_PROTO_GetFieldsCounters [08:19:11]wFMCommunicate request_size=4 [08:19:11]MH_SAM_APDU [08:19:11]CAPDU: 80 13 00 00 [08:19:11]Write to MH i2c: E2 08 00 3F 37 80 13 00 00 00 00 00 00 F2 [08:19:11]Write i2c OK [08:19:11]MH_I2C_Read... [08:19:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:11]Read from MH i2c: E2 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: E2 62 00 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: E2 62 00 3F 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3A 74 00 00 0E 04 04 00 76 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 A8 [08:19:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3A 74 00 00 0E 04 04 00 76 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 [08:19:11]wFMCommunicate OK [08:19:11]SAM_PROTO_GetFieldsCounters done [08:19:11]requested_item shift.num is exist - process it [08:19:11]requested_item shift.opened is exist - process it [08:19:11]req_shift_opened [08:19:11]FM_GetShiftState [08:19:11]SAM_PROTO_GetShiftState [08:19:11]wFMCommunicate request_size=4 [08:19:11]MH_SAM_APDU [08:19:11]CAPDU: 80 13 01 00 [08:19:11]Write to MH i2c: E2 08 00 40 37 80 13 01 00 00 00 00 00 F4 [08:19:11]Write i2c OK [08:19:11]MH_I2C_Read... [08:19:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:11]Read from MH i2c: E2 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: E2 0E 00 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: E2 0E 00 40 37 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 A2 [08:19:11]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:19:11]wFMCommunicate OK [08:19:11]SAM_PROTO_GetShiftState done [08:19:11]FM_GetShiftState done [08:19:11]req_shift_opened done [08:19:11]requested_item shift.open_date is exist - process it [08:19:11]req_shift_open_date [08:19:11]req_shift_open_date done [08:19:11]produce_requested_data done [08:19:11]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29754,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:19:11]process_action_free close_receipt [08:19:11]json_value_free [08:19:11]json_value_free done [08:19:11]process_json_proto returns [08:19:11]Send response to host [08:19:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29754,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:19:11]free response buf [08:19:11]execute_script done [08:19:11]execute_script returns [08:19:11]free content buf [08:19:11]Sock 9.Close socket [08:19:11]Sock 9.Thread stoped [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:45]accept exits with 7 [08:20:45]New connection [08:20:45]New thread 3066965348 created [08:20:45]Thread 3067108708 joined [08:20:45]Waiting for new connection... [08:20:45] Sock 7.Parse request [08:20:45]Sock 7.Check first char [08:20:45]Sock 7.First char is OK [08:20:45]request: POST /json_proto HTTP/1.0 [08:20:45]Method: POST [08:20:45]URL: /json_proto [08:20:45]Method is POST - this is cgi request [08:20:45]url: /json_proto [08:20:45]query_string will be loaded in cgi processing [08:20:45]execute_cgi json_proto POST (null) [08:20:45]execute_cgi path=json_proto method=POST [08:20:45]POST find Content-Length [08:20:45]Host: 172.17.33.3:8080 [08:20:45]Content-Length: 808 [08:20:45]Content-Type: application/json [08:20:45] [08:20:45]POST finish read [08:20:45]Found Content-Length = 808 [08:20:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:45]execute_script... [08:20:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:45]POST & json_proto [08:20:45]process_json_proto [08:20:45]json parsed OK: [08:20:45]protocol is kg_v1.0 [08:20:45]action value=close_receipt [08:20:45]process_action close_receipt [08:20:45]cmd_close_receipt [08:20:45]MH_GetDate [08:20:45]Write to MH i2c: F0 00 00 41 37 67 [08:20:45]Write i2c OK [08:20:45]MH_I2C_Read... [08:20:45]Read from MH i2c: F0 [08:20:45]MH_I2C_Read... [08:20:45]Read from MH i2c: F0 09 00 [08:20:45]MH_I2C_Read... [08:20:45]Read from MH i2c: F0 09 00 41 37 00 E2 34 1E 66 23 5B 8F 65 7C [08:20:45]GetLastDocTimeStamp 1713255552 [08:20:45]current date 1713255650 [08:20:45]FM_GetShiftState [08:20:45]SAM_PROTO_GetShiftState [08:20:45]wFMCommunicate request_size=4 [08:20:45]MH_SAM_APDU [08:20:45]CAPDU: 80 13 01 00 [08:20:45]Write to MH i2c: E2 08 00 42 37 80 13 01 00 00 00 00 00 F6 [08:20:45]Write i2c OK [08:20:45]MH_I2C_Read... [08:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:45]Read from MH i2c: E2 [08:20:45]MH_I2C_Read... [08:20:45]Read from MH i2c: E2 0E 00 [08:20:45]MH_I2C_Read... [08:20:45]Read from MH i2c: E2 0E 00 42 37 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 A4 [08:20:45]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:20:45]wFMCommunicate OK [08:20:45]SAM_PROTO_GetShiftState done [08:20:45]FM_GetShiftState done [08:20:45]opened in 1713226843 [08:20:45]opened+sec_in_day 1713313243 [08:20:45]quantity*price = 100051 [08:20:45]sum+1 = 100052 [08:20:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 29 16.04.2024 08:20 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29755 ФПД: 93112099074657 1/tax-web-control/client/api/v1/ticket?date=20240416T082050&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29755&fm=93112099074657&tin=02508201610067®Number=0000138879044617&sum=100051 [08:20:46]StoreToDocumentArchive [08:20:46]shift 118 fd 29755 [08:20:46]save to /storage/0118/doc_00029755 [08:20:46]save last doc name /storage/0118/doc_00029755 to /storage/kkm_last_doc_name [08:20:46]save OK [08:20:46]Clear old archive folders... [08:20:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:20:46]tlvbuf is B6F7E4A0 [08:20:46]SAM_PROTO_ClearQueue [08:20:46]wFMCommunicate request_size=4 [08:20:46]MH_SAM_APDU [08:20:46]CAPDU: 80 09 00 00 [08:20:46]Write to MH i2c: E2 08 00 4F 37 80 09 00 00 00 00 00 00 F8 [08:20:46]Write i2c OK [08:20:46]MH_I2C_Read... [08:20:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:46]Read from MH i2c: E2 [08:20:46]MH_I2C_Read... [08:20:46]Read from MH i2c: E2 03 00 [08:20:46]MH_I2C_Read... [08:20:46]Read from MH i2c: E2 03 00 4F 37 00 90 00 FA [08:20:46]RAPDU: 90 00 [08:20:46]wFMCommunicate OK [08:20:46]SAM_PROTO_ClearQueue done [08:20:46]KKMCreateOFDPacket [08:20:46]OFDProtocolAddRootSTLVToBuf [08:20:46]FM_MakeSignedData [08:20:46]FM_MakeSignedData [08:20:46]SAM_PROTO_SignData [08:20:46]wFMCommunicate request_size=4 [08:20:46]MH_SAM_APDU [08:20:46]CAPDU: 80 0D 01 02 [08:20:46]Write to MH i2c: E2 08 00 50 37 80 0D 01 02 00 00 00 00 00 [08:20:46]Write i2c OK [08:20:46]MH_I2C_Read... [08:20:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:46]Read from MH i2c: E2 [08:20:46]MH_I2C_Read... [08:20:46]Read from MH i2c: E2 03 00 [08:20:46]MH_I2C_Read... [08:20:46]Read from MH i2c: E2 03 00 50 37 00 90 00 FB [08:20:46]RAPDU: 90 00 [08:20:46]wFMCommunicate OK [08:20:46]wFMCommunicate request_size=255 [08:20:46]MH_SAM_APDU [08:20:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 E2 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 74 00 00 35 04 06 00 54 [08:20:46]Write to MH i2c: E2 02 01 51 37 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 E2 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 74 00 00 35 04 06 00 54 00 00 7C [08:20:46]Write i2c OK [08:20:46]MH_I2C_Read... [08:20:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:47]Read from MH i2c: E2 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 03 00 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 03 00 51 37 00 90 00 FC [08:20:47]RAPDU: 90 00 [08:20:47]wFMCommunicate OK [08:20:47]wFMCommunicate request_size=10 [08:20:47]MH_SAM_APDU [08:20:47]CAPDU: 80 0D 02 02 05 AF 59 96 F2 61 [08:20:47]Write to MH i2c: E2 0D 00 52 37 80 0D 02 02 05 00 AF 59 96 F2 61 00 00 FE [08:20:47]Write i2c OK [08:20:47]MH_I2C_Read... [08:20:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:47]Read from MH i2c: E2 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 03 00 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 03 00 52 37 00 90 00 FD [08:20:47]RAPDU: 90 00 [08:20:47]wFMCommunicate OK [08:20:47]wFMCommunicate request_size=4 [08:20:47]MH_SAM_APDU [08:20:47]CAPDU: 80 0D 03 02 [08:20:47]Write to MH i2c: E2 08 00 53 37 80 0D 03 02 00 00 00 00 05 [08:20:47]Write i2c OK [08:20:47]MH_I2C_Read... [08:20:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:47]Read from MH i2c: E2 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 0B 00 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 0B 00 53 37 00 E2 E6 8B A1 2B F9 19 83 90 00 BA [08:20:47]RAPDU: E2 E6 8B A1 2B F9 19 83 90 00 [08:20:47]wFMCommunicate OK [08:20:47]SAM_PROTO_SignData done [08:20:47]FM_MakeSignedData done [08:20:47]CreateOFDProtocolMessage [08:20:47]wFMCommunicate request_size=4 [08:20:47]MH_SAM_APDU [08:20:47]CAPDU: 80 11 00 00 [08:20:47]Write to MH i2c: E2 08 00 54 37 80 11 00 00 00 00 00 00 05 [08:20:47]Write i2c OK [08:20:47]MH_I2C_Read... [08:20:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:47]Read from MH i2c: E2 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 17 00 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 17 00 54 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 54 [08:20:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:20:47]wFMCommunicate OK [08:20:47]CreateOFDProtocolMessage done [08:20:47]OFDSenderStorePacket 29755 [08:20:47]StoreOFDPacket docnum=29755 [08:20:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7E 63 07 01 C5 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 E2 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 74 00 00 35 04 06 00 54 AF 59 96 F2 61 E2 E6 8B A1 2B F9 19 83 [08:20:47]CheckFolder [08:20:47]dirname=/storage/ofd_packets [08:20:47]CheckFolder done [08:20:47]ProducePacketName [08:20:47]name=ofd_packets/00029755 [08:20:47]NVStorageSaveData ofd_packets/00029755 [08:20:47]File name is /storage/ofd_packets/00029755 [08:20:47]Write 301 bytes [08:20:47]NVStorageSaveData done [08:20:47]OFDSenderStorePacket done [08:20:47]KKMCreateOFDPacket done [08:20:47]NVStorageSaveData kkm_last_timestamp [08:20:47]File name is /storage/kkm_last_timestamp [08:20:47]Write 4 bytes [08:20:47]NVStorageSaveData done [08:20:47]ExternCall_PrintAddStr [08:20:47]wPrintStart [08:20:47]Write to MH i2c: 01 00 00 55 37 8C [08:20:47]Write i2c OK [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: 01 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: 01 07 00 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: 01 07 00 55 37 00 00 00 00 00 FF 0F A1 [08:20:47]RasterBufferAndPrint [08:20:47]line Счет N : (1)348232 [08:20:47]line ИНН: 02508201610067 [08:20:47]line Контрольно-Кассовый Чек [08:20:47]line ПРОДАЖА [08:20:47]line ТРК (МРК, ГНК) : 32 [08:20:47]line Товар: 2710124130 [08:20:47]line Аи-92-К-5 [08:20:47]line 15.440 * 64.80 [08:20:47]line = 1000.51 [08:20:47]line НДС 12% НСП 1% [08:20:47]line > о реализуемом товаре [08:20:47]line ИТОГО: 1000.51 [08:20:47]line НСП 1% : 8.85 [08:20:47]line НДС 12% : 106.25 [08:20:47]line Наличными: 0.00 [08:20:47]line Безнал.: 1000.51 [08:20:47]line Место: АЗС № 108 "Партнер Нефть" [08:20:47]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:20:47]line СНО: Общий режим [08:20:47]line Чек 29 16.04.2024 08:20 [08:20:47]line Смена: 118 ФФД: 1.0 [08:20:47]line ЗНМ: 0300000027 [08:20:47]line РНМ: 0000138879044617 [08:20:47]line Версия ККМ: 001 [08:20:47]line Платежная система: О! деньги [08:20:47]line ФМ: 0000000000963154 [08:20:47]line ФД: 29755 [08:20:47]line ФПД: 93112099074657 [08:20:47]line 1/tax-web-control/client/api/v1/ticket?date=20240416T082050&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29755&fm=93112099074657&tin=02508201610067®Number=0000138879044617&sum=100051 [08:20:47]OFD Sender: Processing packet 29755 [packets to send 8, broken 7] [08:20:47]ProducePacketName [08:20:47]name=ofd_packets/00029755 [08:20:47]OFD Sender: To server: pG, [08:20:47]CommunicateWithHost lk.salyk.kg:30040 [08:20:47]ConnectInit lk.salyk.kg [08:20:47]written 0, free lines is 4095 [08:20:47]Connected sock=10 [08:20:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7E 63 07 01 C5 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 E2 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 74 00 00 35 04 06 00 54 AF 59 96 F2 61 E2 E6 8B A1 2B F9 19 83 [08:20:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 49 46 47 00 4B 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 74 00 00 F4 03 04 00 80 DF 1D 66 B6 04 01 00 00 60 6B 48 32 46 0F 68 5B [08:20:48]CommunicateWithHost err = 0 [08:20:48]CheckOFDResponse [08:20:48]1017 (14) - 77093643461234 [08:20:48]1041 (16) - 0000000000963154 [08:20:48]1040 (4) - 29755 [08:20:48]1012 (4) - 16.04.2024 02:16 [08:20:48]1206 (1) - 0 [08:20:48]OFD Sender: Remove packet 29755 [08:20:48]ProducePacketName [08:20:48]name=ofd_packets/00029755 [08:20:48]NVStorageDeleteData [08:20:48]Write to MH i2c: 01 00 00 7E 37 B5 [08:20:48]Write i2c OK [08:20:48]MH_I2C_Read... [08:20:48]Read from MH i2c: 01 [08:20:48]MH_I2C_Read... [08:20:48]Read from MH i2c: 01 07 00 [08:20:48]MH_I2C_Read... [08:20:48]Read from MH i2c: 01 07 00 7E 37 00 00 00 00 00 D8 0C A0 [08:20:48]RasterBufferAndPrint [08:20:48]line [08:20:48]line [08:20:48]line [08:20:48]line [08:20:48]line [08:20:48]written 0, free lines is 3294 [08:20:48]MH_Cut [08:20:48]Write to MH i2c: D1 01 00 85 37 01 8E [08:20:48]Write i2c OK [08:20:48]MH_I2C_Read... [08:20:48]Read from MH i2c: D1 [08:20:48]MH_I2C_Read... [08:20:48]Read from MH i2c: D1 01 00 [08:20:48]MH_I2C_Read... [08:20:48]Read from MH i2c: D1 01 00 85 37 00 8D [08:20:48]Write to MH i2c: 01 00 00 86 37 BD [08:20:48]Write i2c OK [08:20:48]MH_I2C_Read... [08:20:48]OFD Sender: No OFD packet to send [08:20:48]*** Cut start [08:20:48]*** Partial cut [08:20:48]*** CUTSNS_PIN = 1 [08:20:49]*** CUTSNS_PIN = 0 [08:20:49]*** Brake cut motor [08:20:49]Read from MH i2c: 01 [08:20:49]MH_I2C_Read... [08:20:49]*** Stop cut motor [08:20:49]*** Cut end [08:20:49]Read from MH i2c: 01 07 00 [08:20:49]MH_I2C_Read... [08:20:49]Read from MH i2c: 01 07 00 86 37 00 00 00 00 00 FF 0F D2 [08:20:49]process_action close_receipt done [08:20:49]requested_data is exist [08:20:49]produce_requested_data [08:20:49]requested_item fm.sn is exist - process it [08:20:49]wFMCommunicate request_size=4 [08:20:49]MH_SAM_APDU [08:20:49]CAPDU: 80 11 00 00 [08:20:49]Write to MH i2c: E2 08 00 87 37 80 11 00 00 00 00 00 00 38 [08:20:49]Write i2c OK [08:20:49]MH_I2C_Read... [08:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:49]Read from MH i2c: E2 [08:20:49]MH_I2C_Read... [08:20:49]Read from MH i2c: E2 17 00 [08:20:49]MH_I2C_Read... [08:20:49]Read from MH i2c: E2 17 00 87 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [08:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:20:49]wFMCommunicate OK [08:20:49]requested_item fd.num is exist - process it [08:20:49]SAM_PROTO_GetFieldsCounters [08:20:49]wFMCommunicate request_size=4 [08:20:49]MH_SAM_APDU [08:20:49]CAPDU: 80 13 00 00 [08:20:49]Write to MH i2c: E2 08 00 88 37 80 13 00 00 00 00 00 00 3B [08:20:49]Write i2c OK [08:20:49]MH_I2C_Read... [08:20:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:49]Read from MH i2c: E2 [08:20:49]MH_I2C_Read... [08:20:49]Read from MH i2c: E2 62 00 [08:20:49]MH_I2C_Read... [08:20:49]Read from MH i2c: E2 62 00 88 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3B 74 00 00 0E 04 04 00 76 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 F5 [08:20:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3B 74 00 00 0E 04 04 00 76 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 [08:20:49]wFMCommunicate OK [08:20:49]SAM_PROTO_GetFieldsCounters done [08:20:49]requested_item shift.num is exist - process it [08:20:49]requested_item shift.opened is exist - process it [08:20:49]req_shift_opened [08:20:49]FM_GetShiftState [08:20:49]SAM_PROTO_GetShiftState [08:20:49]wFMCommunicate request_size=4 [08:20:49]MH_SAM_APDU [08:20:49]CAPDU: 80 13 01 00 [08:20:49]Write to MH i2c: E2 08 00 89 37 80 13 01 00 00 00 00 00 3D [08:20:49]Write i2c OK [08:20:49]MH_I2C_Read... [08:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:49]Read from MH i2c: E2 [08:20:49]MH_I2C_Read... [08:20:49]Read from MH i2c: E2 0E 00 [08:20:49]MH_I2C_Read... [08:20:49]Read from MH i2c: E2 0E 00 89 37 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 EB [08:20:49]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:20:49]wFMCommunicate OK [08:20:49]SAM_PROTO_GetShiftState done [08:20:49]FM_GetShiftState done [08:20:49]req_shift_opened done [08:20:49]requested_item shift.open_date is exist - process it [08:20:49]req_shift_open_date [08:20:49]req_shift_open_date done [08:20:49]produce_requested_data done [08:20:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29755,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:20:49]process_action_free close_receipt [08:20:49]json_value_free [08:20:49]json_value_free done [08:20:49]process_json_proto returns [08:20:49]Send response to host [08:20:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29755,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:20:49]free response buf [08:20:49]execute_script done [08:20:49]execute_script returns [08:20:49]free content buf [08:20:49]Sock 7.Close socket [08:20:49]Sock 7.Thread stoped [08:20:51]accept exits with 9 [08:20:51]New connection [08:20:51]New thread 3067108708 created [08:20:51]Thread 3066965348 joined [08:20:51]Waiting for new connection... [08:20:51] Sock 9.Parse request [08:20:51]Sock 9.Check first char [08:20:51]Sock 9.First char is OK [08:20:51]request: POST /json_proto HTTP/1.0 [08:20:51]Method: POST [08:20:51]URL: /json_proto [08:20:51]Method is POST - this is cgi request [08:20:51]url: /json_proto [08:20:51]query_string will be loaded in cgi processing [08:20:51]execute_cgi json_proto POST (null) [08:20:51]execute_cgi path=json_proto method=POST [08:20:51]POST find Content-Length [08:20:51]Host: 172.17.33.3:8080 [08:20:51]Content-Length: 805 [08:20:51]Content-Type: application/json [08:20:51] [08:20:51]POST finish read [08:20:51]Found Content-Length = 805 [08:20:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:51]execute_script... [08:20:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:51]POST & json_proto [08:20:51]process_json_proto [08:20:51]json parsed OK: [08:20:51]protocol is kg_v1.0 [08:20:51]action value=close_receipt [08:20:51]process_action close_receipt [08:20:51]cmd_close_receipt [08:20:51]MH_GetDate [08:20:51]Write to MH i2c: F0 00 00 8A 37 B0 [08:20:51]Write i2c OK [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: F0 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: F0 09 00 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: F0 09 00 8A 37 00 E8 34 1E 66 23 5B 8F 65 CB [08:20:51]GetLastDocTimeStamp 1713255650 [08:20:51]current date 1713255656 [08:20:51]FM_GetShiftState [08:20:51]SAM_PROTO_GetShiftState [08:20:51]wFMCommunicate request_size=4 [08:20:51]MH_SAM_APDU [08:20:51]CAPDU: 80 13 01 00 [08:20:51]Write to MH i2c: E2 08 00 8B 37 80 13 01 00 00 00 00 00 3F [08:20:51]Write i2c OK [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: E2 [08:20:51]MH_I2C_Read... [08:20:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:51]Read from MH i2c: E2 0E 00 [08:20:51]MH_I2C_Read... [08:20:51]Read from MH i2c: E2 0E 00 8B 37 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 ED [08:20:51]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:20:51]wFMCommunicate OK [08:20:51]SAM_PROTO_GetShiftState done [08:20:51]FM_GetShiftState done [08:20:51]opened in 1713226843 [08:20:51]opened+sec_in_day 1713313243 [08:20:51]quantity*price = 100018 [08:20:51]sum+1 = 100020 [08:20:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 30 16.04.2024 08:20 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29756 ФПД: 14741739745753 1/tax-web-control/client/api/v1/ticket?date=20240416T082056&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29756&fm=14741739745753&tin=02508201610067®Number=0000138879044617&sum=100019 [08:20:52]StoreToDocumentArchive [08:20:52]shift 118 fd 29756 [08:20:52]save to /storage/0118/doc_00029756 [08:20:52]save last doc name /storage/0118/doc_00029756 to /storage/kkm_last_doc_name [08:20:52]save OK [08:20:52]Clear old archive folders... [08:20:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:20:52]tlvbuf is 01A9A860 [08:20:52]SAM_PROTO_ClearQueue [08:20:52]wFMCommunicate request_size=4 [08:20:52]MH_SAM_APDU [08:20:52]CAPDU: 80 09 00 00 [08:20:52]Write to MH i2c: E2 08 00 98 37 80 09 00 00 00 00 00 00 41 [08:20:52]Write i2c OK [08:20:52]MH_I2C_Read... [08:20:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:52]Read from MH i2c: E2 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 03 00 [08:20:52]MH_I2C_Read... [08:20:52]Read from MH i2c: E2 03 00 98 37 00 90 00 43 [08:20:53]RAPDU: 90 00 [08:20:53]wFMCommunicate OK [08:20:53]SAM_PROTO_ClearQueue done [08:20:53]KKMCreateOFDPacket [08:20:53]OFDProtocolAddRootSTLVToBuf [08:20:53]FM_MakeSignedData [08:20:53]FM_MakeSignedData [08:20:53]SAM_PROTO_SignData [08:20:53]wFMCommunicate request_size=4 [08:20:53]MH_SAM_APDU [08:20:53]CAPDU: 80 0D 01 02 [08:20:53]Write to MH i2c: E2 08 00 99 37 80 0D 01 02 00 00 00 00 49 [08:20:53]Write i2c OK [08:20:53]MH_I2C_Read... [08:20:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:53]Read from MH i2c: E2 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: E2 03 00 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: E2 03 00 99 37 00 90 00 44 [08:20:53]RAPDU: 90 00 [08:20:53]wFMCommunicate OK [08:20:53]wFMCommunicate request_size=255 [08:20:53]MH_SAM_APDU [08:20:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E8 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 74 00 00 35 04 06 00 0D 68 54 29 [08:20:53]Write to MH i2c: E2 02 01 9A 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E8 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 74 00 00 35 04 06 00 0D 68 54 29 00 00 C8 [08:20:53]Write i2c OK [08:20:53]MH_I2C_Read... [08:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:53]Read from MH i2c: E2 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: E2 03 00 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: E2 03 00 9A 37 00 90 00 45 [08:20:53]RAPDU: 90 00 [08:20:53]wFMCommunicate OK [08:20:53]wFMCommunicate request_size=7 [08:20:53]MH_SAM_APDU [08:20:53]CAPDU: 80 0D 02 02 02 31 D9 [08:20:53]Write to MH i2c: E2 0A 00 9B 37 80 0D 02 02 02 00 31 D9 00 00 5A [08:20:53]Write i2c OK [08:20:53]MH_I2C_Read... [08:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:53]Read from MH i2c: E2 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: E2 03 00 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: E2 03 00 9B 37 00 90 00 46 [08:20:53]RAPDU: 90 00 [08:20:53]wFMCommunicate OK [08:20:53]wFMCommunicate request_size=4 [08:20:53]MH_SAM_APDU [08:20:53]CAPDU: 80 0D 03 02 [08:20:53]Write to MH i2c: E2 08 00 9C 37 80 0D 03 02 00 00 00 00 4E [08:20:53]Write i2c OK [08:20:53]MH_I2C_Read... [08:20:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:53]Read from MH i2c: E2 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: E2 0B 00 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: E2 0B 00 9C 37 00 6A 70 97 E8 31 12 76 CE 90 00 2F [08:20:53]RAPDU: 6A 70 97 E8 31 12 76 CE 90 00 [08:20:53]wFMCommunicate OK [08:20:53]SAM_PROTO_SignData done [08:20:53]FM_MakeSignedData done [08:20:53]CreateOFDProtocolMessage [08:20:53]wFMCommunicate request_size=4 [08:20:53]MH_SAM_APDU [08:20:53]CAPDU: 80 11 00 00 [08:20:53]Write to MH i2c: E2 08 00 9D 37 80 11 00 00 00 00 00 00 4E [08:20:53]Write i2c OK [08:20:53]MH_I2C_Read... [08:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:53]Read from MH i2c: E2 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: E2 17 00 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: E2 17 00 9D 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9D [08:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:20:53]wFMCommunicate OK [08:20:53]CreateOFDProtocolMessage done [08:20:53]OFDSenderStorePacket 29756 [08:20:53]StoreOFDPacket docnum=29756 [08:20:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 21 4D 04 01 36 D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E8 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 74 00 00 35 04 06 00 0D 68 54 29 31 D9 6A 70 97 E8 31 12 76 CE [08:20:53]CheckFolder [08:20:53]dirname=/storage/ofd_packets [08:20:53]CheckFolder done [08:20:53]ProducePacketName [08:20:53]name=ofd_packets/00029756 [08:20:53]NVStorageSaveData ofd_packets/00029756 [08:20:53]File name is /storage/ofd_packets/00029756 [08:20:53]Write 298 bytes [08:20:53]NVStorageSaveData done [08:20:53]OFDSenderStorePacket done [08:20:53]KKMCreateOFDPacket done [08:20:53]NVStorageSaveData kkm_last_timestamp [08:20:53]File name is /storage/kkm_last_timestamp [08:20:53]Write 4 bytes [08:20:53]NVStorageSaveData done [08:20:53]ExternCall_PrintAddStr [08:20:53]wPrintStart [08:20:53]Write to MH i2c: 01 00 00 9E 37 D5 [08:20:53]OFD Sender: No OFD packet to send [08:20:53]Write i2c OK [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: 01 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: 01 07 00 [08:20:53]MH_I2C_Read... [08:20:53]Read from MH i2c: 01 07 00 9E 37 00 00 00 00 00 FF 0F EA [08:20:53]RasterBufferAndPrint [08:20:53]line Счет N : (1)348233 [08:20:53]line ИНН: 02508201610067 [08:20:53]line Контрольно-Кассовый Чек [08:20:53]line ПРОДАЖА [08:20:53]line ТРК (МРК, ГНК) : 51 [08:20:53]line Товар: 2710194210 [08:20:53]line ДТ-К-5 [08:20:53]line 13.720 * 72.90 [08:20:53]line = 1000.19 [08:20:53]line НДС 12% НСП 1% [08:20:53]line > о реализуемом товаре [08:20:53]line ИТОГО: 1000.19 [08:20:53]line НСП 1% : 8.85 [08:20:53]line НДС 12% : 106.21 [08:20:53]line Наличными: 0.00 [08:20:53]line Безнал.: 1000.19 [08:20:53]line Место: АЗС № 108 "Партнер Нефть" [08:20:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:20:53]line СНО: Общий режим [08:20:53]line Чек 30 16.04.2024 08:20 [08:20:53]line Смена: 118 ФФД: 1.0 [08:20:53]line ЗНМ: 0300000027 [08:20:53]line РНМ: 0000138879044617 [08:20:53]line Версия ККМ: 001 [08:20:53]line Платежная система: О! деньги [08:20:53]line ФМ: 0000000000963154 [08:20:53]line ФД: 29756 [08:20:53]line ФПД: 14741739745753 [08:20:53]line 1/tax-web-control/client/api/v1/ticket?date=20240416T082056&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29756&fm=14741739745753&tin=02508201610067®Number=0000138879044617&sum=100019 [08:20:53]written 0, free lines is 4095 [08:20:53]OFD Sender: Processing packet 29756 [packets to send 8, broken 7] [08:20:53]ProducePacketName [08:20:53]name=ofd_packets/00029756 [08:20:53]OFD Sender: To server: pG, [08:20:53]CommunicateWithHost lk.salyk.kg:30040 [08:20:53]ConnectInit lk.salyk.kg [08:20:53]Connected sock=10 [08:20:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 21 4D 04 01 36 D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 E8 34 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 74 00 00 35 04 06 00 0D 68 54 29 31 D9 6A 70 97 E8 31 12 76 CE [08:20:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F1 F1 47 00 D5 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 3C 74 00 00 F4 03 04 00 86 DF 1D 66 B6 04 01 00 00 1B 82 1F A6 DD BC C1 D0 [08:20:53]CommunicateWithHost err = 0 [08:20:53]CheckOFDResponse [08:20:53]1017 (14) - 77093643461234 [08:20:53]1041 (16) - 0000000000963154 [08:20:53]1040 (4) - 29756 [08:20:53]1012 (4) - 16.04.2024 02:16 [08:20:53]1206 (1) - 0 [08:20:53]OFD Sender: Remove packet 29756 [08:20:53]ProducePacketName [08:20:53]name=ofd_packets/00029756 [08:20:53]NVStorageDeleteData [08:20:54]Write to MH i2c: 01 00 00 C7 37 FE [08:20:54]Write i2c OK [08:20:54]MH_I2C_Read... [08:20:54]Read from MH i2c: 01 [08:20:54]MH_I2C_Read... [08:20:54]Read from MH i2c: 01 07 00 [08:20:54]MH_I2C_Read... [08:20:54]Read from MH i2c: 01 07 00 C7 37 00 00 00 00 00 ED 0C FE [08:20:54]RasterBufferAndPrint [08:20:54]line [08:20:54]line [08:20:54]line [08:20:54]line [08:20:54]line [08:20:54]written 0, free lines is 3322 [08:20:54]MH_Cut [08:20:54]Write to MH i2c: D1 01 00 CE 37 01 D7 [08:20:54]Write i2c OK [08:20:54]MH_I2C_Read... [08:20:54]Read from MH i2c: D1 [08:20:54]MH_I2C_Read... [08:20:54]Read from MH i2c: D1 01 00 [08:20:54]MH_I2C_Read... [08:20:54]Read from MH i2c: D1 01 00 CE 37 00 D6 [08:20:54]Write to MH i2c: 01 00 00 CF 37 06 [08:20:54]Write i2c OK [08:20:54]MH_I2C_Read... [08:20:54]OFD Sender: No OFD packet to send [08:20:54]*** Cut start [08:20:54]*** Partial cut [08:20:54]*** CUTSNS_PIN = 1 [08:20:54]*** CUTSNS_PIN = 0 [08:20:55]*** Brake cut motor [08:20:55]Read from MH i2c: 01 *** Stop cut motor [08:20:55] [08:20:55]*** Cut end [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: 01 07 00 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: 01 07 00 CF 37 00 00 00 00 00 FF 0F 1B [08:20:55]process_action close_receipt done [08:20:55]requested_data is exist [08:20:55]produce_requested_data [08:20:55]requested_item fm.sn is exist - process it [08:20:55]wFMCommunicate request_size=4 [08:20:55]MH_SAM_APDU [08:20:55]CAPDU: 80 11 00 00 [08:20:55]Write to MH i2c: E2 08 00 D0 37 80 11 00 00 00 00 00 00 81 [08:20:55]Write i2c OK [08:20:55]MH_I2C_Read... [08:20:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:55]Read from MH i2c: E2 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: E2 17 00 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: E2 17 00 D0 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D0 [08:20:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:20:55]wFMCommunicate OK [08:20:55]requested_item fd.num is exist - process it [08:20:55]SAM_PROTO_GetFieldsCounters [08:20:55]wFMCommunicate request_size=4 [08:20:55]MH_SAM_APDU [08:20:55]CAPDU: 80 13 00 00 [08:20:55]Write to MH i2c: E2 08 00 D1 37 80 13 00 00 00 00 00 00 84 [08:20:55]Write i2c OK [08:20:55]MH_I2C_Read... [08:20:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:55]Read from MH i2c: E2 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: E2 62 00 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: E2 62 00 D1 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3C 74 00 00 0E 04 04 00 76 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 42 [08:20:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3C 74 00 00 0E 04 04 00 76 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 [08:20:55]wFMCommunicate OK [08:20:55]SAM_PROTO_GetFieldsCounters done [08:20:55]requested_item shift.num is exist - process it [08:20:55]requested_item shift.opened is exist - process it [08:20:55]req_shift_opened [08:20:55]FM_GetShiftState [08:20:55]SAM_PROTO_GetShiftState [08:20:55]wFMCommunicate request_size=4 [08:20:55]MH_SAM_APDU [08:20:55]CAPDU: 80 13 01 00 [08:20:55]Write to MH i2c: E2 08 00 D2 37 80 13 01 00 00 00 00 00 86 [08:20:55]Write i2c OK [08:20:55]MH_I2C_Read... [08:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:55]Read from MH i2c: E2 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: E2 0E 00 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: E2 0E 00 D2 37 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 34 [08:20:55]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:20:55]wFMCommunicate OK [08:20:55]SAM_PROTO_GetShiftState done [08:20:55]FM_GetShiftState done [08:20:55]req_shift_opened done [08:20:55]requested_item shift.open_date is exist - process it [08:20:55]req_shift_open_date [08:20:55]req_shift_open_date done [08:20:55]produce_requested_data done [08:20:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29756,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:20:55]process_action_free close_receipt [08:20:55]json_value_free [08:20:55]json_value_free done [08:20:55]process_json_proto returns [08:20:55]Send response to host [08:20:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29756,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:20:55]free response buf [08:20:55]execute_script done [08:20:55]execute_script returns [08:20:55]free content buf [08:20:55]Sock 9.Close socket [08:20:55]Sock 9.Thread stoped [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:53]accept exits with 7 [08:22:53]New connection [08:22:53]New thread 3066965348 created [08:22:53]Thread 3067108708 joined [08:22:53]Waiting for new connection... [08:22:53] Sock 7.Parse request [08:22:53]Sock 7.Check first char [08:22:53]Sock 7.First char is OK [08:22:53]request: POST /json_proto HTTP/1.0 [08:22:53]Method: POST [08:22:53]URL: /json_proto [08:22:53]Method is POST - this is cgi request [08:22:53]url: /json_proto [08:22:53]query_string will be loaded in cgi processing [08:22:53]execute_cgi json_proto POST (null) [08:22:53]execute_cgi path=json_proto method=POST [08:22:53]POST find Content-Length [08:22:53]Host: 172.17.33.3:8080 [08:22:53]Content-Length: 215 [08:22:53]Content-Type: application/json [08:22:53] [08:22:53]POST finish read [08:22:53]Found Content-Length = 215 [08:22:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:53]execute_script... [08:22:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:53]POST & json_proto [08:22:53]process_json_proto [08:22:53]json parsed OK: [08:22:53]protocol is kg_v1.0 [08:22:53]action value=get_value [08:22:53]process_action get_value [08:22:53]cmd_get_value [08:22:53]process_action get_value done [08:22:53]requested_data is exist [08:22:53]produce_requested_data [08:22:53]requested_item kkm.sn is exist - process it [08:22:53]requested_item kkm.ver is exist - process it [08:22:53]requested_item fm.sn is exist - process it [08:22:53]wFMCommunicate request_size=4 [08:22:53]MH_SAM_APDU [08:22:53]CAPDU: 80 11 00 00 [08:22:53]Write to MH i2c: E2 08 00 D3 37 80 11 00 00 00 00 00 00 84 [08:22:53]Write i2c OK [08:22:53]MH_I2C_Read... [08:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:54]Read from MH i2c: E2 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 17 00 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 17 00 D3 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D3 [08:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:22:54]wFMCommunicate OK [08:22:54]requested_item fd.num is exist - process it [08:22:54]SAM_PROTO_GetFieldsCounters [08:22:54]wFMCommunicate request_size=4 [08:22:54]MH_SAM_APDU [08:22:54]CAPDU: 80 13 00 00 [08:22:54]Write to MH i2c: E2 08 00 D4 37 80 13 00 00 00 00 00 00 87 [08:22:54]Write i2c OK [08:22:54]MH_I2C_Read... [08:22:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:54]Read from MH i2c: E2 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 62 00 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 62 00 D4 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3C 74 00 00 0E 04 04 00 76 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 45 [08:22:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3C 74 00 00 0E 04 04 00 76 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 [08:22:54]wFMCommunicate OK [08:22:54]SAM_PROTO_GetFieldsCounters done [08:22:54]requested_item shift.num is exist - process it [08:22:54]requested_item shift.opened is exist - process it [08:22:54]req_shift_opened [08:22:54]FM_GetShiftState [08:22:54]SAM_PROTO_GetShiftState [08:22:54]wFMCommunicate request_size=4 [08:22:54]MH_SAM_APDU [08:22:54]CAPDU: 80 13 01 00 [08:22:54]Write to MH i2c: E2 08 00 D5 37 80 13 01 00 00 00 00 00 89 [08:22:54]Write i2c OK [08:22:54]MH_I2C_Read... [08:22:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:54]Read from MH i2c: E2 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 0E 00 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 0E 00 D5 37 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 37 [08:22:54]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:22:54]wFMCommunicate OK [08:22:54]SAM_PROTO_GetShiftState done [08:22:54]FM_GetShiftState done [08:22:54]req_shift_opened done [08:22:54]requested_item shift.open_date is exist - process it [08:22:54]req_shift_open_date [08:22:54]req_shift_open_date done [08:22:54]produce_requested_data done [08:22:54]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29756,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:22:54]process_action_free get_value [08:22:54]json_value_free [08:22:54]json_value_free done [08:22:54]process_json_proto returns [08:22:54]Send response to host [08:22:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29756,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:22:54]free response buf [08:22:54]execute_script done [08:22:54]execute_script returns [08:22:54]free content buf [08:22:54]Sock 7.Close socket [08:22:54]Sock 7.Thread stoped [08:22:54]accept exits with 9 [08:22:54]New connection [08:22:54]New thread 3067108708 created [08:22:54]Thread 3066965348 joined [08:22:54]Waiting for new connection... [08:22:54] Sock 9.Parse request [08:22:54]Sock 9.Check first char [08:22:54]Sock 9.First char is OK [08:22:54]request: POST /json_proto HTTP/1.0 [08:22:54]Method: POST [08:22:54]URL: /json_proto [08:22:54]Method is POST - this is cgi request [08:22:54]url: /json_proto [08:22:54]query_string will be loaded in cgi processing [08:22:54]execute_cgi json_proto POST (null) [08:22:54]execute_cgi path=json_proto method=POST [08:22:54]POST find Content-Length [08:22:54]Host: 172.17.33.3:8080 [08:22:54]Content-Length: 331 [08:22:54]Content-Type: application/json [08:22:54] [08:22:54]POST finish read [08:22:54]Found Content-Length = 331 [08:22:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:22:54]execute_script... [08:22:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:22:54]POST & json_proto [08:22:54]process_json_proto [08:22:54]json parsed OK: [08:22:54]protocol is kg_v1.0 [08:22:54]action value=get_value [08:22:54]process_action get_value [08:22:54]cmd_get_value [08:22:54]process_action get_value done [08:22:54]requested_data is exist [08:22:54]produce_requested_data [08:22:54]requested_item fm.sale.total is exist - process it [08:22:54]SAM_PROTO_GetFMData [08:22:54]wFMCommunicate request_size=4 [08:22:54]MH_SAM_APDU [08:22:54]CAPDU: 80 13 03 00 [08:22:54]Write to MH i2c: E2 08 00 D6 37 80 13 03 00 00 00 00 00 8C [08:22:54]Write i2c OK [08:22:54]MH_I2C_Read... [08:22:54]OFD Sender: No OFD packet to send [08:22:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:22:54]Read from MH i2c: E2 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 FD 00 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 FD 00 D6 37 00 C3 04 85 04 BF 04 6E 04 04 00 50 73 00 00 69 04 A1 00 6F 04 04 00 E3 6F 00 00 B1 04 04 00 D1 3C 56 B6 70 04 04 00 0C 8F D7 73 72 04 04 00 C5 AD 7E 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 57 F4 5D 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 86 20 9D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 EF 03 09 00 F6 90 00 54 [08:22:54]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 50 73 00 00 69 04 A1 00 6F 04 04 00 E3 6F 00 00 B1 04 04 00 D1 3C 56 B6 70 04 04 00 0C 8F D7 73 72 04 04 00 C5 AD 7E 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 57 F4 5D 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 86 20 9D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 EF 03 09 00 F6 90 00 [08:22:54]wFMCommunicate OK [08:22:54]wFMCommunicate request_size=4 [08:22:54]MH_SAM_APDU [08:22:54]CAPDU: 80 17 00 00 [08:22:54]Write to MH i2c: E2 08 00 D7 37 80 17 00 00 00 00 00 00 8E [08:22:54]Write i2c OK [08:22:54]MH_I2C_Read... [08:22:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:22:55]Read from MH i2c: E2 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 FD 00 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 FD 00 D7 37 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 48 [08:22:55]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:22:55]wFMCommunicate OK [08:22:55]wFMCommunicate request_size=4 [08:22:55]MH_SAM_APDU [08:22:55]CAPDU: 80 17 00 00 [08:22:55]Write to MH i2c: E2 08 00 D8 37 80 17 00 00 00 00 00 00 8F [08:22:55]Write i2c OK [08:22:55]MH_I2C_Read... [08:22:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:22:55]Read from MH i2c: E2 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 FD 00 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 FD 00 D8 37 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AD [08:22:55]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:22:55]wFMCommunicate OK [08:22:55]wFMCommunicate request_size=4 [08:22:55]MH_SAM_APDU [08:22:55]CAPDU: 80 17 00 00 [08:22:55]Write to MH i2c: E2 08 00 D9 37 80 17 00 00 00 00 00 00 90 [08:22:55]Write i2c OK [08:22:55]MH_I2C_Read... [08:22:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:22:55]Read from MH i2c: E2 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 FD 00 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 FD 00 D9 37 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 02 [08:22:55]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:22:55]wFMCommunicate OK [08:22:55]wFMCommunicate request_size=4 [08:22:55]MH_SAM_APDU [08:22:55]CAPDU: 80 17 00 00 [08:22:55]Write to MH i2c: E2 08 00 DA 37 80 17 00 00 00 00 00 00 91 [08:22:55]Write i2c OK [08:22:55]MH_I2C_Read... [08:22:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [08:22:55]Read from MH i2c: E2 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 E0 00 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 E0 00 DA 37 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7B [08:22:55]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:22:55]wFMCommunicate OK [08:22:55]SAM_PROTO_GetFMData done [08:22:55]requested_item fm.sale_refund.total is exist - process it [08:22:55]requested_item fm.buy.total is exist - process it [08:22:55]requested_item shift.sale.total is exist - process it [08:22:55]SAM_PROTO_GetShiftData [08:22:55]wFMCommunicate request_size=4 [08:22:55]MH_SAM_APDU [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]/dev/ttyS4 opened [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 E4 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 89 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725E4 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 9362005+1703893795=1713255800 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 E4 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 8A [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 65 00 64 00 FF FF A7 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 78 35 1E 66 23 5B 8F 65 A2 [08:23:20]Current date/time: 16.04.2024 08:23 [08:23:20]FM_Init [08:23:20]wFMConnect [08:23:20]MH_SAM_On [08:23:20]Write to MH i2c: E0 00 00 08 00 E7 [08:23:20]Write i2c OK [08:23:20]MH_I2C_Read... [08:23:20]*** iso7816_init finished! [08:23:20]*** atr: [08:23:20]*** 0F 3B D5 18 FF 81 91 FE [08:23:20]*** 1F C3 80 73 C8 21 10 0A [08:23:20]*** 00 00 00 00 00 00 00 00 [08:23:20]*** 00 00 00 00 00 00 00 00 [08:23:20]*** 00 00 00 00 00 00 00 00 [08:23:20]*** 00 00 00 00 00 00 00 00 [08:23:20]*** 00 00 00 00 00 00 00 00 [08:23:20]*** 00 00 00 00 00 00 00 00 [08:23:20]Read from MH i2c: E0 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E0 10 00 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [08:23:20]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [08:23:20]wFMCommunicate request_size=10 [08:23:20]MH_SAM_APDU [08:23:20]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [08:23:20]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [08:23:20]Write i2c OK [08:23:20]MH_I2C_Read... [08:23:20]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [08:23:20]Read from MH i2c: E2 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 03 00 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [08:23:20]RAPDU: 90 00 [08:23:20]wFMCommunicate OK [08:23:20]wFMCommunicate request_size=4 [08:23:20]MH_SAM_APDU [08:23:20]CAPDU: 80 11 00 00 [08:23:20]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [08:23:20]Write i2c OK [08:23:20]MH_I2C_Read... [08:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:20]Read from MH i2c: E2 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 17 00 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D3 [08:23:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:23:20]wFMCommunicate OK [08:23:20]Detected FM SN is 0000000000963154 [08:23:20]Stored FM SN is 0000000000963154 [08:23:20]wFMCommunicate request_size=9 [08:23:20]MH_SAM_APDU [08:23:20]CAPDU: 80 16 00 00 04 9D 42 01 00 [08:23:20]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 9D 42 01 00 00 00 72 [08:23:20]Write i2c OK [08:23:20]MH_I2C_Read... [08:23:20]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [08:23:20]Read from MH i2c: E2 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 03 00 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [08:23:20]RAPDU: 90 00 [08:23:20]wFMCommunicate OK [08:23:20]FM PIN OK [08:23:20]wFMCommunicate request_size=8 [08:23:20]MH_SAM_APDU [08:23:20]CAPDU: 80 14 04 00 03 02 00 01 [08:23:20]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [08:23:20]Write i2c OK [08:23:20]MH_I2C_Read... [08:23:20]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [08:23:20]Read from MH i2c: E2 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 03 00 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [08:23:20]RAPDU: 90 00 [08:23:20]wFMCommunicate OK [08:23:20]wFMCommunicate request_size=13 [08:23:20]MH_SAM_APDU [08:23:20]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [08:23:20]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [08:23:20]Write i2c OK [08:23:20]MH_I2C_Read... [08:23:20]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [08:23:20]Read from MH i2c: E2 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 03 00 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [08:23:20]RAPDU: 90 00 [08:23:20]wFMCommunicate OK [08:23:20]wFMCommunicate request_size=4 [08:23:20]MH_SAM_APDU [08:23:20]CAPDU: 80 11 00 00 [08:23:20]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [08:23:20]Write i2c OK [08:23:20]MH_I2C_Read... [08:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:20]Read from MH i2c: E2 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 17 00 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D7 [08:23:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:23:20]wFMCommunicate OK [08:23:20]DocumentArchiveInit [08:23:20]Start Httpd... [08:23:20]Httpd thread 3067563364 created [08:23:20]Write to MH i2c: 01 00 00 0F 00 0F [08:23:20]Write i2c OK [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: 01 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: 01 07 00 [08:23:20]MH_I2C_Read... [08:23:20]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [08:23:20]MH Int Process started [08:23:20]Allocated Socket 8 [08:23:20]Bind OK [08:23:20]Listen OK [08:23:20]httpd running on port 8080 [08:23:20]Waiting for new connection... [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:02]accept exits with 9 [08:25:02]New connection [08:25:02]New thread 3067276644 created [08:25:02]Waiting for new connection... [08:25:02] Sock 9.Parse request [08:25:02]Sock 9.Check first char [08:25:02]Sock 9.First char is OK [08:25:02]request: POST /json_proto HTTP/1.0 [08:25:02]Method: POST [08:25:02]URL: /json_proto [08:25:02]Method is POST - this is cgi request [08:25:02]url: /json_proto [08:25:02]query_string will be loaded in cgi processing [08:25:02]execute_cgi json_proto POST (null) [08:25:02]execute_cgi path=json_proto method=POST [08:25:02]POST find Content-Length [08:25:02]Host: 172.17.33.3:8080 [08:25:02]Content-Length: 846 [08:25:02]Content-Type: application/json [08:25:02] [08:25:02]POST finish read [08:25:02]Found Content-Length = 846 [08:25:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 44.920, "sum" : 1500.33, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:02]execute_script... [08:25:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 44.920, "sum" : 1500.33, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:02]POST & json_proto [08:25:02]process_json_proto [08:25:02]json parsed OK: [08:25:02]protocol is kg_v1.0 [08:25:02]action value=close_receipt [08:25:02]process_action close_receipt [08:25:02]cmd_close_receipt [08:25:02]MH_GetDate [08:25:02]Write to MH i2c: F0 00 00 10 00 FF [08:25:02]Write i2c OK [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: F0 [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: F0 09 00 [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: F0 09 00 10 00 00 DF 35 1E 66 23 5B 8F 65 12 [08:25:02]GetLastDocTimeStamp 1713255656 [08:25:02]current date 1713255903 [08:25:02]FM_GetShiftState [08:25:02]SAM_PROTO_GetShiftState [08:25:02]wFMCommunicate request_size=4 [08:25:02]MH_SAM_APDU [08:25:02]CAPDU: 80 13 01 00 [08:25:02]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [08:25:02]Write i2c OK [08:25:02]MH_I2C_Read... [08:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:02]Read from MH i2c: E2 [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: E2 0E 00 [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 3C [08:25:02]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:25:02]wFMCommunicate OK [08:25:02]SAM_PROTO_GetShiftState done [08:25:02]FM_GetShiftState done [08:25:02]opened in 1713226843 [08:25:02]opened+sec_in_day 1713313243 [08:25:02]quantity*price = 150032 [08:25:02]sum+1 = 150034 [08:25:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.33 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.33 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 31 16.04.2024 08:25 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29757 ФПД: 187053790109251 1/tax-web-control/client/api/v1/ticket?date=20240416T082503&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29757&fm=187053790109251&tin=02508201610067®Number=0000138879044617&sum=150033 [08:25:03]StoreToDocumentArchive [08:25:03]shift 118 fd 29757 [08:25:03]save to /storage/0118/doc_00029757 [08:25:03]save last doc name /storage/0118/doc_00029757 to /storage/kkm_last_doc_name [08:25:03]save OK [08:25:03]Clear old archive folders... [08:25:03]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:25:03]tlvbuf is 00188B60 [08:25:03]SAM_PROTO_ClearQueue [08:25:03]wFMCommunicate request_size=4 [08:25:03]MH_SAM_APDU [08:25:03]CAPDU: 80 09 00 00 [08:25:03]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [08:25:03]Write i2c OK [08:25:03]MH_I2C_Read... [08:25:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:03]Read from MH i2c: E2 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 03 00 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [08:25:03]RAPDU: 90 00 [08:25:03]wFMCommunicate OK [08:25:03]SAM_PROTO_ClearQueue done [08:25:03]KKMCreateOFDPacket [08:25:03]OFDProtocolAddRootSTLVToBuf [08:25:03]FM_MakeSignedData [08:25:03]FM_MakeSignedData [08:25:03]SAM_PROTO_SignData [08:25:03]wFMCommunicate request_size=4 [08:25:03]MH_SAM_APDU [08:25:03]CAPDU: 80 0D 01 02 [08:25:03]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [08:25:03]Write i2c OK [08:25:03]MH_I2C_Read... [08:25:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:03]Read from MH i2c: E2 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 03 00 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [08:25:03]RAPDU: 90 00 [08:25:03]wFMCommunicate OK [08:25:03]wFMCommunicate request_size=255 [08:25:03]MH_SAM_APDU [08:25:03]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 DF 35 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 74 00 00 35 04 06 00 AA 1F [08:25:03]Write to MH i2c: E2 02 01 20 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 DF 35 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 74 00 00 35 04 06 00 AA 1F 00 00 1D [08:25:03]Write i2c OK [08:25:03]MH_I2C_Read... [08:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:03]Read from MH i2c: E2 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 03 00 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [08:25:03]RAPDU: 90 00 [08:25:03]wFMCommunicate OK [08:25:03]wFMCommunicate request_size=9 [08:25:03]MH_SAM_APDU [08:25:03]CAPDU: 80 0D 02 02 04 DA B6 9E 43 [08:25:03]Write to MH i2c: E2 0C 00 21 00 80 0D 02 02 04 00 DA B6 9E 43 00 00 14 [08:25:03]Write i2c OK [08:25:03]MH_I2C_Read... [08:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:03]Read from MH i2c: E2 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 03 00 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [08:25:03]RAPDU: 90 00 [08:25:03]wFMCommunicate OK [08:25:03]wFMCommunicate request_size=4 [08:25:03]MH_SAM_APDU [08:25:03]CAPDU: 80 0D 03 02 [08:25:03]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [08:25:03]Write i2c OK [08:25:03]MH_I2C_Read... [08:25:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:03]Read from MH i2c: E2 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 0B 00 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 0B 00 22 00 00 1F 9B B9 BC D9 37 31 A8 90 00 B6 [08:25:03]RAPDU: 1F 9B B9 BC D9 37 31 A8 90 00 [08:25:03]wFMCommunicate OK [08:25:03]SAM_PROTO_SignData done [08:25:03]FM_MakeSignedData done [08:25:03]CreateOFDProtocolMessage [08:25:03]wFMCommunicate request_size=4 [08:25:03]MH_SAM_APDU [08:25:03]CAPDU: 80 11 00 00 [08:25:03]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [08:25:03]Write i2c OK [08:25:03]MH_I2C_Read... [08:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:03]Read from MH i2c: E2 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 17 00 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EC [08:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:25:03]wFMCommunicate OK [08:25:03]CreateOFDProtocolMessage done [08:25:03]OFDSenderStorePacket 29757 [08:25:03]StoreOFDPacket docnum=29757 [08:25:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 15 56 06 01 74 83 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 DF 35 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 74 00 00 35 04 06 00 AA 1F DA B6 9E 43 1F 9B B9 BC D9 37 31 A8 [08:25:03]CheckFolder [08:25:03]dirname=/storage/ofd_packets [08:25:03]CheckFolder done [08:25:03]ProducePacketName [08:25:03]name=ofd_packets/00029757 [08:25:03]NVStorageSaveData ofd_packets/00029757 [08:25:03]File name is /storage/ofd_packets/00029757 [08:25:03]Write 300 bytes [08:25:03]NVStorageSaveData done [08:25:03]OFDSenderStorePacket done [08:25:03]KKMCreateOFDPacket done [08:25:03]NVStorageSaveData kkm_last_timestamp [08:25:03]File name is /storage/kkm_last_timestamp [08:25:03]Write 4 bytes [08:25:03]NVStorageSaveData done [08:25:03]ExternCall_PrintAddStr [08:25:03]wPrintStart [08:25:03]Write to MH i2c: 01 00 00 24 00 24 [08:25:03]Write i2c OK [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: 01 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: 01 07 00 [08:25:03]MH_I2C_Read... [08:25:03]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [08:25:03]RasterBufferAndPrint [08:25:03]line Счет N : (1)348234 [08:25:03]line ИНН: 02508201610067 [08:25:03]line Контрольно-Кассовый Чек [08:25:03]line ПРОДАЖА [08:25:03]line ТРК (МРК, ГНК) : 71 [08:25:03]line Товар: 2711129700 [08:25:03]line ГАЗ-К-5 [08:25:03]line 44.920 * 33.40 [08:25:03]line = 1500.33 [08:25:03]line НДС 12% НСП 1% [08:25:03]line > о реализуемом товаре [08:25:03]line ИТОГО: 1500.33 [08:25:03]line НСП 1% : 13.28 [08:25:03]line НДС 12% : 159.33 [08:25:03]line Наличными: 0.00 [08:25:03]line Безнал.: 1500.33 [08:25:03]line Место: АЗС № 108 "Партнер Нефть" [08:25:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:25:03]line СНО: Общий режим [08:25:03]line Чек 31 16.04.2024 08:25 [08:25:03]line Смена: 118 ФФД: 1.0 [08:25:03]line ЗНМ: 0300000027 [08:25:03]line РНМ: 0000138879044617 [08:25:03]line Версия ККМ: 001 [08:25:04]line Платежная система: АКБ Кыргызстан [08:25:04]line ФМ: 0000000000963154 [08:25:04]line ФД: 29757 [08:25:04]line ФПД: 187053790109251 [08:25:04]line 1/tax-web-control/client/api/v1/ticket?date=20240416T082503&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29757&fm=187053790109251&tin=02508201610067®Number=0000138879044617&sum=150033 [08:25:04]OFD Sender: Processing packet 29757 [packets to send 8, broken 7] [08:25:04]ProducePacketName [08:25:04]name=ofd_packets/00029757 [08:25:04]OFD Sender: To server: pG, [08:25:04]CommunicateWithHost lk.salyk.kg:30040 [08:25:04]ConnectInit lk.salyk.kg [08:25:04]written 0, free lines is 4095 [08:25:04]Connected sock=10 [08:25:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 15 56 06 01 74 83 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 AF 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 DF 35 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 74 00 00 35 04 06 00 AA 1F DA B6 9E 43 1F 9B B9 BC D9 37 31 A8 [08:25:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3F 18 47 00 07 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 74 00 00 F4 03 04 00 7D E0 1D 66 B6 04 01 00 00 9E 37 17 BD 29 5B 06 9A [08:25:04]CommunicateWithHost err = 0 [08:25:04]CheckOFDResponse [08:25:04]1017 (14) - 77093643461234 [08:25:04]1041 (16) - 0000000000963154 [08:25:04]1040 (4) - 29757 [08:25:04]1012 (4) - 16.04.2024 02:20 [08:25:04]1206 (1) - 0 [08:25:04]OFD Sender: Remove packet 29757 [08:25:04]ProducePacketName [08:25:04]name=ofd_packets/00029757 [08:25:04]NVStorageDeleteData [08:25:04]Write to MH i2c: 01 00 00 4D 00 4D [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: 01 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: 01 07 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: 01 07 00 4D 00 00 00 00 00 00 E6 0C 46 [08:25:04]RasterBufferAndPrint [08:25:04]line [08:25:04]line [08:25:04]line [08:25:04]line [08:25:04]line [08:25:04]written 0, free lines is 3308 [08:25:04]MH_Cut [08:25:04]Write to MH i2c: D1 01 00 54 00 01 26 [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: D1 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: D1 01 00 [08:25:04]MH_I2C_Read... [08:25:04]Read from MH i2c: D1 01 00 54 00 00 25 [08:25:04]Write to MH i2c: 01 00 00 55 00 55 [08:25:04]Write i2c OK [08:25:04]MH_I2C_Read... [08:25:05]OFD Sender: No OFD packet to send [08:25:05]*** Cut start [08:25:05]*** Partial cut [08:25:05]*** CUTSNS_PIN = 1 [08:25:05]*** CUTSNS_PIN = 0 [08:25:05]*** Brake cut motor [08:25:06]Read from MH i2c: 01 [08:25:06]MH_I2C_Read... [08:25:06]*** Stop cut motor [08:25:06]*** Cut end [08:25:06]Read from MH i2c: 01 07 00 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: 01 07 00 55 00 00 00 00 00 00 FF 0F 6A [08:25:06]process_action close_receipt done [08:25:06]requested_data is exist [08:25:06]produce_requested_data [08:25:06]requested_item fm.sn is exist - process it [08:25:06]wFMCommunicate request_size=4 [08:25:06]MH_SAM_APDU [08:25:06]CAPDU: 80 11 00 00 [08:25:06]Write to MH i2c: E2 08 00 56 00 80 11 00 00 00 00 00 00 D0 [08:25:06]Write i2c OK [08:25:06]MH_I2C_Read... [08:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:06]Read from MH i2c: E2 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 17 00 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 17 00 56 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1F [08:25:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:25:06]wFMCommunicate OK [08:25:06]requested_item fd.num is exist - process it [08:25:06]SAM_PROTO_GetFieldsCounters [08:25:06]wFMCommunicate request_size=4 [08:25:06]MH_SAM_APDU [08:25:06]CAPDU: 80 13 00 00 [08:25:06]Write to MH i2c: E2 08 00 57 00 80 13 00 00 00 00 00 00 D3 [08:25:06]Write i2c OK [08:25:06]MH_I2C_Read... [08:25:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:06]Read from MH i2c: E2 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 62 00 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 62 00 57 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3D 74 00 00 0E 04 04 00 76 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 95 [08:25:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3D 74 00 00 0E 04 04 00 76 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 [08:25:06]wFMCommunicate OK [08:25:06]SAM_PROTO_GetFieldsCounters done [08:25:06]requested_item shift.num is exist - process it [08:25:06]requested_item shift.opened is exist - process it [08:25:06]req_shift_opened [08:25:06]FM_GetShiftState [08:25:06]SAM_PROTO_GetShiftState [08:25:06]wFMCommunicate request_size=4 [08:25:06]MH_SAM_APDU [08:25:06]CAPDU: 80 13 01 00 [08:25:06]Write to MH i2c: E2 08 00 58 00 80 13 01 00 00 00 00 00 D5 [08:25:06]Write i2c OK [08:25:06]MH_I2C_Read... [08:25:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:06]Read from MH i2c: E2 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 0E 00 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 0E 00 58 00 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 83 [08:25:06]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:25:06]wFMCommunicate OK [08:25:06]SAM_PROTO_GetShiftState done [08:25:06]FM_GetShiftState done [08:25:06]req_shift_opened done [08:25:06]requested_item shift.open_date is exist - process it [08:25:06]req_shift_open_date [08:25:06]req_shift_open_date done [08:25:06]produce_requested_data done [08:25:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29757,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:25:06]process_action_free close_receipt [08:25:06]json_value_free [08:25:06]json_value_free done [08:25:06]process_json_proto returns [08:25:06]Send response to host [08:25:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29757,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:25:06]free response buf [08:25:06]execute_script done [08:25:06]execute_script returns [08:25:06]free content buf [08:25:06]Sock 9.Close socket [08:25:06]Sock 9.Thread stoped [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:32]accept exits with 7 [08:25:32]New connection [08:25:32]New thread 3067133284 created [08:25:32]Thread 3067276644 joined [08:25:32]Waiting for new connection... [08:25:32] Sock 7.Parse request [08:25:32]Sock 7.Check first char [08:25:32]Sock 7.First char is OK [08:25:32]request: POST /json_proto HTTP/1.0 [08:25:32]Method: POST [08:25:32]URL: /json_proto [08:25:32]Method is POST - this is cgi request [08:25:32]url: /json_proto [08:25:32]query_string will be loaded in cgi processing [08:25:32]execute_cgi json_proto POST (null) [08:25:32]execute_cgi path=json_proto method=POST [08:25:32]POST find Content-Length [08:25:32]Host: 172.17.33.3:8080 [08:25:32]Content-Length: 675 [08:25:32]Content-Type: application/json [08:25:32] [08:25:32]POST finish read [08:25:32]Found Content-Length = 675 [08:25:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:32]execute_script... [08:25:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:32]POST & json_proto [08:25:32]process_json_proto [08:25:32]json parsed OK: [08:25:32]protocol is kg_v1.0 [08:25:32]action value=close_receipt [08:25:32]process_action close_receipt [08:25:32]cmd_close_receipt [08:25:32]MH_GetDate [08:25:32]Write to MH i2c: F0 00 00 59 00 48 [08:25:32]Write i2c OK [08:25:32]MH_I2C_Read... [08:25:32]Read from MH i2c: F0 [08:25:32]MH_I2C_Read... [08:25:32]Read from MH i2c: F0 09 00 [08:25:32]MH_I2C_Read... [08:25:32]Read from MH i2c: F0 09 00 59 00 00 FD 35 1E 66 23 5B 8F 65 79 [08:25:32]GetLastDocTimeStamp 1713255903 [08:25:32]current date 1713255933 [08:25:32]FM_GetShiftState [08:25:32]SAM_PROTO_GetShiftState [08:25:32]wFMCommunicate request_size=4 [08:25:32]MH_SAM_APDU [08:25:32]CAPDU: 80 13 01 00 [08:25:32]Write to MH i2c: E2 08 00 5A 00 80 13 01 00 00 00 00 00 D7 [08:25:32]Write i2c OK [08:25:32]MH_I2C_Read... [08:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:32]Read from MH i2c: E2 [08:25:32]MH_I2C_Read... [08:25:32]Read from MH i2c: E2 0E 00 [08:25:32]MH_I2C_Read... [08:25:32]Read from MH i2c: E2 0E 00 5A 00 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 85 [08:25:32]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:25:32]wFMCommunicate OK [08:25:32]SAM_PROTO_GetShiftState done [08:25:32]FM_GetShiftState done [08:25:32]opened in 1713226843 [08:25:32]opened+sec_in_day 1713313243 [08:25:32]quantity*price = 100016 [08:25:32]sum+1 = 100017 [08:25:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 32 16.04.2024 08:25 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29758 ФПД: 11078877349781 1/tax-web-control/client/api/v1/ticket?date=20240416T082533&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29758&fm=11078877349781&tin=02508201610067®Number=0000138879044617&sum=100000 [08:25:33]StoreToDocumentArchive [08:25:33]shift 118 fd 29758 [08:25:33]save to /storage/0118/doc_00029758 [08:25:33]save last doc name /storage/0118/doc_00029758 to /storage/kkm_last_doc_name [08:25:33]save OK [08:25:33]Clear old archive folders... [08:25:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:25:33]tlvbuf is 0017BAC0 [08:25:33]SAM_PROTO_ClearQueue [08:25:33]wFMCommunicate request_size=4 [08:25:33]MH_SAM_APDU [08:25:33]CAPDU: 80 09 00 00 [08:25:33]Write to MH i2c: E2 08 00 67 00 80 09 00 00 00 00 00 00 D9 [08:25:33]Write i2c OK [08:25:33]MH_I2C_Read... [08:25:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:33]Read from MH i2c: E2 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: E2 03 00 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: E2 03 00 67 00 00 90 00 DB [08:25:33]RAPDU: 90 00 [08:25:33]wFMCommunicate OK [08:25:33]SAM_PROTO_ClearQueue done [08:25:33]KKMCreateOFDPacket [08:25:33]OFDProtocolAddRootSTLVToBuf [08:25:33]FM_MakeSignedData [08:25:33]FM_MakeSignedData [08:25:33]SAM_PROTO_SignData [08:25:33]wFMCommunicate request_size=4 [08:25:33]MH_SAM_APDU [08:25:33]CAPDU: 80 0D 01 02 [08:25:33]Write to MH i2c: E2 08 00 68 00 80 0D 01 02 00 00 00 00 E1 [08:25:33]Write i2c OK [08:25:33]MH_I2C_Read... [08:25:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:33]Read from MH i2c: E2 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: E2 03 00 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [08:25:33]RAPDU: 90 00 [08:25:33]wFMCommunicate OK [08:25:33]wFMCommunicate request_size=255 [08:25:33]MH_SAM_APDU [08:25:33]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FD 35 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 74 00 00 35 04 06 00 [08:25:33]Write to MH i2c: E2 02 01 69 00 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FD 35 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 74 00 00 35 04 06 00 00 00 BB [08:25:33]Write i2c OK [08:25:33]MH_I2C_Read... [08:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:34]Read from MH i2c: E2 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: E2 03 00 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [08:25:34]RAPDU: 90 00 [08:25:34]wFMCommunicate OK [08:25:34]wFMCommunicate request_size=11 [08:25:34]MH_SAM_APDU [08:25:34]CAPDU: 80 0D 02 02 06 0A 13 80 8C 87 95 [08:25:34]Write to MH i2c: E2 0E 00 6A 00 80 0D 02 02 06 00 0A 13 80 8C 87 95 00 00 35 [08:25:34]Write i2c OK [08:25:34]MH_I2C_Read... [08:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:34]Read from MH i2c: E2 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: E2 03 00 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [08:25:34]RAPDU: 90 00 [08:25:34]wFMCommunicate OK [08:25:34]wFMCommunicate request_size=4 [08:25:34]MH_SAM_APDU [08:25:34]CAPDU: 80 0D 03 02 [08:25:34]Write to MH i2c: E2 08 00 6B 00 80 0D 03 02 00 00 00 00 E6 [08:25:34]Write i2c OK [08:25:34]MH_I2C_Read... [08:25:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:34]Read from MH i2c: E2 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: E2 0B 00 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: E2 0B 00 6B 00 00 71 B2 DC 38 2F 2E 43 DC 90 00 9A [08:25:34]RAPDU: 71 B2 DC 38 2F 2E 43 DC 90 00 [08:25:34]wFMCommunicate OK [08:25:34]SAM_PROTO_SignData done [08:25:34]FM_MakeSignedData done [08:25:34]CreateOFDProtocolMessage [08:25:34]wFMCommunicate request_size=4 [08:25:34]MH_SAM_APDU [08:25:34]CAPDU: 80 11 00 00 [08:25:34]Write to MH i2c: E2 08 00 6C 00 80 11 00 00 00 00 00 00 E6 [08:25:34]Write i2c OK [08:25:34]MH_I2C_Read... [08:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:34]Read from MH i2c: E2 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: E2 17 00 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: E2 17 00 6C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 35 [08:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:25:34]wFMCommunicate OK [08:25:34]CreateOFDProtocolMessage done [08:25:34]OFDSenderStorePacket 29758 [08:25:34]StoreOFDPacket docnum=29758 [08:25:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 8D 3E 08 01 F5 01 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FD 35 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 74 00 00 35 04 06 00 0A 13 80 8C 87 95 71 B2 DC 38 2F 2E 43 DC [08:25:34]CheckFolder [08:25:34]dirname=/storage/ofd_packets [08:25:34]CheckFolder done [08:25:34]ProducePacketName [08:25:34]name=ofd_packets/00029758 [08:25:34]NVStorageSaveData ofd_packets/00029758 [08:25:34]File name is /storage/ofd_packets/00029758 [08:25:34]Write 302 bytes [08:25:34]NVStorageSaveData done [08:25:34]OFDSenderStorePacket done [08:25:34]KKMCreateOFDPacket done [08:25:34]NVStorageSaveData kkm_last_timestamp [08:25:34]File name is /storage/kkm_last_timestamp [08:25:34]Write 4 bytes [08:25:34]NVStorageSaveData done [08:25:34]ExternCall_PrintAddStr [08:25:34]wPrintStart [08:25:34]Write to MH i2c: 01 00 00 6D 00 6D [08:25:34]Write i2c OK [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: 01 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: 01 07 00 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: 01 07 00 6D 00 00 00 00 00 00 FF 0F 82 [08:25:34]RasterBufferAndPrint [08:25:34]line Счет N : (1)348235 [08:25:34]line ИНН: 02508201610067 [08:25:34]line Контрольно-Кассовый Чек [08:25:34]line ПРОДАЖА [08:25:34]line ТРК (МРК, ГНК) : 22 [08:25:34]line Товар: 2710124130 [08:25:34]line SUPER-92-К-5 [08:25:34]line 15.200 * 65.80 [08:25:34]line = 1000.16 [08:25:34]line НДС 12% НСП 1% [08:25:34]line > о реализуемом товаре [08:25:34]line ОКРУГЛЕНИЕ: -0.16 [08:25:34]line ИТОГО: 1000.00 [08:25:34]line Внесено: 1000.00 [08:25:34]line СДАЧА: 0.00 [08:25:34]line НСП 1% : 8.85 [08:25:34]line НДС 12% : 106.21 [08:25:34]line Наличными: 1000.00 [08:25:34]line Безнал.: 0.00 [08:25:34]line Место: АЗС № 108 "Партнер Нефть" [08:25:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:25:34]line СНО: Общий режим [08:25:34]line Чек 32 16.04.2024 08:25 [08:25:34]line Смена: 118 ФФД: 1.0 [08:25:34]line ЗНМ: 0300000027 [08:25:34]line РНМ: 0000138879044617 [08:25:34]line Версия ККМ: 001 [08:25:34]line ФМ: 0000000000963154 [08:25:34]line ФД: 29758 [08:25:34]line ФПД: 11078877349781 [08:25:34]line 1/tax-web-control/client/api/v1/ticket?date=20240416T082533&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29758&fm=11078877349781&tin=02508201610067®Number=0000138879044617&sum=100000 [08:25:34]OFD Sender: Processing packet 29758 [packets to send 8, broken 7] [08:25:34]ProducePacketName [08:25:34]name=ofd_packets/00029758 [08:25:34]OFD Sender: To server: pG, [08:25:34]CommunicateWithHost lk.salyk.kg:30040 [08:25:34]ConnectInit lk.salyk.kg [08:25:34]written 0, free lines is 4095 [08:25:34]Connected sock=10 [08:25:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 8D 3E 08 01 F5 01 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FD 35 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 74 00 00 35 04 06 00 0A 13 80 8C 87 95 71 B2 DC 38 2F 2E 43 DC [08:25:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 17 C0 47 00 53 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 36 33 31 35 34 10 04 04 00 3E 74 00 00 F4 03 04 00 9B E0 1D 66 B6 04 01 00 00 41 B8 DB 07 D9 E3 7C 48 [08:25:34]CommunicateWithHost err = 0 [08:25:34]CheckOFDResponse [08:25:34]1017 (14) - 77093643461234 [08:25:34]1041 (16) - 0000000000963154 [08:25:34]1040 (4) - 29758 [08:25:34]1012 (4) - 16.04.2024 02:21 [08:25:34]1206 (1) - 0 [08:25:34]OFD Sender: Remove packet 29758 [08:25:34]ProducePacketName [08:25:34]name=ofd_packets/00029758 [08:25:34]NVStorageDeleteData [08:25:35]Write to MH i2c: 01 00 00 97 00 97 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 07 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 CD 0C 77 [08:25:35]RasterBufferAndPrint [08:25:35]line [08:25:35]line [08:25:35]line [08:25:35]line [08:25:35]line [08:25:35]written 0, free lines is 3281 [08:25:35]MH_Cut [08:25:35]Write to MH i2c: D1 01 00 9E 00 01 70 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: D1 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: D1 01 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: D1 01 00 9E 00 00 6F [08:25:35]Write to MH i2c: 01 00 00 9F 00 9F [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]OFD Sender: No OFD packet to send [08:25:35]*** Cut start [08:25:35]*** Partial cut [08:25:35]*** CUTSNS_PIN = 1 [08:25:35]*** CUTSNS_PIN = 0 [08:25:36]*** Brake cut motor [08:25:36]Read from MH i2c: 01 [08:25:36]MH_I2C_Read... [08:25:36]*** Stop cut motor [08:25:36]*** Cut end [08:25:36]Read from MH i2c: 01 07 00 [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: 01 07 00 9F 00 00 00 00 00 00 FF 0F B4 [08:25:36]process_action close_receipt done [08:25:36]requested_data is exist [08:25:36]produce_requested_data [08:25:36]requested_item fm.sn is exist - process it [08:25:36]wFMCommunicate request_size=4 [08:25:36]MH_SAM_APDU [08:25:36]CAPDU: 80 11 00 00 [08:25:36]Write to MH i2c: E2 08 00 A0 00 80 11 00 00 00 00 00 00 1A [08:25:36]Write i2c OK [08:25:36]MH_I2C_Read... [08:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:36]Read from MH i2c: E2 [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: E2 17 00 [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: E2 17 00 A0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 69 [08:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:25:36]wFMCommunicate OK [08:25:36]requested_item fd.num is exist - process it [08:25:36]SAM_PROTO_GetFieldsCounters [08:25:36]wFMCommunicate request_size=4 [08:25:36]MH_SAM_APDU [08:25:36]CAPDU: 80 13 00 00 [08:25:36]Write to MH i2c: E2 08 00 A1 00 80 13 00 00 00 00 00 00 1D [08:25:36]Write i2c OK [08:25:36]MH_I2C_Read... [08:25:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:36]Read from MH i2c: E2 [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: E2 62 00 [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: E2 62 00 A1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3E 74 00 00 0E 04 04 00 76 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 E3 [08:25:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3E 74 00 00 0E 04 04 00 76 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 [08:25:36]wFMCommunicate OK [08:25:36]SAM_PROTO_GetFieldsCounters done [08:25:36]requested_item shift.num is exist - process it [08:25:36]requested_item shift.opened is exist - process it [08:25:36]req_shift_opened [08:25:36]FM_GetShiftState [08:25:36]SAM_PROTO_GetShiftState [08:25:36]wFMCommunicate request_size=4 [08:25:36]MH_SAM_APDU [08:25:36]CAPDU: 80 13 01 00 [08:25:36]Write to MH i2c: E2 08 00 A2 00 80 13 01 00 00 00 00 00 1F [08:25:36]Write i2c OK [08:25:36]MH_I2C_Read... [08:25:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:36]Read from MH i2c: E2 [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: E2 0E 00 [08:25:36]MH_I2C_Read... [08:25:36]Read from MH i2c: E2 0E 00 A2 00 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 CD [08:25:36]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:25:36]wFMCommunicate OK [08:25:36]SAM_PROTO_GetShiftState done [08:25:36]FM_GetShiftState done [08:25:36]req_shift_opened done [08:25:36]requested_item shift.open_date is exist - process it [08:25:36]req_shift_open_date [08:25:36]req_shift_open_date done [08:25:36]produce_requested_data done [08:25:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29758,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:25:36]process_action_free close_receipt [08:25:36]json_value_free [08:25:36]json_value_free done [08:25:36]process_json_proto returns [08:25:36]Send response to host [08:25:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29758,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:25:36]free response buf [08:25:36]execute_script done [08:25:36]execute_script returns [08:25:36]free content buf [08:25:36]Sock 7.Close socket [08:25:36]Sock 7.Thread stoped [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:06]accept exits with 9 [08:29:06]New connection [08:29:06]New thread 3067276644 created [08:29:06]Thread 3067133284 joined [08:29:06]Waiting for new connection... [08:29:06] Sock 9.Parse request [08:29:06]Sock 9.Check first char [08:29:06]Sock 9.First char is OK [08:29:06]request: POST /json_proto HTTP/1.0 [08:29:06]Method: POST [08:29:06]URL: /json_proto [08:29:06]Method is POST - this is cgi request [08:29:06]url: /json_proto [08:29:06]query_string will be loaded in cgi processing [08:29:06]execute_cgi json_proto POST (null) [08:29:06]execute_cgi path=json_proto method=POST [08:29:06]POST find Content-Length [08:29:06]Host: 172.17.33.3:8080 [08:29:06]Content-Length: 663 [08:29:06]Content-Type: application/json [08:29:06] [08:29:06]POST finish read [08:29:06]Found Content-Length = 663 [08:29:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 25.000, "sum" : 1620.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "payments": [ { "type": 0, "sum" : 1620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:06]execute_script... [08:29: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)348237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 25.000, "sum" : 1620.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "payments": [ { "type": 0, "sum" : 1620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:06]POST & json_proto [08:29:06]process_json_proto [08:29:06]json parsed OK: [08:29:06]protocol is kg_v1.0 [08:29:06]action value=close_receipt [08:29:06]process_action close_receipt [08:29:06]cmd_close_receipt [08:29:06]MH_GetDate [08:29:06]Write to MH i2c: F0 00 00 A3 00 92 [08:29:06]Write i2c OK [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: F0 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: F0 09 00 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: F0 09 00 A3 00 00 D2 36 1E 66 23 5B 8F 65 99 [08:29:06]GetLastDocTimeStamp 1713255933 [08:29:06]current date 1713256146 [08:29:06]FM_GetShiftState [08:29:06]SAM_PROTO_GetShiftState [08:29:06]wFMCommunicate request_size=4 [08:29:06]MH_SAM_APDU [08:29:06]CAPDU: 80 13 01 00 [08:29:06]Write to MH i2c: E2 08 00 A4 00 80 13 01 00 00 00 00 00 21 [08:29:06]Write i2c OK [08:29:06]MH_I2C_Read... [08:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:06]Read from MH i2c: E2 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: E2 0E 00 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: E2 0E 00 A4 00 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 CF [08:29:06]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:29:06]wFMCommunicate OK [08:29:06]SAM_PROTO_GetShiftState done [08:29:06]FM_GetShiftState done [08:29:06]opened in 1713226843 [08:29:06]opened+sec_in_day 1713313243 [08:29:06]quantity*price = 162000 [08:29:06]sum+1 = 162001 [08:29:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1620.00 Внесено: 1700.00 СДАЧА: 80.00 НСП 1% : 14.34 НДС 12% : 172.03 Наличными: 1620.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 33 16.04.2024 08:29 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29759 ФПД: 195745426387951 1/tax-web-control/client/api/v1/ticket?date=20240416T082906&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29759&fm=195745426387951&tin=02508201610067®Number=0000138879044617&sum=162000 [08:29:07]StoreToDocumentArchive [08:29:07]shift 118 fd 29759 [08:29:07]save to /storage/0118/doc_00029759 [08:29:07]save last doc name /storage/0118/doc_00029759 to /storage/kkm_last_doc_name [08:29:07]save OK [08:29:07]Clear old archive folders... [08:29:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:07]tlvbuf is 00175D20 [08:29:07]SAM_PROTO_ClearQueue [08:29:07]wFMCommunicate request_size=4 [08:29:07]MH_SAM_APDU [08:29:07]CAPDU: 80 09 00 00 [08:29:07]Write to MH i2c: E2 08 00 B1 00 80 09 00 00 00 00 00 00 23 [08:29:07]Write i2c OK [08:29:07]MH_I2C_Read... [08:29:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:07]Read from MH i2c: E2 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 03 00 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 03 00 B1 00 00 90 00 25 [08:29:07]RAPDU: 90 00 [08:29:07]wFMCommunicate OK [08:29:07]SAM_PROTO_ClearQueue done [08:29:07]KKMCreateOFDPacket [08:29:07]OFDProtocolAddRootSTLVToBuf [08:29:07]FM_MakeSignedData [08:29:07]FM_MakeSignedData [08:29:07]SAM_PROTO_SignData [08:29:07]wFMCommunicate request_size=4 [08:29:07]MH_SAM_APDU [08:29:07]CAPDU: 80 0D 01 02 [08:29:07]Write to MH i2c: E2 08 00 B2 00 80 0D 01 02 00 00 00 00 2B [08:29:07]Write i2c OK [08:29:07]MH_I2C_Read... [08:29:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:07]Read from MH i2c: E2 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 03 00 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 03 00 B2 00 00 90 00 26 [08:29:07]RAPDU: 90 00 [08:29:07]wFMCommunicate OK [08:29:07]wFMCommunicate request_size=255 [08:29:07]MH_SAM_APDU [08:29: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D0 78 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 78 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 43 00 00 00 00 07 04 06 00 D0 78 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D2 36 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 74 00 00 35 04 06 00 B2 [08:29:07]Write to MH i2c: E2 02 01 B3 00 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 A8 61 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D0 78 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 78 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 43 00 00 00 00 07 04 06 00 D0 78 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D2 36 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 74 00 00 35 04 06 00 B2 00 00 3F [08:29:07]Write i2c OK [08:29:07]MH_I2C_Read... [08:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:07]Read from MH i2c: E2 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 03 00 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [08:29:07]RAPDU: 90 00 [08:29:07]wFMCommunicate OK [08:29:07]wFMCommunicate request_size=10 [08:29:07]MH_SAM_APDU [08:29:07]CAPDU: 80 0D 02 02 05 07 88 9B 33 EF [08:29:07]Write to MH i2c: E2 0D 00 B4 00 80 0D 02 02 05 00 07 88 9B 33 EF 00 00 84 [08:29:07]Write i2c OK [08:29:07]MH_I2C_Read... [08:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:07]Read from MH i2c: E2 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 03 00 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [08:29:07]RAPDU: 90 00 [08:29:07]wFMCommunicate OK [08:29:07]wFMCommunicate request_size=4 [08:29:07]MH_SAM_APDU [08:29:07]CAPDU: 80 0D 03 02 [08:29:07]Write to MH i2c: E2 08 00 B5 00 80 0D 03 02 00 00 00 00 30 [08:29:07]Write i2c OK [08:29:07]MH_I2C_Read... [08:29:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:07]Read from MH i2c: E2 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 0B 00 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 0B 00 B5 00 00 D9 B8 28 FD 86 04 7F 9A 90 00 8A [08:29:07]RAPDU: D9 B8 28 FD 86 04 7F 9A 90 00 [08:29:07]wFMCommunicate OK [08:29:07]SAM_PROTO_SignData done [08:29:07]FM_MakeSignedData done [08:29:07]CreateOFDProtocolMessage [08:29:07]wFMCommunicate request_size=4 [08:29:07]MH_SAM_APDU [08:29:07]CAPDU: 80 11 00 00 [08:29:07]Write to MH i2c: E2 08 00 B6 00 80 11 00 00 00 00 00 00 30 [08:29:07]Write i2c OK [08:29:07]MH_I2C_Read... [08:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:07]Read from MH i2c: E2 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 17 00 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 17 00 B6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7F [08:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:29:07]wFMCommunicate OK [08:29:07]CreateOFDProtocolMessage done [08:29:07]OFDSenderStorePacket 29759 [08:29:07]StoreOFDPacket docnum=29759 [08:29:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9E 1F 07 01 26 28 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 A8 61 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D0 78 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 78 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 43 00 00 00 00 07 04 06 00 D0 78 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D2 36 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 74 00 00 35 04 06 00 B2 07 88 9B 33 EF D9 B8 28 FD 86 04 7F 9A [08:29:07]CheckFolder [08:29:07]dirname=/storage/ofd_packets [08:29:07]CheckFolder done [08:29:07]ProducePacketName [08:29:07]name=ofd_packets/00029759 [08:29:07]NVStorageSaveData ofd_packets/00029759 [08:29:07]File name is /storage/ofd_packets/00029759 [08:29:07]Write 301 bytes [08:29:07]NVStorageSaveData done [08:29:07]OFDSenderStorePacket done [08:29:07]KKMCreateOFDPacket done [08:29:07]NVStorageSaveData kkm_last_timestamp [08:29:07]File name is /storage/kkm_last_timestamp [08:29:07]Write 4 bytes [08:29:07]NVStorageSaveData done [08:29:07]ExternCall_PrintAddStr [08:29:07]wPrintStart [08:29:07]Write to MH i2c: 01 00 00 B7 00 B7 [08:29:07]Write i2c OK [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: 01 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: 01 07 00 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: 01 07 00 B7 00 00 00 00 00 00 FF 0F CC [08:29:07]RasterBufferAndPrint [08:29:07]line Счет N : (1)348237 [08:29:07]line ИНН: 02508201610067 [08:29:07]line Контрольно-Кассовый Чек [08:29:07]line ПРОДАЖА [08:29:07]line ТРК (МРК, ГНК) : 32 [08:29:07]line Товар: 2710124130 [08:29:07]line Аи-92-К-5 [08:29:07]line 25.000 * 64.80 [08:29:07]line = 1620.00 [08:29:07]line НДС 12% НСП 1% [08:29:07]line > о реализуемом товаре [08:29:07]line ИТОГО: 1620.00 [08:29:07]line Внесено: 1700.00 [08:29:07]line СДАЧА: 80.00 [08:29:07]line НСП 1% : 14.34 [08:29:07]line НДС 12% : 172.03 [08:29:07]line Наличными: 1620.00 [08:29:07]line Безнал.: 0.00 [08:29:07]line Место: АЗС № 108 "Партнер Нефть" [08:29:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:29:07]line СНО: Общий режим [08:29:07]line Чек 33 16.04.2024 08:29 [08:29:07]line Смена: 118 ФФД: 1.0 [08:29:07]line ЗНМ: 0300000027 [08:29:07]line РНМ: 0000138879044617 [08:29:07]line Версия ККМ: 001 [08:29:07]line ФМ: 0000000000963154 [08:29:07]line ФД: 29759 [08:29:07]line ФПД: 195745426387951 [08:29:07]line 1/tax-web-control/client/api/v1/ticket?date=20240416T082906&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29759&fm=195745426387951&tin=02508201610067®Number=0000138879044617&sum=162000 [08:29:08]OFD Sender: Processing packet 29759 [packets to send 8, broken 7] [08:29:08]ProducePacketName [08:29:08]name=ofd_packets/00029759 [08:29:08]OFD Sender: To server: pG, [08:29:08]CommunicateWithHost lk.salyk.kg:30040 [08:29:08]ConnectInit lk.salyk.kg [08:29:08]written 0, free lines is 4095 [08:29:08]Connected sock=10 [08:29:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9E 1F 07 01 26 28 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 A8 61 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D0 78 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 78 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 43 00 00 00 00 07 04 06 00 D0 78 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D2 36 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 74 00 00 35 04 06 00 B2 07 88 9B 33 EF D9 B8 28 FD 86 04 7F 9A [08:29:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 20 6B 47 00 CD 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 36 33 31 35 34 10 04 04 00 3F 74 00 00 F4 03 04 00 71 E1 1D 66 B6 04 01 00 00 3D 4C 5D F0 4C E2 F5 D9 [08:29:08]CommunicateWithHost err = 0 [08:29:08]CheckOFDResponse [08:29:08]1017 (14) - 77093643461234 [08:29:08]1041 (16) - 0000000000963154 [08:29:08]1040 (4) - 29759 [08:29:08]1012 (4) - 16.04.2024 02:24 [08:29:08]1206 (1) - 0 [08:29:08]OFD Sender: Remove packet 29759 [08:29:08]ProducePacketName [08:29:08]name=ofd_packets/00029759 [08:29:08]NVStorageDeleteData [08:29:08]Write to MH i2c: 01 00 00 E0 00 E0 [08:29:08]Write i2c OK [08:29:08]MH_I2C_Read... [08:29:08]Read from MH i2c: 01 [08:29:08]MH_I2C_Read... [08:29:08]Read from MH i2c: 01 07 00 [08:29:08]MH_I2C_Read... [08:29:08]Read from MH i2c: 01 07 00 E0 00 00 00 00 00 00 F2 0C E5 [08:29:08]RasterBufferAndPrint [08:29:08]line [08:29:08]line [08:29:08]line [08:29:08]line [08:29:08]line [08:29:08]written 0, free lines is 3320 [08:29:08]MH_Cut [08:29:08]Write to MH i2c: D1 01 00 E7 00 01 B9 [08:29:08]Write i2c OK [08:29:08]MH_I2C_Read... [08:29:08]Read from MH i2c: D1 [08:29:08]MH_I2C_Read... [08:29:08]Read from MH i2c: D1 01 00 [08:29:08]MH_I2C_Read... [08:29:08]Read from MH i2c: D1 01 00 E7 00 00 B8 [08:29:08]Write to MH i2c: 01 00 00 E8 00 E8 [08:29:08]Write i2c OK [08:29:08]MH_I2C_Read... [08:29:08]OFD Sender: No OFD packet to send [08:29:09]*** Cut start [08:29:09]*** Partial cut [08:29:09]*** CUTSNS_PIN = 1 [08:29:09]*** CUTSNS_PIN = 0 [08:29:09]*** Brake cut motor [08:29:09]Read from MH i2c: 01 [08:29:09]MH_I2C_Read... [08:29:09]*** Stop cut motor [08:29:09]*** Cut end [08:29:09]Read from MH i2c: 01 07 00 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: 01 07 00 E8 00 00 00 00 00 00 FF 0F FD [08:29:09]process_action close_receipt done [08:29:09]requested_data is exist [08:29:09]produce_requested_data [08:29:09]requested_item fm.sn is exist - process it [08:29:09]wFMCommunicate request_size=4 [08:29:09]MH_SAM_APDU [08:29:09]CAPDU: 80 11 00 00 [08:29:09]Write to MH i2c: E2 08 00 E9 00 80 11 00 00 00 00 00 00 63 [08:29:09]Write i2c OK [08:29:09]MH_I2C_Read... [08:29:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:10]Read from MH i2c: E2 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: E2 17 00 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: E2 17 00 E9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B2 [08:29:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:29:10]wFMCommunicate OK [08:29:10]requested_item fd.num is exist - process it [08:29:10]SAM_PROTO_GetFieldsCounters [08:29:10]wFMCommunicate request_size=4 [08:29:10]MH_SAM_APDU [08:29:10]CAPDU: 80 13 00 00 [08:29:10]Write to MH i2c: E2 08 00 EA 00 80 13 00 00 00 00 00 00 66 [08:29:10]Write i2c OK [08:29:10]MH_I2C_Read... [08:29:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:10]Read from MH i2c: E2 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: E2 62 00 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: E2 62 00 EA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3F 74 00 00 0E 04 04 00 76 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 30 [08:29:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3F 74 00 00 0E 04 04 00 76 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 [08:29:10]wFMCommunicate OK [08:29:10]SAM_PROTO_GetFieldsCounters done [08:29:10]requested_item shift.num is exist - process it [08:29:10]requested_item shift.opened is exist - process it [08:29:10]req_shift_opened [08:29:10]FM_GetShiftState [08:29:10]SAM_PROTO_GetShiftState [08:29:10]wFMCommunicate request_size=4 [08:29:10]MH_SAM_APDU [08:29:10]CAPDU: 80 13 01 00 [08:29:10]Write to MH i2c: E2 08 00 EB 00 80 13 01 00 00 00 00 00 68 [08:29:10]Write i2c OK [08:29:10]MH_I2C_Read... [08:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:10]Read from MH i2c: E2 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: E2 0E 00 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: E2 0E 00 EB 00 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 16 [08:29:10]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:29:10]wFMCommunicate OK [08:29:10]SAM_PROTO_GetShiftState done [08:29:10]FM_GetShiftState done [08:29:10]req_shift_opened done [08:29:10]requested_item shift.open_date is exist - process it [08:29:10]req_shift_open_date [08:29:10]req_shift_open_date done [08:29:10]produce_requested_data done [08:29:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29759,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:29:10]process_action_free close_receipt [08:29:10]json_value_free [08:29:10]json_value_free done [08:29:10]process_json_proto returns [08:29:10]Send response to host [08:29:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29759,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:29:10]free response buf [08:29:10]execute_script done [08:29:10]execute_script returns [08:29:10]free content buf [08:29:10]Sock 9.Close socket [08:29:10]Sock 9.Thread stoped [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:32]accept exits with 7 [08:29:32]New connection [08:29:32]New thread 3067133284 created [08:29:32]Thread 3067276644 joined [08:29:32]Waiting for new connection... [08:29:32] Sock 7.Parse request [08:29:32]Sock 7.Check first char [08:29:32]Sock 7.First char is OK [08:29:32]request: POST /json_proto HTTP/1.0 [08:29:32]Method: POST [08:29:32]URL: /json_proto [08:29:32]Method is POST - this is cgi request [08:29:32]url: /json_proto [08:29:32]query_string will be loaded in cgi processing [08:29:32]execute_cgi json_proto POST (null) [08:29:32]execute_cgi path=json_proto method=POST [08:29:32]POST find Content-Length [08:29:32]Host: 172.17.33.3:8080 [08:29:32]Content-Length: 682 [08:29:32]Content-Type: application/json [08:29:32] [08:29:32]POST finish read [08:29:32]Found Content-Length = 682 [08:29:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 18.910, "sum" : 1225.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1225.00, "total" : 1225.00, "payments": [ { "type": 0, "sum" : 1225.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:32]execute_script... [08:29:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 18.910, "sum" : 1225.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1225.00, "total" : 1225.00, "payments": [ { "type": 0, "sum" : 1225.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:32]POST & json_proto [08:29:32]process_json_proto [08:29:32]json parsed OK: [08:29:32]protocol is kg_v1.0 [08:29:32]action value=close_receipt [08:29:32]process_action close_receipt [08:29:32]cmd_close_receipt [08:29:32]MH_GetDate [08:29:32]Write to MH i2c: F0 00 00 EC 00 DB [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: F0 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: F0 09 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: F0 09 00 EC 00 00 ED 36 1E 66 23 5B 8F 65 FD [08:29:32]GetLastDocTimeStamp 1713256146 [08:29:32]current date 1713256173 [08:29:32]FM_GetShiftState [08:29:32]SAM_PROTO_GetShiftState [08:29:32]wFMCommunicate request_size=4 [08:29:32]MH_SAM_APDU [08:29:32]CAPDU: 80 13 01 00 [08:29:32]Write to MH i2c: E2 08 00 ED 00 80 13 01 00 00 00 00 00 6A [08:29:32]Write i2c OK [08:29:32]MH_I2C_Read... [08:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:32]Read from MH i2c: E2 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 0E 00 [08:29:32]MH_I2C_Read... [08:29:32]Read from MH i2c: E2 0E 00 ED 00 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 18 [08:29:32]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:29:32]wFMCommunicate OK [08:29:32]SAM_PROTO_GetShiftState done [08:29:32]FM_GetShiftState done [08:29:32]opened in 1713226843 [08:29:32]opened+sec_in_day 1713313243 [08:29:32]quantity*price = 122536 [08:29:32]sum+1 = 122538 [08:29:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1225.00 Внесено: 1225.00 СДАЧА: 0.00 НСП 1% : 10.84 НДС 12% : 130.13 Наличными: 1225.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 34 16.04.2024 08:29 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29760 ФПД: 72110335665638 1/tax-web-control/client/api/v1/ticket?date=20240416T082933&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29760&fm=72110335665638&tin=02508201610067®Number=0000138879044617&sum=122500 [08:29:33]StoreToDocumentArchive [08:29:33]shift 118 fd 29760 [08:29:33]save to /storage/0118/doc_00029760 [08:29:33]save last doc name /storage/0118/doc_00029760 to /storage/kkm_last_doc_name [08:29:33]save OK [08:29:33]Clear old archive folders... [08:29:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:33]tlvbuf is 0016A780 [08:29:33]SAM_PROTO_ClearQueue [08:29:33]wFMCommunicate request_size=4 [08:29:33]MH_SAM_APDU [08:29:33]CAPDU: 80 09 00 00 [08:29:33]Write to MH i2c: E2 08 00 FA 00 80 09 00 00 00 00 00 00 6C [08:29:33]Write i2c OK [08:29:33]MH_I2C_Read... [08:29:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:33]Read from MH i2c: E2 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: E2 03 00 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: E2 03 00 FA 00 00 90 00 6E [08:29:33]RAPDU: 90 00 [08:29:33]wFMCommunicate OK [08:29:33]SAM_PROTO_ClearQueue done [08:29:33]KKMCreateOFDPacket [08:29:33]OFDProtocolAddRootSTLVToBuf [08:29:33]FM_MakeSignedData [08:29:33]FM_MakeSignedData [08:29:33]SAM_PROTO_SignData [08:29:33]wFMCommunicate request_size=4 [08:29:33]MH_SAM_APDU [08:29:33]CAPDU: 80 0D 01 02 [08:29:33]Write to MH i2c: E2 08 00 FB 00 80 0D 01 02 00 00 00 00 74 [08:29:33]Write i2c OK [08:29:33]MH_I2C_Read... [08:29:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:33]Read from MH i2c: E2 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: E2 03 00 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: E2 03 00 FB 00 00 90 00 6F [08:29:33]RAPDU: 90 00 [08:29:33]wFMCommunicate OK [08:29:33]wFMCommunicate request_size=255 [08:29:33]MH_SAM_APDU [08:29:33]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 DE 49 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A9 DE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 DE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 32 00 00 00 00 07 04 06 00 84 DE 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 ED 36 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 74 00 00 35 04 06 00 41 [08:29:33]Write to MH i2c: E2 02 01 FC 00 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 DE 49 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A9 DE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 DE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 32 00 00 00 00 07 04 06 00 84 DE 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 ED 36 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 74 00 00 35 04 06 00 41 00 00 F4 [08:29:33]Write i2c OK [08:29:33]MH_I2C_Read... [08:29:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:33]Read from MH i2c: E2 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: E2 03 00 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: E2 03 00 FC 00 00 90 00 70 [08:29:33]RAPDU: 90 00 [08:29:33]wFMCommunicate OK [08:29:33]wFMCommunicate request_size=10 [08:29:33]MH_SAM_APDU [08:29:33]CAPDU: 80 0D 02 02 05 95 7E F1 25 E6 [08:29:33]Write to MH i2c: E2 0D 00 FD 00 80 0D 02 02 05 00 95 7E F1 25 E6 00 00 90 [08:29:33]Write i2c OK [08:29:33]MH_I2C_Read... [08:29:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:33]Read from MH i2c: E2 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: E2 03 00 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [08:29:33]RAPDU: 90 00 [08:29:33]wFMCommunicate OK [08:29:33]wFMCommunicate request_size=4 [08:29:33]MH_SAM_APDU [08:29:33]CAPDU: 80 0D 03 02 [08:29:33]Write to MH i2c: E2 08 00 FE 00 80 0D 03 02 00 00 00 00 79 [08:29:33]Write i2c OK [08:29:33]MH_I2C_Read... [08:29:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:33]OFD Sender: No OFD packet to send [08:29:33]Read from MH i2c: E2 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: E2 0B 00 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: E2 0B 00 FE 00 00 02 16 EA 14 C2 71 57 65 90 00 7F [08:29:33]RAPDU: 02 16 EA 14 C2 71 57 65 90 00 [08:29:33]wFMCommunicate OK [08:29:33]SAM_PROTO_SignData done [08:29:33]FM_MakeSignedData done [08:29:33]CreateOFDProtocolMessage [08:29:33]wFMCommunicate request_size=4 [08:29:33]MH_SAM_APDU [08:29:33]CAPDU: 80 11 00 00 [08:29:33]Write to MH i2c: E2 08 00 FF 00 80 11 00 00 00 00 00 00 79 [08:29:33]Write i2c OK [08:29:33]MH_I2C_Read... [08:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:34]Read from MH i2c: E2 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: E2 17 00 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: E2 17 00 FF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C8 [08:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:29:34]wFMCommunicate OK [08:29:34]CreateOFDProtocolMessage done [08:29:34]OFDSenderStorePacket 29760 [08:29:34]StoreOFDPacket docnum=29760 [08:29:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 65 36 07 01 D3 8C 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 DE 49 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A9 DE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 DE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 32 00 00 00 00 07 04 06 00 84 DE 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 ED 36 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 74 00 00 35 04 06 00 41 95 7E F1 25 E6 02 16 EA 14 C2 71 57 65 [08:29:34]CheckFolder [08:29:34]dirname=/storage/ofd_packets [08:29:34]CheckFolder done [08:29:34]ProducePacketName [08:29:34]name=ofd_packets/00029760 [08:29:34]NVStorageSaveData ofd_packets/00029760 [08:29:34]File name is /storage/ofd_packets/00029760 [08:29:34]Write 301 bytes [08:29:34]NVStorageSaveData done [08:29:34]OFDSenderStorePacket done [08:29:34]KKMCreateOFDPacket done [08:29:34]NVStorageSaveData kkm_last_timestamp [08:29:34]File name is /storage/kkm_last_timestamp [08:29:34]Write 4 bytes [08:29:34]NVStorageSaveData done [08:29:34]ExternCall_PrintAddStr [08:29:34]wPrintStart [08:29:34]Write to MH i2c: 01 00 00 00 01 01 [08:29:34]Write i2c OK [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: 01 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: 01 07 00 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: 01 07 00 00 01 00 00 00 00 00 FF 0F 16 [08:29:34]RasterBufferAndPrint [08:29:34]line Счет N : (1)348236 [08:29:34]line ИНН: 02508201610067 [08:29:34]line Контрольно-Кассовый Чек [08:29:34]line ПРОДАЖА [08:29:34]line ТРК (МРК, ГНК) : 23 [08:29:34]line Товар: 2710124130 [08:29:34]line Аи-92-К-5 [08:29:34]line 18.910 * 64.80 [08:29:34]line = 1225.37 [08:29:34]line НДС 12% НСП 1% [08:29:34]line > о реализуемом товаре [08:29:34]line ОКРУГЛЕНИЕ: -0.37 [08:29:34]line ИТОГО: 1225.00 [08:29:34]line Внесено: 1225.00 [08:29:34]line СДАЧА: 0.00 [08:29:34]line НСП 1% : 10.84 [08:29:34]line НДС 12% : 130.13 [08:29:34]line Наличными: 1225.00 [08:29:34]line Безнал.: 0.00 [08:29:34]line Место: АЗС № 108 "Партнер Нефть" [08:29:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:29:34]line СНО: Общий режим [08:29:34]line Чек 34 16.04.2024 08:29 [08:29:34]line Смена: 118 ФФД: 1.0 [08:29:34]line ЗНМ: 0300000027 [08:29:34]line РНМ: 0000138879044617 [08:29:34]line Версия ККМ: 001 [08:29:34]line ФМ: 0000000000963154 [08:29:34]line ФД: 29760 [08:29:34]line ФПД: 72110335665638 [08:29:34]line 1/tax-web-control/client/api/v1/ticket?date=20240416T082933&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29760&fm=72110335665638&tin=02508201610067®Number=0000138879044617&sum=122500 [08:29:34]OFD Sender: Processing packet 29760 [packets to send 8, broken 7] [08:29:34]ProducePacketName [08:29:34]name=ofd_packets/00029760 [08:29:34]OFD Sender: To server: pG, [08:29:34]CommunicateWithHost lk.salyk.kg:30040 [08:29:34]ConnectInit lk.salyk.kg [08:29:34]written 0, free lines is 4095 [08:29:34]Connected sock=10 [08:29:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 65 36 07 01 D3 8C 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 DE 49 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A9 DE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 DE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 32 00 00 00 00 07 04 06 00 84 DE 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 ED 36 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 74 00 00 35 04 06 00 41 95 7E F1 25 E6 02 16 EA 14 C2 71 57 65 [08:29:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EF DC 47 00 32 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 74 00 00 F4 03 04 00 8B E1 1D 66 B6 04 01 00 00 23 AB 44 3B 27 D4 1E 44 [08:29:34]CommunicateWithHost err = 0 [08:29:34]CheckOFDResponse [08:29:34]1017 (14) - 77093643461234 [08:29:34]1041 (16) - 0000000000963154 [08:29:34]1040 (4) - 29760 [08:29:34]1012 (4) - 16.04.2024 02:25 [08:29:34]1206 (1) - 0 [08:29:34]OFD Sender: Remove packet 29760 [08:29:34]ProducePacketName [08:29:34]name=ofd_packets/00029760 [08:29:34]NVStorageDeleteData [08:29:34]Write to MH i2c: 01 00 00 2A 01 2B [08:29:34]Write i2c OK [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: 01 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: 01 07 00 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: 01 07 00 2A 01 00 00 00 00 00 CA 0C 08 [08:29:34]RasterBufferAndPrint [08:29:34]line [08:29:34]line [08:29:34]line [08:29:34]line [08:29:34]line [08:29:34]written 0, free lines is 3281 [08:29:34]MH_Cut [08:29:34]Write to MH i2c: D1 01 00 31 01 01 04 [08:29:34]Write i2c OK [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: D1 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: D1 01 00 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: D1 01 00 31 01 00 03 [08:29:34]Write to MH i2c: 01 00 00 32 01 33 [08:29:34]Write i2c OK [08:29:34]MH_I2C_Read... [08:29:35]OFD Sender: No OFD packet to send [08:29:35]*** Cut start [08:29:35]*** Partial cut [08:29:35]*** CUTSNS_PIN = 1 [08:29:35]*** CUTSNS_PIN = 0 [08:29:35]*** Brake cut motor [08:29:36]Read from MH i2c: 01 [08:29:36]MH_I2C_Read... [08:29:36]*** Stop cut motor [08:29:36]*** Cut end [08:29:36]Read from MH i2c: 01 07 00 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: 01 07 00 32 01 00 00 00 00 00 FF 0F 48 [08:29:36]process_action close_receipt done [08:29:36]requested_data is exist [08:29:36]produce_requested_data [08:29:36]requested_item fm.sn is exist - process it [08:29:36]wFMCommunicate request_size=4 [08:29:36]MH_SAM_APDU [08:29:36]CAPDU: 80 11 00 00 [08:29:36]Write to MH i2c: E2 08 00 33 01 80 11 00 00 00 00 00 00 AE [08:29:36]Write i2c OK [08:29:36]MH_I2C_Read... [08:29:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:36]Read from MH i2c: E2 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: E2 17 00 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: E2 17 00 33 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FD [08:29:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:29:36]wFMCommunicate OK [08:29:36]requested_item fd.num is exist - process it [08:29:36]SAM_PROTO_GetFieldsCounters [08:29:36]wFMCommunicate request_size=4 [08:29:36]MH_SAM_APDU [08:29:36]CAPDU: 80 13 00 00 [08:29:36]Write to MH i2c: E2 08 00 34 01 80 13 00 00 00 00 00 00 B1 [08:29:36]Write i2c OK [08:29:36]MH_I2C_Read... [08:29:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:36]Read from MH i2c: E2 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: E2 62 00 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: E2 62 00 34 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 40 74 00 00 0E 04 04 00 76 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 7F [08:29:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 40 74 00 00 0E 04 04 00 76 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 [08:29:36]wFMCommunicate OK [08:29:36]SAM_PROTO_GetFieldsCounters done [08:29:36]requested_item shift.num is exist - process it [08:29:36]requested_item shift.opened is exist - process it [08:29:36]req_shift_opened [08:29:36]FM_GetShiftState [08:29:36]SAM_PROTO_GetShiftState [08:29:36]wFMCommunicate request_size=4 [08:29:36]MH_SAM_APDU [08:29:36]CAPDU: 80 13 01 00 [08:29:36]Write to MH i2c: E2 08 00 35 01 80 13 01 00 00 00 00 00 B3 [08:29:36]Write i2c OK [08:29:36]MH_I2C_Read... [08:29:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:36]Read from MH i2c: E2 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: E2 0E 00 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: E2 0E 00 35 01 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 61 [08:29:36]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:29:36]wFMCommunicate OK [08:29:36]SAM_PROTO_GetShiftState done [08:29:36]FM_GetShiftState done [08:29:36]req_shift_opened done [08:29:36]requested_item shift.open_date is exist - process it [08:29:36]req_shift_open_date [08:29:36]req_shift_open_date done [08:29:36]produce_requested_data done [08:29:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29760,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:29:36]process_action_free close_receipt [08:29:36]json_value_free [08:29:36]json_value_free done [08:29:36]process_json_proto returns [08:29:36]Send response to host [08:29:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29760,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:29:36]free response buf [08:29:36]execute_script done [08:29:36]execute_script returns [08:29:36]free content buf [08:29:36]Sock 7.Close socket [08:29:36]Sock 7.Thread stoped [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:19]accept exits with 9 [08:33:19]New connection [08:33:19]New thread 3067276644 created [08:33:19]Thread 3067133284 joined [08:33:19]Waiting for new connection... [08:33:19] Sock 9.Parse request [08:33:19]Sock 9.Check first char [08:33:19]Sock 9.First char is OK [08:33:19]request: POST /json_proto HTTP/1.0 [08:33:19]Method: POST [08:33:19]URL: /json_proto [08:33:19]Method is POST - this is cgi request [08:33:19]url: /json_proto [08:33:19]query_string will be loaded in cgi processing [08:33:19]execute_cgi json_proto POST (null) [08:33:19]execute_cgi path=json_proto method=POST [08:33:19]POST find Content-Length [08:33:19]Host: 172.17.33.3:8080 [08:33:19]Content-Length: 678 [08:33:19]Content-Type: application/json [08:33:19] [08:33:19]POST finish read [08:33:19]Found Content-Length = 678 [08:33:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "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" ] } } [08:33:19]execute_script... [08:33:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "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" ] } } [08:33:19]POST & json_proto [08:33:19]process_json_proto [08:33:19]json parsed OK: [08:33:19]protocol is kg_v1.0 [08:33:19]action value=close_receipt [08:33:19]process_action close_receipt [08:33:19]cmd_close_receipt [08:33:19]MH_GetDate [08:33:19]Write to MH i2c: F0 00 00 36 01 26 [08:33:19]Write i2c OK [08:33:19]MH_I2C_Read... [08:33:19]Read from MH i2c: F0 [08:33:19]MH_I2C_Read... [08:33:19]Read from MH i2c: F0 09 00 [08:33:19]MH_I2C_Read... [08:33:19]Read from MH i2c: F0 09 00 36 01 00 D0 37 1E 66 23 5B 8F 65 2C [08:33:19]GetLastDocTimeStamp 1713256173 [08:33:19]current date 1713256400 [08:33:19]FM_GetShiftState [08:33:19]SAM_PROTO_GetShiftState [08:33:19]wFMCommunicate request_size=4 [08:33:19]MH_SAM_APDU [08:33:19]CAPDU: 80 13 01 00 [08:33:19]Write to MH i2c: E2 08 00 37 01 80 13 01 00 00 00 00 00 B5 [08:33:19]Write i2c OK [08:33:19]MH_I2C_Read... [08:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:19]Read from MH i2c: E2 [08:33:19]MH_I2C_Read... [08:33:19]Read from MH i2c: E2 0E 00 [08:33:19]MH_I2C_Read... [08:33:19]Read from MH i2c: E2 0E 00 37 01 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 63 [08:33:19]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:33:19]wFMCommunicate OK [08:33:19]SAM_PROTO_GetShiftState done [08:33:19]FM_GetShiftState done [08:33:19]opened in 1713226843 [08:33:19]opened+sec_in_day 1713313243 [08:33:19]quantity*price = 70048 [08:33:19]sum+1 = 70050 [08:33:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 35 16.04.2024 08:33 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29761 ФПД: 140357149960512 1/tax-web-control/client/api/v1/ticket?date=20240416T083320&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29761&fm=140357149960512&tin=02508201610067®Number=0000138879044617&sum=70000 [08:33:20]StoreToDocumentArchive [08:33:20]shift 118 fd 29761 [08:33:20]save to /storage/0118/doc_00029761 [08:33:20]save last doc name /storage/0118/doc_00029761 to /storage/kkm_last_doc_name [08:33:20]save OK [08:33:20]Clear old archive folders... [08:33:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:20]tlvbuf is 0016A670 [08:33:20]SAM_PROTO_ClearQueue [08:33:20]wFMCommunicate request_size=4 [08:33:20]MH_SAM_APDU [08:33:20]CAPDU: 80 09 00 00 [08:33:20]Write to MH i2c: E2 08 00 44 01 80 09 00 00 00 00 00 00 B7 [08:33:20]Write i2c OK [08:33:20]MH_I2C_Read... [08:33:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:20]Read from MH i2c: E2 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: E2 03 00 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: E2 03 00 44 01 00 90 00 B9 [08:33:20]RAPDU: 90 00 [08:33:20]wFMCommunicate OK [08:33:20]SAM_PROTO_ClearQueue done [08:33:20]KKMCreateOFDPacket [08:33:20]OFDProtocolAddRootSTLVToBuf [08:33:20]FM_MakeSignedData [08:33:20]FM_MakeSignedData [08:33:20]SAM_PROTO_SignData [08:33:20]wFMCommunicate request_size=4 [08:33:20]MH_SAM_APDU [08:33:20]CAPDU: 80 0D 01 02 [08:33:20]Write to MH i2c: E2 08 00 45 01 80 0D 01 02 00 00 00 00 BF [08:33:20]Write i2c OK [08:33:20]MH_I2C_Read... [08:33:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:21]Read from MH i2c: E2 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 03 00 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [08:33:21]RAPDU: 90 00 [08:33:21]wFMCommunicate OK [08:33:21]wFMCommunicate request_size=255 [08:33:21]MH_SAM_APDU [08:33:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 23 00 00 00 F4 03 04 00 D0 37 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 74 00 00 35 04 06 00 7F [08:33:21]Write to MH i2c: E2 02 01 46 01 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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 23 00 00 00 F4 03 04 00 D0 37 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 74 00 00 35 04 06 00 7F 00 00 5C [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:21]Read from MH i2c: E2 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 03 00 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [08:33:21]RAPDU: 90 00 [08:33:21]wFMCommunicate OK [08:33:21]wFMCommunicate request_size=10 [08:33:21]MH_SAM_APDU [08:33:21]CAPDU: 80 0D 02 02 05 A7 72 10 A9 40 [08:33:21]Write to MH i2c: E2 0D 00 47 01 80 0D 02 02 05 00 A7 72 10 A9 40 00 00 DE [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:21]Read from MH i2c: E2 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 03 00 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 03 00 47 01 00 90 00 BC [08:33:21]RAPDU: 90 00 [08:33:21]wFMCommunicate OK [08:33:21]wFMCommunicate request_size=4 [08:33:21]MH_SAM_APDU [08:33:21]CAPDU: 80 0D 03 02 [08:33:21]Write to MH i2c: E2 08 00 48 01 80 0D 03 02 00 00 00 00 C4 [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:21]Read from MH i2c: E2 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 0B 00 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 0B 00 48 01 00 48 5D 6C 4C F6 5D AA 81 90 00 A0 [08:33:21]RAPDU: 48 5D 6C 4C F6 5D AA 81 90 00 [08:33:21]wFMCommunicate OK [08:33:21]SAM_PROTO_SignData done [08:33:21]FM_MakeSignedData done [08:33:21]CreateOFDProtocolMessage [08:33:21]wFMCommunicate request_size=4 [08:33:21]MH_SAM_APDU [08:33:21]CAPDU: 80 11 00 00 [08:33:21]Write to MH i2c: E2 08 00 49 01 80 11 00 00 00 00 00 00 C4 [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:21]Read from MH i2c: E2 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 17 00 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 17 00 49 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 13 [08:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:33:21]wFMCommunicate OK [08:33:21]CreateOFDProtocolMessage done [08:33:21]OFDSenderStorePacket 29761 [08:33:21]StoreOFDPacket docnum=29761 [08:33:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 40 FB 07 01 42 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 23 00 00 00 F4 03 04 00 D0 37 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 74 00 00 35 04 06 00 7F A7 72 10 A9 40 48 5D 6C 4C F6 5D AA 81 [08:33:21]CheckFolder [08:33:21]dirname=/storage/ofd_packets [08:33:21]CheckFolder done [08:33:21]ProducePacketName [08:33:21]name=ofd_packets/00029761 [08:33:21]NVStorageSaveData ofd_packets/00029761 [08:33:21]File name is /storage/ofd_packets/00029761 [08:33:21]Write 301 bytes [08:33:21]NVStorageSaveData done [08:33:21]OFDSenderStorePacket done [08:33:21]KKMCreateOFDPacket done [08:33:21]NVStorageSaveData kkm_last_timestamp [08:33:21]File name is /storage/kkm_last_timestamp [08:33:21]Write 4 bytes [08:33:21]NVStorageSaveData done [08:33:21]ExternCall_PrintAddStr [08:33:21]wPrintStart [08:33:21]Write to MH i2c: 01 00 00 4A 01 4B [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: 01 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: 01 07 00 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: 01 07 00 4A 01 00 00 00 00 00 FF 0F 60 [08:33:21]RasterBufferAndPrint [08:33:21]line Счет N : (1)348238 [08:33:21]line ИНН: 02508201610067 [08:33:21]line Контрольно-Кассовый Чек [08:33:21]line ПРОДАЖА [08:33:21]line ТРК (МРК, ГНК) : 13 [08:33:21]line Товар: 2710124130 [08:33:21]line Аи-92-К-5 [08:33:21]line 10.810 * 64.80 [08:33:21]line = 700.49 [08:33:21]line НДС 12% НСП 1% [08:33:21]line > о реализуемом товаре [08:33:21]line ОКРУГЛЕНИЕ: -0.49 [08:33:21]line ИТОГО: 700.00 [08:33:21]line Внесено: 700.00 [08:33:21]line СДАЧА: 0.00 [08:33:21]line НСП 1% : 6.20 [08:33:21]line НДС 12% : 74.39 [08:33:21]line Наличными: 700.00 [08:33:21]line Безнал.: 0.00 [08:33:21]line Место: АЗС № 108 "Партнер Нефть" [08:33:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:33:21]line СНО: Общий режим [08:33:21]line Чек 35 16.04.2024 08:33 [08:33:21]line Смена: 118 ФФД: 1.0 [08:33:21]line ЗНМ: 0300000027 [08:33:21]line РНМ: 0000138879044617 [08:33:21]line Версия ККМ: 001 [08:33:21]line ФМ: 0000000000963154 [08:33:21]line ФД: 29761 [08:33:21]line ФПД: 140357149960512 [08:33:21]line 1/tax-web-control/client/api/v1/ticket?date=20240416T083320&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29761&fm=140357149960512&tin=02508201610067®Number=0000138879044617&sum=70000 [08:33:21]written 0, free lines is 4095 [08:33:21]OFD Sender: Processing packet 29761 [packets to send 8, broken 7] [08:33:21]ProducePacketName [08:33:21]name=ofd_packets/00029761 [08:33:21]OFD Sender: To server: pG, [08:33:21]CommunicateWithHost lk.salyk.kg:30040 [08:33:21]ConnectInit lk.salyk.kg [08:33:21]Connected sock=11 [08:33:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 40 FB 07 01 42 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 23 00 00 00 F4 03 04 00 D0 37 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 74 00 00 35 04 06 00 7F A7 72 10 A9 40 48 5D 6C 4C F6 5D AA 81 [08:33:21]Write to MH i2c: 01 00 00 74 01 75 [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: 01 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: 01 07 00 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: 01 07 00 74 01 00 00 00 00 00 C9 0C 51 [08:33:21]RasterBufferAndPrint [08:33:21]line [08:33:21]line [08:33:21]line [08:33:21]line [08:33:21]line [08:33:21]written 0, free lines is 3278 [08:33:21]MH_Cut [08:33:21]Write to MH i2c: D1 01 00 7B 01 01 4E [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: D1 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: D1 01 00 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: D1 01 00 7B 01 00 4D [08:33:21]Write to MH i2c: 01 00 00 7C 01 7D [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0C 88 47 00 F9 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 74 00 00 F4 03 04 00 6F E2 1D 66 B6 04 01 00 00 79 5D D5 F7 F4 08 E7 14 [08:33:22]CommunicateWithHost err = 0 [08:33:22]CheckOFDResponse [08:33:22]1017 (14) - 77093643461234 [08:33:22]1041 (16) - 0000000000963154 [08:33:22]1040 (4) - 29761 [08:33:22]1012 (4) - 16.04.2024 02:29 [08:33:22]1206 (1) - 0 [08:33:22]OFD Sender: Remove packet 29761 [08:33:22]ProducePacketName [08:33:22]name=ofd_packets/00029761 [08:33:22]NVStorageDeleteData [08:33:22]OFD Sender: No OFD packet to send [08:33:22]*** Cut start [08:33:22]*** Partial cut [08:33:22]*** CUTSNS_PIN = 1 [08:33:22]*** CUTSNS_PIN = 0 [08:33:22]*** Brake cut motor [08:33:23]Read from MH i2c: 01 [08:33:23]MH_I2C_Read... [08:33:23]*** Stop cut motor [08:33:23]*** Cut end [08:33:23]Read from MH i2c: 01 07 00 [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: 01 07 00 7C 01 00 00 00 00 00 FF 0F 92 [08:33:23]process_action close_receipt done [08:33:23]requested_data is exist [08:33:23]produce_requested_data [08:33:23]requested_item fm.sn is exist - process it [08:33:23]wFMCommunicate request_size=4 [08:33:23]MH_SAM_APDU [08:33:23]CAPDU: 80 11 00 00 [08:33:23]Write to MH i2c: E2 08 00 7D 01 80 11 00 00 00 00 00 00 F8 [08:33:23]Write i2c OK [08:33:23]MH_I2C_Read... [08:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:23]Read from MH i2c: E2 [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: E2 17 00 [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: E2 17 00 7D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 47 [08:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:33:23]wFMCommunicate OK [08:33:23]requested_item fd.num is exist - process it [08:33:23]SAM_PROTO_GetFieldsCounters [08:33:23]wFMCommunicate request_size=4 [08:33:23]MH_SAM_APDU [08:33:23]CAPDU: 80 13 00 00 [08:33:23]Write to MH i2c: E2 08 00 7E 01 80 13 00 00 00 00 00 00 FB [08:33:23]Write i2c OK [08:33:23]MH_I2C_Read... [08:33:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:23]Read from MH i2c: E2 [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: E2 62 00 [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: E2 62 00 7E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 41 74 00 00 0E 04 04 00 76 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 CD [08:33:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 41 74 00 00 0E 04 04 00 76 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 [08:33:23]wFMCommunicate OK [08:33:23]SAM_PROTO_GetFieldsCounters done [08:33:23]requested_item shift.num is exist - process it [08:33:23]requested_item shift.opened is exist - process it [08:33:23]req_shift_opened [08:33:23]FM_GetShiftState [08:33:23]SAM_PROTO_GetShiftState [08:33:23]wFMCommunicate request_size=4 [08:33:23]MH_SAM_APDU [08:33:23]CAPDU: 80 13 01 00 [08:33:23]Write to MH i2c: E2 08 00 7F 01 80 13 01 00 00 00 00 00 FD [08:33:23]Write i2c OK [08:33:23]MH_I2C_Read... [08:33:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:23]Read from MH i2c: E2 [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: E2 0E 00 [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: E2 0E 00 7F 01 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 AB [08:33:23]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:33:23]wFMCommunicate OK [08:33:23]SAM_PROTO_GetShiftState done [08:33:23]FM_GetShiftState done [08:33:23]req_shift_opened done [08:33:23]requested_item shift.open_date is exist - process it [08:33:23]req_shift_open_date [08:33:23]req_shift_open_date done [08:33:23]produce_requested_data done [08:33:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29761,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:33:23]process_action_free close_receipt [08:33:23]json_value_free [08:33:23]json_value_free done [08:33:23]process_json_proto returns [08:33:23]Send response to host [08:33:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29761,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:33:23]free response buf [08:33:23]execute_script done [08:33:23]execute_script returns [08:33:23]free content buf [08:33:23]Sock 9.Close socket [08:33:23]Sock 9.Thread stoped [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:24]accept exits with 7 [08:34:24]New connection [08:34:24]New thread 3067133284 created [08:34:24]Thread 3067276644 joined [08:34:24]Waiting for new connection... [08:34:24] Sock 7.Parse request [08:34:24]Sock 7.Check first char [08:34:24]Sock 7.First char is OK [08:34:24]request: POST /json_proto HTTP/1.0 [08:34:24]Method: POST [08:34:24]URL: /json_proto [08:34:24]Method is POST - this is cgi request [08:34:24]url: /json_proto [08:34:24]query_string will be loaded in cgi processing [08:34:24]execute_cgi json_proto POST (null) [08:34:24]execute_cgi path=json_proto method=POST [08:34:24]POST find Content-Length [08:34:24]Host: 172.17.33.3:8080 [08:34:24]Content-Length: 653 [08:34:24]Content-Type: application/json [08:34:24] [08:34:24]POST finish read [08:34:24]Found Content-Length = 653 [08:34:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:24]execute_script... [08:34:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:24]POST & json_proto [08:34:24]process_json_proto [08:34:24]json parsed OK: [08:34:24]protocol is kg_v1.0 [08:34:24]action value=close_receipt [08:34:24]process_action close_receipt [08:34:24]cmd_close_receipt [08:34:24]MH_GetDate [08:34:24]Write to MH i2c: F0 00 00 80 01 70 [08:34:24]Write i2c OK [08:34:24]MH_I2C_Read... [08:34:24]Read from MH i2c: F0 [08:34:24]MH_I2C_Read... [08:34:24]Read from MH i2c: F0 09 00 [08:34:24]MH_I2C_Read... [08:34:24]Read from MH i2c: F0 09 00 80 01 00 11 38 1E 66 23 5B 8F 65 B8 [08:34:24]GetLastDocTimeStamp 1713256400 [08:34:24]current date 1713256465 [08:34:24]FM_GetShiftState [08:34:24]SAM_PROTO_GetShiftState [08:34:24]wFMCommunicate request_size=4 [08:34:24]MH_SAM_APDU [08:34:24]CAPDU: 80 13 01 00 [08:34:24]Write to MH i2c: E2 08 00 81 01 80 13 01 00 00 00 00 00 FF [08:34:24]Write i2c OK [08:34:24]MH_I2C_Read... [08:34:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:24]Read from MH i2c: E2 [08:34:24]MH_I2C_Read... [08:34:24]Read from MH i2c: E2 0E 00 [08:34:24]MH_I2C_Read... [08:34:24]Read from MH i2c: E2 0E 00 81 01 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 AD [08:34:24]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:34:24]wFMCommunicate OK [08:34:24]SAM_PROTO_GetShiftState done [08:34:24]FM_GetShiftState done [08:34:24]opened in 1713226843 [08:34:24]opened+sec_in_day 1713313243 [08:34:24]quantity*price = 65800 [08:34:24]sum+1 = 65801 [08:34:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 658.00 Внесено: 700.00 СДАЧА: 42.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 36 16.04.2024 08:34 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29762 ФПД: 169207982142947 1/tax-web-control/client/api/v1/ticket?date=20240416T083425&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29762&fm=169207982142947&tin=02508201610067®Number=0000138879044617&sum=65800 [08:34:25]StoreToDocumentArchive [08:34:25]shift 118 fd 29762 [08:34:25]save to /storage/0118/doc_00029762 [08:34:25]save last doc name /storage/0118/doc_00029762 to /storage/kkm_last_doc_name [08:34:25]save OK [08:34:25]Clear old archive folders... [08:34:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:34:25]tlvbuf is 0016D400 [08:34:25]SAM_PROTO_ClearQueue [08:34:25]wFMCommunicate request_size=4 [08:34:25]MH_SAM_APDU [08:34:25]CAPDU: 80 09 00 00 [08:34:25]Write to MH i2c: E2 08 00 8E 01 80 09 00 00 00 00 00 00 01 [08:34:25]Write i2c OK [08:34:25]MH_I2C_Read... [08:34:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:25]Read from MH i2c: E2 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 03 00 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [08:34:25]RAPDU: 90 00 [08:34:25]wFMCommunicate OK [08:34:25]SAM_PROTO_ClearQueue done [08:34:25]KKMCreateOFDPacket [08:34:25]OFDProtocolAddRootSTLVToBuf [08:34:25]FM_MakeSignedData [08:34:25]FM_MakeSignedData [08:34:25]SAM_PROTO_SignData [08:34:25]wFMCommunicate request_size=4 [08:34:25]MH_SAM_APDU [08:34:25]CAPDU: 80 0D 01 02 [08:34:25]Write to MH i2c: E2 08 00 8F 01 80 0D 01 02 00 00 00 00 09 [08:34:25]Write i2c OK [08:34:25]MH_I2C_Read... [08:34:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:25]Read from MH i2c: E2 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 03 00 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 03 00 8F 01 00 90 00 04 [08:34:25]RAPDU: 90 00 [08:34:25]wFMCommunicate OK [08:34:25]wFMCommunicate request_size=255 [08:34:25]MH_SAM_APDU [08:34:25]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 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 11 38 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 74 00 00 35 04 06 00 [08:34:25]Write to MH i2c: E2 02 01 90 01 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 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 11 38 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 74 00 00 35 04 06 00 00 00 C8 [08:34:25]Write i2c OK [08:34:25]MH_I2C_Read... [08:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:25]Read from MH i2c: E2 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 03 00 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 03 00 90 01 00 90 00 05 [08:34:25]RAPDU: 90 00 [08:34:25]wFMCommunicate OK [08:34:25]wFMCommunicate request_size=11 [08:34:25]MH_SAM_APDU [08:34:25]CAPDU: 80 0D 02 02 06 99 E4 CD AB 35 E3 [08:34:25]Write to MH i2c: E2 0E 00 91 01 80 0D 02 02 06 00 99 E4 CD AB 35 E3 00 00 25 [08:34:25]Write i2c OK [08:34:25]MH_I2C_Read... [08:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:25]Read from MH i2c: E2 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 03 00 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 03 00 91 01 00 90 00 06 [08:34:25]RAPDU: 90 00 [08:34:25]wFMCommunicate OK [08:34:25]wFMCommunicate request_size=4 [08:34:25]MH_SAM_APDU [08:34:25]CAPDU: 80 0D 03 02 [08:34:25]Write to MH i2c: E2 08 00 92 01 80 0D 03 02 00 00 00 00 0E [08:34:25]Write i2c OK [08:34:25]MH_I2C_Read... [08:34:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:26]Read from MH i2c: E2 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: E2 0B 00 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: E2 0B 00 92 01 00 70 20 58 17 D0 78 C1 4F 90 00 66 [08:34:26]RAPDU: 70 20 58 17 D0 78 C1 4F 90 00 [08:34:26]wFMCommunicate OK [08:34:26]SAM_PROTO_SignData done [08:34:26]FM_MakeSignedData done [08:34:26]CreateOFDProtocolMessage [08:34:26]wFMCommunicate request_size=4 [08:34:26]MH_SAM_APDU [08:34:26]CAPDU: 80 11 00 00 [08:34:26]Write to MH i2c: E2 08 00 93 01 80 11 00 00 00 00 00 00 0E [08:34:26]Write i2c OK [08:34:26]MH_I2C_Read... [08:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:26]Read from MH i2c: E2 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: E2 17 00 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: E2 17 00 93 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5D [08:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:34:26]wFMCommunicate OK [08:34:26]CreateOFDProtocolMessage done [08:34:26]OFDSenderStorePacket 29762 [08:34:26]StoreOFDPacket docnum=29762 [08:34:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 86 71 08 01 6A 9D 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 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 11 38 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 74 00 00 35 04 06 00 99 E4 CD AB 35 E3 70 20 58 17 D0 78 C1 4F [08:34:26]CheckFolder [08:34:26]dirname=/storage/ofd_packets [08:34:26]CheckFolder done [08:34:26]ProducePacketName [08:34:26]name=ofd_packets/00029762 [08:34:26]NVStorageSaveData ofd_packets/00029762 [08:34:26]File name is /storage/ofd_packets/00029762 [08:34:26]Write 302 bytes [08:34:26]NVStorageSaveData done [08:34:26]OFDSenderStorePacket done [08:34:26]KKMCreateOFDPacket done [08:34:26]NVStorageSaveData kkm_last_timestamp [08:34:26]File name is /storage/kkm_last_timestamp [08:34:26]Write 4 bytes [08:34:26]NVStorageSaveData done [08:34:26]ExternCall_PrintAddStr [08:34:26]wPrintStart [08:34:26]Write to MH i2c: 01 00 00 94 01 95 [08:34:26]Write i2c OK [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: 01 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: 01 07 00 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: 01 07 00 94 01 00 00 00 00 00 FF 0F AA [08:34:26]RasterBufferAndPrint [08:34:26]line Счет N : (1)348239 [08:34:26]line ИНН: 02508201610067 [08:34:26]line Контрольно-Кассовый Чек [08:34:26]line ПРОДАЖА [08:34:26]line ТРК (МРК, ГНК) : 31 [08:34:26]line Товар: 2710124130 [08:34:26]line SUPER-92-К-5 [08:34:26]line 10.000 * 65.80 [08:34:26]line = 658.00 [08:34:26]line НДС 12% НСП 1% [08:34:26]line > о реализуемом товаре [08:34:26]line ИТОГО: 658.00 [08:34:26]line Внесено: 700.00 [08:34:26]line СДАЧА: 42.00 [08:34:26]line НСП 1% : 5.82 [08:34:26]line НДС 12% : 69.88 [08:34:26]line Наличными: 658.00 [08:34:26]line Безнал.: 0.00 [08:34:26]line Место: АЗС № 108 "Партнер Нефть" [08:34:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:34:26]line СНО: Общий режим [08:34:26]line Чек 36 16.04.2024 08:34 [08:34:26]line Смена: 118 ФФД: 1.0 [08:34:26]line ЗНМ: 0300000027 [08:34:26]line РНМ: 0000138879044617 [08:34:26]line Версия ККМ: 001 [08:34:26]line ФМ: 0000000000963154 [08:34:26]line ФД: 29762 [08:34:26]line ФПД: 169207982142947 [08:34:26]line 1/tax-web-control/client/api/v1/ticket?date=20240416T083425&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29762&fm=169207982142947&tin=02508201610067®Number=0000138879044617&sum=65800 [08:34:26]OFD Sender: Processing packet 29762 [packets to send 8, broken 7] [08:34:26]ProducePacketName [08:34:26]name=ofd_packets/00029762 [08:34:26]OFD Sender: To server: pG, [08:34:26]CommunicateWithHost lk.salyk.kg:30040 [08:34:26]ConnectInit lk.salyk.kg [08:34:26]written 0, free lines is 4095 [08:34:26]Connected sock=10 [08:34:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 86 71 08 01 6A 9D 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 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 11 38 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 74 00 00 35 04 06 00 99 E4 CD AB 35 E3 70 20 58 17 D0 78 C1 4F [08:34:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 60 0A 47 00 71 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 36 33 31 35 34 10 04 04 00 42 74 00 00 F4 03 04 00 AF E2 1D 66 B6 04 01 00 00 B1 7A B0 D6 34 40 50 5F [08:34:26]CommunicateWithHost err = 0 [08:34:26]CheckOFDResponse [08:34:26]1017 (14) - 77093643461234 [08:34:26]1041 (16) - 0000000000963154 [08:34:26]1040 (4) - 29762 [08:34:26]1012 (4) - 16.04.2024 02:30 [08:34:26]1206 (1) - 0 [08:34:26]OFD Sender: Remove packet 29762 [08:34:26]ProducePacketName [08:34:26]name=ofd_packets/00029762 [08:34:26]NVStorageDeleteData [08:34:26]Write to MH i2c: 01 00 00 BD 01 BE [08:34:26]Write i2c OK [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: 01 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: 01 07 00 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: 01 07 00 BD 01 00 00 00 00 00 E7 0C B8 [08:34:26]RasterBufferAndPrint [08:34:26]line [08:34:26]line [08:34:26]line [08:34:26]line [08:34:26]line [08:34:26]written 0, free lines is 3312 [08:34:26]MH_Cut [08:34:26]Write to MH i2c: D1 01 00 C4 01 01 97 [08:34:26]Write i2c OK [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: D1 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: D1 01 00 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: D1 01 00 C4 01 00 96 [08:34:26]Write to MH i2c: 01 00 00 C5 01 C6 [08:34:26]Write i2c OK [08:34:26]MH_I2C_Read... [08:34:27]OFD Sender: No OFD packet to send [08:34:27]*** Cut start [08:34:27]*** Partial cut [08:34:27]*** CUTSNS_PIN = 1 [08:34:27]*** CUTSNS_PIN = 0 [08:34:27]*** Brake cut motor [08:34:28]Read from MH i2c: 01 [08:34:28]MH_I2C_Read... [08:34:28]*** Stop cut motor [08:34:28]*** Cut end [08:34:28]Read from MH i2c: 01 07 00 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: 01 07 00 C5 01 00 00 00 00 00 FF 0F DB [08:34:28]process_action close_receipt done [08:34:28]requested_data is exist [08:34:28]produce_requested_data [08:34:28]requested_item fm.sn is exist - process it [08:34:28]wFMCommunicate request_size=4 [08:34:28]MH_SAM_APDU [08:34:28]CAPDU: 80 11 00 00 [08:34:28]Write to MH i2c: E2 08 00 C6 01 80 11 00 00 00 00 00 00 41 [08:34:28]Write i2c OK [08:34:28]MH_I2C_Read... [08:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:28]Read from MH i2c: E2 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: E2 17 00 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: E2 17 00 C6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 90 [08:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:34:28]wFMCommunicate OK [08:34:28]requested_item fd.num is exist - process it [08:34:28]SAM_PROTO_GetFieldsCounters [08:34:28]wFMCommunicate request_size=4 [08:34:28]MH_SAM_APDU [08:34:28]CAPDU: 80 13 00 00 [08:34:28]Write to MH i2c: E2 08 00 C7 01 80 13 00 00 00 00 00 00 44 [08:34:28]Write i2c OK [08:34:28]MH_I2C_Read... [08:34:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:28]Read from MH i2c: E2 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: E2 62 00 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: E2 62 00 C7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 42 74 00 00 0E 04 04 00 76 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 1A [08:34:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 42 74 00 00 0E 04 04 00 76 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 [08:34:28]wFMCommunicate OK [08:34:28]SAM_PROTO_GetFieldsCounters done [08:34:28]requested_item shift.num is exist - process it [08:34:28]requested_item shift.opened is exist - process it [08:34:28]req_shift_opened [08:34:28]FM_GetShiftState [08:34:28]SAM_PROTO_GetShiftState [08:34:28]wFMCommunicate request_size=4 [08:34:28]MH_SAM_APDU [08:34:28]CAPDU: 80 13 01 00 [08:34:28]Write to MH i2c: E2 08 00 C8 01 80 13 01 00 00 00 00 00 46 [08:34:28]Write i2c OK [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: E2 [08:34:28]MH_I2C_Read... [08:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:28]Read from MH i2c: E2 0E 00 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: E2 0E 00 C8 01 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 F4 [08:34:28]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:34:28]wFMCommunicate OK [08:34:28]SAM_PROTO_GetShiftState done [08:34:28]FM_GetShiftState done [08:34:28]req_shift_opened done [08:34:28]requested_item shift.open_date is exist - process it [08:34:28]req_shift_open_date [08:34:28]req_shift_open_date done [08:34:28]produce_requested_data done [08:34:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29762,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:34:28]process_action_free close_receipt [08:34:28]json_value_free [08:34:28]json_value_free done [08:34:28]process_json_proto returns [08:34:28]Send response to host [08:34:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29762,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:34:28]free response buf [08:34:28]execute_script done [08:34:28]execute_script returns [08:34:28]free content buf [08:34:28]Sock 7.Close socket [08:34:28]Sock 7.Thread stoped [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:40]accept exits with 9 [08:40:40]New connection [08:40:40]New thread 3067276644 created [08:40:40]Thread 3067133284 joined [08:40:40]Waiting for new connection... [08:40:40] Sock 9.Parse request [08:40:40]Sock 9.Check first char [08:40:40]Sock 9.First char is OK [08:40:40]request: POST /json_proto HTTP/1.0 [08:40:40]Method: POST [08:40:40]URL: /json_proto [08:40:40]Method is POST - this is cgi request [08:40:40]url: /json_proto [08:40:40]query_string will be loaded in cgi processing [08:40:40]execute_cgi json_proto POST (null) [08:40:40]execute_cgi path=json_proto method=POST [08:40:40]POST find Content-Length [08:40:40]Host: 172.17.33.3:8080 [08:40:40]Content-Length: 675 [08:40:40]Content-Type: application/json [08:40:40] [08:40:40]POST finish read [08:40:40]Found Content-Length = 675 [08:40:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:40]execute_script... [08:40:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:40]POST & json_proto [08:40:40]process_json_proto [08:40:40]json parsed OK: [08:40:40]protocol is kg_v1.0 [08:40:40]action value=close_receipt [08:40:40]process_action close_receipt [08:40:40]cmd_close_receipt [08:40:40]MH_GetDate [08:40:40]Write to MH i2c: F0 00 00 C9 01 B9 [08:40:40]Write i2c OK [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: F0 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: F0 09 00 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: F0 09 00 C9 01 00 89 39 1E 66 23 5B 8F 65 7A [08:40:40]GetLastDocTimeStamp 1713256465 [08:40:40]current date 1713256841 [08:40:40]FM_GetShiftState [08:40:40]SAM_PROTO_GetShiftState [08:40:40]wFMCommunicate request_size=4 [08:40:40]MH_SAM_APDU [08:40:40]CAPDU: 80 13 01 00 [08:40:40]Write to MH i2c: E2 08 00 CA 01 80 13 01 00 00 00 00 00 48 [08:40:40]Write i2c OK [08:40:40]MH_I2C_Read... [08:40:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:40]Read from MH i2c: E2 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: E2 0E 00 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: E2 0E 00 CA 01 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 F6 [08:40:40]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:40:40]wFMCommunicate OK [08:40:40]SAM_PROTO_GetShiftState done [08:40:40]FM_GetShiftState done [08:40:40]opened in 1713226843 [08:40:40]opened+sec_in_day 1713313243 [08:40:40]quantity*price = 100016 [08:40:40]sum+1 = 100017 [08:40:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 37 16.04.2024 08:40 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29763 ФПД: 268016841619549 1/tax-web-control/client/api/v1/ticket?date=20240416T084041&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29763&fm=268016841619549&tin=02508201610067®Number=0000138879044617&sum=100000 [08:40:41]StoreToDocumentArchive [08:40:41]shift 118 fd 29763 [08:40:41]save to /storage/0118/doc_00029763 [08:40:41]save last doc name /storage/0118/doc_00029763 to /storage/kkm_last_doc_name [08:40:41]save OK [08:40:41]Clear old archive folders... [08:40:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:40:41]tlvbuf is 00184FB0 [08:40:41]SAM_PROTO_ClearQueue [08:40:41]wFMCommunicate request_size=4 [08:40:41]MH_SAM_APDU [08:40:41]CAPDU: 80 09 00 00 [08:40:41]Write to MH i2c: E2 08 00 D7 01 80 09 00 00 00 00 00 00 4A [08:40:41]Write i2c OK [08:40:41]MH_I2C_Read... [08:40:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:41]Read from MH i2c: E2 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 03 00 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [08:40:41]RAPDU: 90 00 [08:40:41]wFMCommunicate OK [08:40:41]SAM_PROTO_ClearQueue done [08:40:41]KKMCreateOFDPacket [08:40:41]OFDProtocolAddRootSTLVToBuf [08:40:41]FM_MakeSignedData [08:40:41]FM_MakeSignedData [08:40:41]SAM_PROTO_SignData [08:40:41]wFMCommunicate request_size=4 [08:40:41]MH_SAM_APDU [08:40:41]CAPDU: 80 0D 01 02 [08:40:41]Write to MH i2c: E2 08 00 D8 01 80 0D 01 02 00 00 00 00 52 [08:40:41]Write i2c OK [08:40:41]MH_I2C_Read... [08:40:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:41]Read from MH i2c: E2 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 03 00 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [08:40:41]RAPDU: 90 00 [08:40:41]wFMCommunicate OK [08:40:41]wFMCommunicate request_size=255 [08:40:41]MH_SAM_APDU [08:40:41]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 89 39 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 74 00 00 35 04 06 00 [08:40:41]Write to MH i2c: E2 02 01 D9 01 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 89 39 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 74 00 00 35 04 06 00 00 00 C6 [08:40:41]Write i2c OK [08:40:41]MH_I2C_Read... [08:40:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:41]Read from MH i2c: E2 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 03 00 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 03 00 D9 01 00 90 00 4E [08:40:41]RAPDU: 90 00 [08:40:41]wFMCommunicate OK [08:40:41]wFMCommunicate request_size=11 [08:40:41]MH_SAM_APDU [08:40:41]CAPDU: 80 0D 02 02 06 F3 C2 88 A3 78 5D [08:40:41]Write to MH i2c: E2 0E 00 DA 01 80 0D 02 02 06 00 F3 C2 88 A3 78 5D 00 00 16 [08:40:41]Write i2c OK [08:40:41]MH_I2C_Read... [08:40:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:41]Read from MH i2c: E2 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 03 00 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 03 00 DA 01 00 90 00 4F [08:40:41]RAPDU: 90 00 [08:40:41]wFMCommunicate OK [08:40:41]wFMCommunicate request_size=4 [08:40:41]MH_SAM_APDU [08:40:41]CAPDU: 80 0D 03 02 [08:40:41]Write to MH i2c: E2 08 00 DB 01 80 0D 03 02 00 00 00 00 57 [08:40:41]Write i2c OK [08:40:41]MH_I2C_Read... [08:40:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:41]Read from MH i2c: E2 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 0B 00 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 0B 00 DB 01 00 30 30 B4 01 00 04 BA B4 90 00 DF [08:40:41]RAPDU: 30 30 B4 01 00 04 BA B4 90 00 [08:40:41]wFMCommunicate OK [08:40:41]SAM_PROTO_SignData done [08:40:41]FM_MakeSignedData done [08:40:41]CreateOFDProtocolMessage [08:40:41]wFMCommunicate request_size=4 [08:40:41]MH_SAM_APDU [08:40:41]CAPDU: 80 11 00 00 [08:40:41]Write to MH i2c: E2 08 00 DC 01 80 11 00 00 00 00 00 00 57 [08:40:41]Write i2c OK [08:40:41]MH_I2C_Read... [08:40:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:41]Read from MH i2c: E2 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 17 00 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 17 00 DC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A6 [08:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:40:41]wFMCommunicate OK [08:40:41]CreateOFDProtocolMessage done [08:40:41]OFDSenderStorePacket 29763 [08:40:41]StoreOFDPacket docnum=29763 [08:40:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 58 28 08 01 5A DD 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 89 39 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 74 00 00 35 04 06 00 F3 C2 88 A3 78 5D 30 30 B4 01 00 04 BA B4 [08:40:41]CheckFolder [08:40:41]dirname=/storage/ofd_packets [08:40:41]CheckFolder done [08:40:41]ProducePacketName [08:40:41]name=ofd_packets/00029763 [08:40:41]NVStorageSaveData ofd_packets/00029763 [08:40:41]File name is /storage/ofd_packets/00029763 [08:40:41]Write 302 bytes [08:40:41]NVStorageSaveData done [08:40:41]OFDSenderStorePacket done [08:40:41]KKMCreateOFDPacket done [08:40:41]NVStorageSaveData kkm_last_timestamp [08:40:41]File name is /storage/kkm_last_timestamp [08:40:41]Write 4 bytes [08:40:41]NVStorageSaveData done [08:40:41]ExternCall_PrintAddStr [08:40:41]wPrintStart [08:40:41]Write to MH i2c: 01 00 00 DD 01 DE [08:40:41]Write i2c OK [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: 01 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: 01 07 00 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: 01 07 00 DD 01 00 00 00 00 00 FF 0F F3 [08:40:41]RasterBufferAndPrint [08:40:41]line Счет N : (1)348240 [08:40:41]line ИНН: 02508201610067 [08:40:41]line Контрольно-Кассовый Чек [08:40:41]line ПРОДАЖА [08:40:41]line ТРК (МРК, ГНК) : 31 [08:40:41]line Товар: 2710124130 [08:40:41]line SUPER-92-К-5 [08:40:41]line 15.200 * 65.80 [08:40:41]line = 1000.16 [08:40:41]line НДС 12% НСП 1% [08:40:41]line > о реализуемом товаре [08:40:41]line ОКРУГЛЕНИЕ: -0.16 [08:40:41]line ИТОГО: 1000.00 [08:40:41]line Внесено: 1000.00 [08:40:41]line СДАЧА: 0.00 [08:40:41]line НСП 1% : 8.85 [08:40:41]line НДС 12% : 106.21 [08:40:41]line Наличными: 1000.00 [08:40:41]line Безнал.: 0.00 [08:40:41]line Место: АЗС № 108 "Партнер Нефть" [08:40:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:40:41]line СНО: Общий режим [08:40:41]line Чек 37 16.04.2024 08:40 [08:40:41]line Смена: 118 ФФД: 1.0 [08:40:41]line ЗНМ: 0300000027 [08:40:41]line РНМ: 0000138879044617 [08:40:41]line Версия ККМ: 001 [08:40:41]line ФМ: 0000000000963154 [08:40:41]line ФД: 29763 [08:40:41]line ФПД: 268016841619549 [08:40:42]line 1/tax-web-control/client/api/v1/ticket?date=20240416T084041&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29763&fm=268016841619549&tin=02508201610067®Number=0000138879044617&sum=100000 [08:40:42]OFD Sender: Processing packet 29763 [packets to send 8, broken 7] [08:40:42]ProducePacketName [08:40:42]name=ofd_packets/00029763 [08:40:42]OFD Sender: To server: pG, [08:40:42]CommunicateWithHost lk.salyk.kg:30040 [08:40:42]ConnectInit lk.salyk.kg [08:40:42]written 0, free lines is 4095 [08:40:42]Connected sock=10 [08:40:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 58 28 08 01 5A DD 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 89 39 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 74 00 00 35 04 06 00 F3 C2 88 A3 78 5D 30 30 B4 01 00 04 BA B4 [08:40:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1D B8 47 00 47 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 74 00 00 F4 03 04 00 27 E4 1D 66 B6 04 01 00 00 8B 6A 1F 79 98 DF 0F F4 [08:40:42]CommunicateWithHost err = 0 [08:40:42]CheckOFDResponse [08:40:42]1017 (14) - 77093643461234 [08:40:42]1041 (16) - 0000000000963154 [08:40:42]1040 (4) - 29763 [08:40:42]1012 (4) - 16.04.2024 02:36 [08:40:42]1206 (1) - 0 [08:40:42]OFD Sender: Remove packet 29763 [08:40:42]ProducePacketName [08:40:42]name=ofd_packets/00029763 [08:40:42]NVStorageDeleteData [08:40:42]Write to MH i2c: 01 00 00 07 02 09 [08:40:42]Write i2c OK [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: 01 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: 01 07 00 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: 01 07 00 07 02 00 00 00 00 00 D0 0C EC [08:40:42]RasterBufferAndPrint [08:40:42]line [08:40:42]line [08:40:42]line [08:40:42]line [08:40:42]line [08:40:42]written 0, free lines is 3285 [08:40:42]MH_Cut [08:40:42]Write to MH i2c: D1 01 00 0E 02 01 E2 [08:40:42]Write i2c OK [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: D1 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: D1 01 00 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: D1 01 00 0E 02 00 E1 [08:40:42]Write to MH i2c: 01 00 00 0F 02 11 [08:40:42]Write i2c OK [08:40:42]MH_I2C_Read... [08:40:43]OFD Sender: No OFD packet to send [08:40:43]*** Cut start [08:40:43]*** Partial cut [08:40:43]*** CUTSNS_PIN = 1 [08:40:43]*** CUTSNS_PIN = 0 [08:40:43]*** Brake cut motor [08:40:44]Read from MH i2c: 01 [08:40:44]MH_I2C_Read... [08:40:44]*** Stop cut motor [08:40:44]*** Cut end [08:40:44]Read from MH i2c: 01 07 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: 01 07 00 0F 02 00 00 00 00 00 FF 0F 26 [08:40:44]process_action close_receipt done [08:40:44]requested_data is exist [08:40:44]produce_requested_data [08:40:44]requested_item fm.sn is exist - process it [08:40:44]wFMCommunicate request_size=4 [08:40:44]MH_SAM_APDU [08:40:44]CAPDU: 80 11 00 00 [08:40:44]Write to MH i2c: E2 08 00 10 02 80 11 00 00 00 00 00 00 8C [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:44]Read from MH i2c: E2 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 17 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 17 00 10 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DB [08:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:40:44]wFMCommunicate OK [08:40:44]requested_item fd.num is exist - process it [08:40:44]SAM_PROTO_GetFieldsCounters [08:40:44]wFMCommunicate request_size=4 [08:40:44]MH_SAM_APDU [08:40:44]CAPDU: 80 13 00 00 [08:40:44]Write to MH i2c: E2 08 00 11 02 80 13 00 00 00 00 00 00 8F [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:44]Read from MH i2c: E2 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 62 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 62 00 11 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 43 74 00 00 0E 04 04 00 76 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 69 [08:40:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 43 74 00 00 0E 04 04 00 76 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 [08:40:44]wFMCommunicate OK [08:40:44]SAM_PROTO_GetFieldsCounters done [08:40:44]requested_item shift.num is exist - process it [08:40:44]requested_item shift.opened is exist - process it [08:40:44]req_shift_opened [08:40:44]FM_GetShiftState [08:40:44]SAM_PROTO_GetShiftState [08:40:44]wFMCommunicate request_size=4 [08:40:44]MH_SAM_APDU [08:40:44]CAPDU: 80 13 01 00 [08:40:44]Write to MH i2c: E2 08 00 12 02 80 13 01 00 00 00 00 00 91 [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:44]Read from MH i2c: E2 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 0E 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 0E 00 12 02 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 3F [08:40:44]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:40:44]wFMCommunicate OK [08:40:44]SAM_PROTO_GetShiftState done [08:40:44]FM_GetShiftState done [08:40:44]req_shift_opened done [08:40:44]requested_item shift.open_date is exist - process it [08:40:44]req_shift_open_date [08:40:44]req_shift_open_date done [08:40:44]produce_requested_data done [08:40:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29763,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:40:44]process_action_free close_receipt [08:40:44]json_value_free [08:40:44]json_value_free done [08:40:44]process_json_proto returns [08:40:44]Send response to host [08:40:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29763,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:40:44]free response buf [08:40:44]execute_script done [08:40:44]execute_script returns [08:40:44]free content buf [08:40:44]Sock 9.Close socket [08:40:44]Sock 9.Thread stoped [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:53]accept exits with 7 [08:42:53]New connection [08:42:53]New thread 3067133284 created [08:42:53]Thread 3067276644 joined [08:42:53]Waiting for new connection... [08:42:53] Sock 7.Parse request [08:42:53]Sock 7.Check first char [08:42:53]Sock 7.First char is OK [08:42:53]request: POST /json_proto HTTP/1.0 [08:42:53]Method: POST [08:42:53]URL: /json_proto [08:42:53]Method is POST - this is cgi request [08:42:53]url: /json_proto [08:42:53]query_string will be loaded in cgi processing [08:42:53]execute_cgi json_proto POST (null) [08:42:53]execute_cgi path=json_proto method=POST [08:42:53]POST find Content-Length [08:42:53]Host: 172.17.33.3:8080 [08:42:53]Content-Length: 682 [08:42:53]Content-Type: application/json [08:42:53] [08:42:53]POST finish read [08:42:53]Found Content-Length = 682 [08:42:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:53]execute_script... [08:42:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:53]POST & json_proto [08:42:53]process_json_proto [08:42:53]json parsed OK: [08:42:53]protocol is kg_v1.0 [08:42:53]action value=close_receipt [08:42:53]process_action close_receipt [08:42:53]cmd_close_receipt [08:42:53]MH_GetDate [08:42:53]Write to MH i2c: F0 00 00 13 02 04 [08:42:53]Write i2c OK [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: F0 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: F0 09 00 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: F0 09 00 13 02 00 0E 3A 1E 66 23 5B 8F 65 4B [08:42:53]GetLastDocTimeStamp 1713256841 [08:42:53]current date 1713256974 [08:42:53]FM_GetShiftState [08:42:53]SAM_PROTO_GetShiftState [08:42:53]wFMCommunicate request_size=4 [08:42:53]MH_SAM_APDU [08:42:53]CAPDU: 80 13 01 00 [08:42:53]Write to MH i2c: E2 08 00 14 02 80 13 01 00 00 00 00 00 93 [08:42:53]Write i2c OK [08:42:53]MH_I2C_Read... [08:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:53]Read from MH i2c: E2 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 0E 00 [08:42:53]MH_I2C_Read... [08:42:53]Read from MH i2c: E2 0E 00 14 02 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 41 [08:42:53]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:42:53]wFMCommunicate OK [08:42:53]SAM_PROTO_GetShiftState done [08:42:53]FM_GetShiftState done [08:42:53]opened in 1713226843 [08:42:53]opened+sec_in_day 1713313243 [08:42:53]quantity*price = 100051 [08:42:53]sum+1 = 100052 [08:42:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 38 16.04.2024 08:42 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29764 ФПД: 212219014808864 1/tax-web-control/client/api/v1/ticket?date=20240416T084254&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29764&fm=212219014808864&tin=02508201610067®Number=0000138879044617&sum=100000 [08:42:54]StoreToDocumentArchive [08:42:54]shift 118 fd 29764 [08:42:54]save to /storage/0118/doc_00029764 [08:42:54]save last doc name /storage/0118/doc_00029764 to /storage/kkm_last_doc_name [08:42:54]save OK [08:42:54]Clear old archive folders... [08:42:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:54]tlvbuf is 0016E120 [08:42:54]SAM_PROTO_ClearQueue [08:42:54]wFMCommunicate request_size=4 [08:42:54]MH_SAM_APDU [08:42:54]CAPDU: 80 09 00 00 [08:42:54]Write to MH i2c: E2 08 00 21 02 80 09 00 00 00 00 00 00 95 [08:42:54]Write i2c OK [08:42:54]MH_I2C_Read... [08:42:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:54]Read from MH i2c: E2 [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: E2 03 00 [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [08:42:54]RAPDU: 90 00 [08:42:54]wFMCommunicate OK [08:42:54]SAM_PROTO_ClearQueue done [08:42:54]KKMCreateOFDPacket [08:42:54]OFDProtocolAddRootSTLVToBuf [08:42:54]FM_MakeSignedData [08:42:54]FM_MakeSignedData [08:42:54]SAM_PROTO_SignData [08:42:54]wFMCommunicate request_size=4 [08:42:54]MH_SAM_APDU [08:42:54]CAPDU: 80 0D 01 02 [08:42:54]Write to MH i2c: E2 08 00 22 02 80 0D 01 02 00 00 00 00 9D [08:42:54]Write i2c OK [08:42:54]MH_I2C_Read... [08:42:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:54]Read from MH i2c: E2 [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: E2 03 00 [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [08:42:54]RAPDU: 90 00 [08:42:54]wFMCommunicate OK [08:42:54]wFMCommunicate request_size=255 [08:42:54]MH_SAM_APDU [08:42:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 0E 3A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 74 00 00 35 04 06 00 C1 [08:42:54]Write to MH i2c: E2 02 01 23 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 0E 3A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 74 00 00 35 04 06 00 C1 00 00 64 [08:42:54]Write i2c OK [08:42:54]MH_I2C_Read... [08:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:54]Read from MH i2c: E2 [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: E2 03 00 [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [08:42:54]RAPDU: 90 00 [08:42:54]wFMCommunicate OK [08:42:54]wFMCommunicate request_size=10 [08:42:54]MH_SAM_APDU [08:42:54]CAPDU: 80 0D 02 02 05 03 16 FE 05 20 [08:42:54]Write to MH i2c: E2 0D 00 24 02 80 0D 02 02 05 00 03 16 FE 05 20 00 00 E6 [08:42:54]Write i2c OK [08:42:54]MH_I2C_Read... [08:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:54]Read from MH i2c: E2 [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: E2 03 00 [08:42:54]MH_I2C_Read... [08:42:54]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [08:42:54]RAPDU: 90 00 [08:42:54]wFMCommunicate OK [08:42:54]wFMCommunicate request_size=4 [08:42:54]MH_SAM_APDU [08:42:54]CAPDU: 80 0D 03 02 [08:42:54]Write to MH i2c: E2 08 00 25 02 80 0D 03 02 00 00 00 00 A2 [08:42:55]Write i2c OK [08:42:55]MH_I2C_Read... [08:42:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:55]Read from MH i2c: E2 [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: E2 0B 00 [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: E2 0B 00 25 02 00 E9 8D 58 AD EE 3A 2A A1 90 00 11 [08:42:55]RAPDU: E9 8D 58 AD EE 3A 2A A1 90 00 [08:42:55]wFMCommunicate OK [08:42:55]SAM_PROTO_SignData done [08:42:55]FM_MakeSignedData done [08:42:55]CreateOFDProtocolMessage [08:42:55]wFMCommunicate request_size=4 [08:42:55]MH_SAM_APDU [08:42:55]CAPDU: 80 11 00 00 [08:42:55]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [08:42:55]Write i2c OK [08:42:55]MH_I2C_Read... [08:42:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:55]Read from MH i2c: E2 [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: E2 17 00 [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F1 [08:42:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:42:55]wFMCommunicate OK [08:42:55]CreateOFDProtocolMessage done [08:42:55]OFDSenderStorePacket 29764 [08:42:55]StoreOFDPacket docnum=29764 [08:42:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EF BC 07 01 E3 B6 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 0E 3A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 74 00 00 35 04 06 00 C1 03 16 FE 05 20 E9 8D 58 AD EE 3A 2A A1 [08:42:55]CheckFolder [08:42:55]dirname=/storage/ofd_packets [08:42:55]CheckFolder done [08:42:55]ProducePacketName [08:42:55]name=ofd_packets/00029764 [08:42:55]NVStorageSaveData ofd_packets/00029764 [08:42:55]File name is /storage/ofd_packets/00029764 [08:42:55]Write 301 bytes [08:42:55]NVStorageSaveData done [08:42:55]OFDSenderStorePacket done [08:42:55]KKMCreateOFDPacket done [08:42:55]NVStorageSaveData kkm_last_timestamp [08:42:55]File name is /storage/kkm_last_timestamp [08:42:55]Write 4 bytes [08:42:55]NVStorageSaveData done [08:42:55]ExternCall_PrintAddStr [08:42:55]wPrintStart [08:42:55]Write to MH i2c: 01 00 00 27 02 29 [08:42:55]Write i2c OK [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: 01 [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: 01 07 00 [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: 01 07 00 27 02 00 00 00 00 00 FF 0F 3E [08:42:55]RasterBufferAndPrint [08:42:55]line Счет N : (1)348241 [08:42:55]line ИНН: 02508201610067 [08:42:55]line Контрольно-Кассовый Чек [08:42:55]line ПРОДАЖА [08:42:55]line ТРК (МРК, ГНК) : 42 [08:42:55]line Товар: 2710124130 [08:42:55]line Аи-92-К-5 [08:42:55]line 15.440 * 64.80 [08:42:55]line = 1000.51 [08:42:55]line НДС 12% НСП 1% [08:42:55]line > о реализуемом товаре [08:42:55]line ОКРУГЛЕНИЕ: -0.51 [08:42:55]line ИТОГО: 1000.00 [08:42:55]line Внесено: 1000.00 [08:42:55]line СДАЧА: 0.00 [08:42:55]line НСП 1% : 8.85 [08:42:55]line НДС 12% : 106.25 [08:42:55]line Наличными: 1000.00 [08:42:55]line Безнал.: 0.00 [08:42:55]line Место: АЗС № 108 "Партнер Нефть" [08:42:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:42:55]line СНО: Общий режим [08:42:55]line Чек 38 16.04.2024 08:42 [08:42:55]line Смена: 118 ФФД: 1.0 [08:42:55]line ЗНМ: 0300000027 [08:42:55]line РНМ: 0000138879044617 [08:42:55]line Версия ККМ: 001 [08:42:55]line ФМ: 0000000000963154 [08:42:55]line ФД: 29764 [08:42:55]line ФПД: 212219014808864 [08:42:55]line 1/tax-web-control/client/api/v1/ticket?date=20240416T084254&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29764&fm=212219014808864&tin=02508201610067®Number=0000138879044617&sum=100000 [08:42:55]OFD Sender: Processing packet 29764 [packets to send 8, broken 7] [08:42:55]ProducePacketName [08:42:55]name=ofd_packets/00029764 [08:42:55]OFD Sender: To server: pG, [08:42:55]CommunicateWithHost lk.salyk.kg:30040 [08:42:55]ConnectInit lk.salyk.kg [08:42:55]written 0, free lines is 4095 [08:42:55]Connected sock=10 [08:42:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EF BC 07 01 E3 B6 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 0E 3A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 74 00 00 35 04 06 00 C1 03 16 FE 05 20 E9 8D 58 AD EE 3A 2A A1 [08:42:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 22 8B 47 00 B4 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 44 74 00 00 F4 03 04 00 AC E4 1D 66 B6 04 01 00 00 6F 11 70 4C 83 C0 AF BC [08:42:55]CommunicateWithHost err = 0 [08:42:55]CheckOFDResponse [08:42:55]1017 (14) - 77093643461234 [08:42:55]1041 (16) - 0000000000963154 [08:42:55]1040 (4) - 29764 [08:42:55]1012 (4) - 16.04.2024 02:38 [08:42:55]1206 (1) - 0 [08:42:55]OFD Sender: Remove packet 29764 [08:42:55]ProducePacketName [08:42:55]name=ofd_packets/00029764 [08:42:55]NVStorageDeleteData [08:42:55]Write to MH i2c: 01 00 00 51 02 53 [08:42:55]Write i2c OK [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: 01 [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: 01 07 00 [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: 01 07 00 51 02 00 00 00 00 00 D5 0C 3B [08:42:55]RasterBufferAndPrint [08:42:55]line [08:42:55]line [08:42:55]line [08:42:55]line [08:42:55]line [08:42:55]written 0, free lines is 3291 [08:42:55]MH_Cut [08:42:55]Write to MH i2c: D1 01 00 58 02 01 2C [08:42:55]Write i2c OK [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: D1 [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: D1 01 00 [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: D1 01 00 58 02 00 2B [08:42:55]Write to MH i2c: 01 00 00 59 02 5B [08:42:55]Write i2c OK [08:42:55]MH_I2C_Read... [08:42:56]OFD Sender: No OFD packet to send [08:42:56]*** Cut start [08:42:56]*** Partial cut [08:42:56]*** CUTSNS_PIN = 1 [08:42:56]*** CUTSNS_PIN = 0 [08:42:56]*** Brake cut motor [08:42:57]Read from MH i2c: 01 [08:42:57]MH_I2C_Read... [08:42:57]*** Stop cut motor [08:42:57]*** Cut end [08:42:57]Read from MH i2c: 01 07 00 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: 01 07 00 59 02 00 00 00 00 00 FF 0F 70 [08:42:57]process_action close_receipt done [08:42:57]requested_data is exist [08:42:57]produce_requested_data [08:42:57]requested_item fm.sn is exist - process it [08:42:57]wFMCommunicate request_size=4 [08:42:57]MH_SAM_APDU [08:42:57]CAPDU: 80 11 00 00 [08:42:57]Write to MH i2c: E2 08 00 5A 02 80 11 00 00 00 00 00 00 D6 [08:42:57]Write i2c OK [08:42:57]MH_I2C_Read... [08:42:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:57]Read from MH i2c: E2 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: E2 17 00 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: E2 17 00 5A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 25 [08:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:42:57]wFMCommunicate OK [08:42:57]requested_item fd.num is exist - process it [08:42:57]SAM_PROTO_GetFieldsCounters [08:42:57]wFMCommunicate request_size=4 [08:42:57]MH_SAM_APDU [08:42:57]CAPDU: 80 13 00 00 [08:42:57]Write to MH i2c: E2 08 00 5B 02 80 13 00 00 00 00 00 00 D9 [08:42:57]Write i2c OK [08:42:57]MH_I2C_Read... [08:42:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:57]Read from MH i2c: E2 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: E2 62 00 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: E2 62 00 5B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 44 74 00 00 0E 04 04 00 76 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 B7 [08:42:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 44 74 00 00 0E 04 04 00 76 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 [08:42:57]wFMCommunicate OK [08:42:57]SAM_PROTO_GetFieldsCounters done [08:42:57]requested_item shift.num is exist - process it [08:42:57]requested_item shift.opened is exist - process it [08:42:57]req_shift_opened [08:42:57]FM_GetShiftState [08:42:57]SAM_PROTO_GetShiftState [08:42:57]wFMCommunicate request_size=4 [08:42:57]MH_SAM_APDU [08:42:57]CAPDU: 80 13 01 00 [08:42:57]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [08:42:57]Write i2c OK [08:42:57]MH_I2C_Read... [08:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:57]Read from MH i2c: E2 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: E2 0E 00 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 89 [08:42:57]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:42:57]wFMCommunicate OK [08:42:57]SAM_PROTO_GetShiftState done [08:42:57]FM_GetShiftState done [08:42:57]req_shift_opened done [08:42:57]requested_item shift.open_date is exist - process it [08:42:57]req_shift_open_date [08:42:57]req_shift_open_date done [08:42:57]produce_requested_data done [08:42:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29764,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:42:57]process_action_free close_receipt [08:42:57]json_value_free [08:42:57]json_value_free done [08:42:57]process_json_proto returns [08:42:57]Send response to host [08:42:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29764,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:42:57]free response buf [08:42:57]execute_script done [08:42:57]execute_script returns [08:42:57]free content buf [08:42:57]Sock 7.Close socket [08:42:57]Sock 7.Thread stoped [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:53]int [08:43:53]Write to MH i2c: 01 00 00 5D 02 5F [08:43:53]*** FLAG_PRN_PAP1 set [08:43:53]Write i2c OK [08:43:53]MH_I2C_Read... [08:43:53]Read from MH i2c: 01 [08:43:53]MH_I2C_Read... [08:43:53]Read from MH i2c: 01 07 00 [08:43:53]MH_I2C_Read... [08:43:53]Read from MH i2c: 01 07 00 5D 02 00 01 00 00 00 FF 0F 75 [08:43:53]state=0 [08:43:53]No paper [08:43:53]int [08:43:53]Write to MH i2c: 01 00 00 5E 02 60 [08:43:53]*** FLAG_PRN_PAP2 set [08:43:53]Write i2c OK [08:43:53]MH_I2C_Read... [08:43:53]Read from MH i2c: 01 [08:43:53]MH_I2C_Read... [08:43:53]Read from MH i2c: 01 07 00 [08:43:53]MH_I2C_Read... [08:43:53]Read from MH i2c: 01 07 00 5E 02 00 03 00 00 00 FF 0F 78 [08:43:53]state=0 [08:43:53]No paper [08:43:53]Cover opened [08:43:56]OFD Sender: No OFD packet to send [08:43:58]Write to MH i2c: 01 00 00 5F 02 61 [08:43:58]Write i2c OK [08:43:58]MH_I2C_Read... [08:43:58]Read from MH i2c: 01 [08:43:58]MH_I2C_Read... [08:43:58]Read from MH i2c: 01 07 00 [08:43:58]MH_I2C_Read... [08:43:58]Read from MH i2c: 01 07 00 5F 02 00 03 00 00 00 FF 0F 79 [08:43:58]state=3 [08:43:58]No paper [08:43:58]Cover opened [08:44:01]OFD Sender: No OFD packet to send [08:44:03]Write to MH i2c: 01 00 00 60 02 62 [08:44:03]Write i2c OK [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: 01 [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: 01 07 00 [08:44:03]MH_I2C_Read... [08:44:03]Read from MH i2c: 01 07 00 60 02 00 03 00 00 00 FF 0F 7A [08:44:03]state=3 [08:44:03]No paper [08:44:03]Cover opened [08:44:06]OFD Sender: No OFD packet to send [08:44:08]Write to MH i2c: 01 00 00 61 02 63 [08:44:08]Write i2c OK [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: 01 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: 01 07 00 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: 01 07 00 61 02 00 03 00 00 00 FF 0F 7B [08:44:08]state=3 [08:44:08]No paper [08:44:08]Cover opened [08:44:11]OFD Sender: No OFD packet to send [08:44:11]accept exits with 9 [08:44:11]New connection [08:44:11]New thread 3067276644 created [08:44:11]Thread 3067133284 joined [08:44:11]Waiting for new connection... [08:44:11] Sock 9.Parse request [08:44:11]Sock 9.Check first char [08:44:11]Sock 9.First char is OK [08:44:11]request: POST /json_proto HTTP/1.0 [08:44:11]Method: POST [08:44:11]URL: /json_proto [08:44:11]Method is POST - this is cgi request [08:44:11]url: /json_proto [08:44:11]query_string will be loaded in cgi processing [08:44:11]execute_cgi json_proto POST (null) [08:44:11]execute_cgi path=json_proto method=POST [08:44:11]POST find Content-Length [08:44:11]Host: 172.17.33.3:8080 [08:44:11]Content-Length: 819 [08:44:11]Content-Type: application/json [08:44:11] [08:44:11]POST finish read [08:44:11]Found Content-Length = 819 [08:44:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:11]execute_script... [08:44: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)348242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:11]POST & json_proto [08:44:11]process_json_proto [08:44:11]json parsed OK: [08:44:11]protocol is kg_v1.0 [08:44:11]action value=close_receipt [08:44:11]process_action close_receipt [08:44:11]cmd_close_receipt [08:44:11]MH_GetDate [08:44:11]Write to MH i2c: F0 00 00 62 02 53 [08:44:11]Write i2c OK [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: F0 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: F0 09 00 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: F0 09 00 62 02 00 5C 3A 1E 66 23 5B 8F 65 E8 [08:44:11]GetLastDocTimeStamp 1713256974 [08:44:11]current date 1713257052 [08:44:11]FM_GetShiftState [08:44:11]SAM_PROTO_GetShiftState [08:44:11]wFMCommunicate request_size=4 [08:44:11]MH_SAM_APDU [08:44:11]CAPDU: 80 13 01 00 [08:44:11]Write to MH i2c: E2 08 00 63 02 80 13 01 00 00 00 00 00 E2 [08:44:11]Write i2c OK [08:44:11]MH_I2C_Read... [08:44:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:11]Read from MH i2c: E2 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 0E 00 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 0E 00 63 02 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 90 [08:44:11]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:44:11]wFMCommunicate OK [08:44:11]SAM_PROTO_GetShiftState done [08:44:11]FM_GetShiftState done [08:44:11]opened in 1713226843 [08:44:11]opened+sec_in_day 1713313243 [08:44:11]quantity*price = 200037 [08:44:11]sum+1 = 200039 [08:44:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.38 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.38 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 39 16.04.2024 08:44 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29765 ФПД: 167122875084063 1/tax-web-control/client/api/v1/ticket?date=20240416T084412&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29765&fm=167122875084063&tin=02508201610067®Number=0000138879044617&sum=200038 [08:44:12]StoreToDocumentArchive [08:44:12]shift 118 fd 29765 [08:44:12]save to /storage/0118/doc_00029765 [08:44:12]save last doc name /storage/0118/doc_00029765 to /storage/kkm_last_doc_name [08:44:12]save OK [08:44:12]Clear old archive folders... [08:44:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:12]tlvbuf is 00169C20 [08:44:12]SAM_PROTO_ClearQueue [08:44:12]wFMCommunicate request_size=4 [08:44:12]MH_SAM_APDU [08:44:12]CAPDU: 80 09 00 00 [08:44:12]Write to MH i2c: E2 08 00 70 02 80 09 00 00 00 00 00 00 E4 [08:44:12]Write i2c OK [08:44:12]MH_I2C_Read... [08:44:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:12]Read from MH i2c: E2 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 03 00 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 03 00 70 02 00 90 00 E6 [08:44:12]RAPDU: 90 00 [08:44:12]wFMCommunicate OK [08:44:12]SAM_PROTO_ClearQueue done [08:44:12]KKMCreateOFDPacket [08:44:12]OFDProtocolAddRootSTLVToBuf [08:44:12]FM_MakeSignedData [08:44:12]FM_MakeSignedData [08:44:12]SAM_PROTO_SignData [08:44:12]wFMCommunicate request_size=4 [08:44:12]MH_SAM_APDU [08:44:12]CAPDU: 80 0D 01 02 [08:44:12]Write to MH i2c: E2 08 00 71 02 80 0D 01 02 00 00 00 00 EC [08:44:12]Write i2c OK [08:44:12]MH_I2C_Read... [08:44:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:12]Read from MH i2c: E2 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 03 00 [08:44:12]MH_I2C_Read... [08:44:12]Read from MH i2c: E2 03 00 71 02 00 90 00 E7 [08:44:12]RAPDU: 90 00 [08:44:12]wFMCommunicate OK [08:44:12]wFMCommunicate request_size=255 [08:44:12]MH_SAM_APDU [08:44: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 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 5C 3A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 74 00 00 35 04 06 00 97 [08:44:12]Write to MH i2c: E2 02 01 72 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 5C 3A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 74 00 00 35 04 06 00 97 00 00 EE [08:44:12]Write i2c OK [08:44:12]MH_I2C_Read... [08:44:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:13]Read from MH i2c: E2 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 03 00 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 03 00 72 02 00 90 00 E8 [08:44:13]RAPDU: 90 00 [08:44:13]wFMCommunicate OK [08:44:13]wFMCommunicate request_size=10 [08:44:13]MH_SAM_APDU [08:44:13]CAPDU: 80 0D 02 02 05 FF 53 9A 6D 1F [08:44:13]Write to MH i2c: E2 0D 00 73 02 80 0D 02 02 05 00 FF 53 9A 6D 1F 00 00 71 [08:44:13]Write i2c OK [08:44:13]MH_I2C_Read... [08:44:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:13]Read from MH i2c: E2 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 03 00 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 03 00 73 02 00 90 00 E9 [08:44:13]RAPDU: 90 00 [08:44:13]wFMCommunicate OK [08:44:13]wFMCommunicate request_size=4 [08:44:13]MH_SAM_APDU [08:44:13]CAPDU: 80 0D 03 02 [08:44:13]Write to MH i2c: E2 08 00 74 02 80 0D 03 02 00 00 00 00 F1 [08:44:13]Write i2c OK [08:44:13]MH_I2C_Read... [08:44:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:13]Read from MH i2c: E2 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 0B 00 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 0B 00 74 02 00 B7 F1 FB DD 2F 20 B8 D3 90 00 4C [08:44:13]RAPDU: B7 F1 FB DD 2F 20 B8 D3 90 00 [08:44:13]wFMCommunicate OK [08:44:13]SAM_PROTO_SignData done [08:44:13]FM_MakeSignedData done [08:44:13]CreateOFDProtocolMessage [08:44:13]wFMCommunicate request_size=4 [08:44:13]MH_SAM_APDU [08:44:13]CAPDU: 80 11 00 00 [08:44:13]Write to MH i2c: E2 08 00 75 02 80 11 00 00 00 00 00 00 F1 [08:44:13]Write i2c OK [08:44:13]MH_I2C_Read... [08:44:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:13]Read from MH i2c: E2 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 17 00 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: E2 17 00 75 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 40 [08:44:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:44:13]wFMCommunicate OK [08:44:13]CreateOFDProtocolMessage done [08:44:13]OFDSenderStorePacket 29765 [08:44:13]StoreOFDPacket docnum=29765 [08:44:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E8 FC 07 01 45 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 5C 3A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 74 00 00 35 04 06 00 97 FF 53 9A 6D 1F B7 F1 FB DD 2F 20 B8 D3 [08:44:13]CheckFolder [08:44:13]dirname=/storage/ofd_packets [08:44:13]CheckFolder done [08:44:13]ProducePacketName [08:44:13]name=ofd_packets/00029765 [08:44:13]NVStorageSaveData ofd_packets/00029765 [08:44:13]File name is /storage/ofd_packets/00029765 [08:44:13]Write 301 bytes [08:44:13]NVStorageSaveData done [08:44:13]OFDSenderStorePacket done [08:44:13]KKMCreateOFDPacket done [08:44:13]NVStorageSaveData kkm_last_timestamp [08:44:13]File name is /storage/kkm_last_timestamp [08:44:13]Write 4 bytes [08:44:13]NVStorageSaveData done [08:44:13]ExternCall_PrintAddStr [08:44:13]wPrintStart [08:44:13]Write to MH i2c: 01 00 00 76 02 78 [08:44:13]Write i2c OK [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: 01 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: 01 07 00 [08:44:13]MH_I2C_Read... [08:44:13]Read from MH i2c: 01 07 00 76 02 00 03 00 00 00 FF 0F 90 [08:44:13]RasterBufferAndPrint [08:44:13]line Счет N : (1)348242 [08:44:13]line ИНН: 02508201610067 [08:44:13]line Контрольно-Кассовый Чек [08:44:13]line ПРОДАЖА [08:44:13]line ТРК (МРК, ГНК) : 33 [08:44:13]line Товар: 2710124500 [08:44:13]line Аи-95-К-5 [08:44:13]line 27.440 * 72.90 [08:44:13]line = 2000.38 [08:44:13]line НДС 12% НСП 1% [08:44:13]line > о реализуемом товаре [08:44:13]line ИТОГО: 2000.38 [08:44:13]line НСП 1% : 17.70 [08:44:13]line НДС 12% : 212.43 [08:44:13]line Наличными: 0.00 [08:44:13]line Безнал.: 2000.38 [08:44:13]line Место: АЗС № 108 "Партнер Нефть" [08:44:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:44:13]line СНО: Общий режим [08:44:13]line Чек 39 16.04.2024 08:44 [08:44:13]line Смена: 118 ФФД: 1.0 [08:44:13]line ЗНМ: 0300000027 [08:44:13]line РНМ: 0000138879044617 [08:44:13]line Версия ККМ: 001 [08:44:13]line Платежная система: Бакай Банк [08:44:13]line ФМ: 0000000000963154 [08:44:13]line ФД: 29765 [08:44:13]line ФПД: 167122875084063 [08:44:13]line 1/tax-web-control/client/api/v1/ticket?date=20240416T084412&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29765&fm=167122875084063&tin=02508201610067®Number=0000138879044617&sum=200038 [08:44:13]OFD Sender: Processing packet 29765 [packets to send 8, broken 7] [08:44:13]ProducePacketName [08:44:13]name=ofd_packets/00029765 [08:44:13]OFD Sender: To server: pG, [08:44:13]CommunicateWithHost lk.salyk.kg:30040 [08:44:13]ConnectInit lk.salyk.kg [08:44:13]Write to MH i2c: 01 00 00 77 02 79 [08:44:13]state=3 [08:44:13]No paper [08:44:13]Cover opened [08:44:13]written 0, free lines is 4095 [08:44:13]Error from MH - 05 [08:44:13]process_action_free close_receipt [08:44:13]json_value_free [08:44:13]json_value_free done [08:44:13]process_json_proto returns [08:44:13]Send response to host [08:44:13]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [08:44:13]free response buf [08:44:13]execute_script done [08:44:13]execute_script returns [08:44:13]free content buf [08:44:13]Sock 9.Close socket [08:44:13]Sock 9.Thread stoped [08:44:13]Connected sock=6 [08:44:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E8 FC 07 01 45 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 5C 3A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 74 00 00 35 04 06 00 97 FF 53 9A 6D 1F B7 F1 FB DD 2F 20 B8 D3 [08:44:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B0 38 47 00 53 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 36 33 31 35 34 10 04 04 00 45 74 00 00 F4 03 04 00 FA E4 1D 66 B6 04 01 00 00 E4 FA 11 57 B2 64 4D 03 [08:44:13]CommunicateWithHost err = 0 [08:44:13]CheckOFDResponse [08:44:13]1017 (14) - 77093643461234 [08:44:13]1041 (16) - 0000000000963154 [08:44:13]1040 (4) - 29765 [08:44:13]1012 (4) - 16.04.2024 02:39 [08:44:13]1206 (1) - 0 [08:44:13]OFD Sender: Remove packet 29765 [08:44:13]ProducePacketName [08:44:13]name=ofd_packets/00029765 [08:44:13]NVStorageDeleteData [08:44:14]OFD Sender: No OFD packet to send [08:44:18]Write to MH i2c: 01 00 00 7A 02 7C [08:44:18]Write i2c OK [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: 01 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: 01 07 00 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: 01 07 00 7A 02 00 03 00 00 00 FF 0F 94 [08:44:18]state=3 [08:44:18]No paper [08:44:18]Cover opened [08:44:19]OFD Sender: No OFD packet to send [08:44:23]Write to MH i2c: 01 00 00 7B 02 7D [08:44:23]Write i2c OK [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: 01 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: 01 07 00 [08:44:23]MH_I2C_Read... [08:44:23]Read from MH i2c: 01 07 00 7B 02 00 03 00 00 00 FF 0F 95 [08:44:23]state=3 [08:44:23]No paper [08:44:23]Cover opened [08:44:24]OFD Sender: No OFD packet to send [08:44:28]Write to MH i2c: 01 00 00 7C 02 7E [08:44:28]Write i2c OK [08:44:28]MH_I2C_Read... [08:44:28]Read from MH i2c: 01 [08:44:28]MH_I2C_Read... [08:44:28]Read from MH i2c: 01 07 00 [08:44:28]MH_I2C_Read... [08:44:28]Read from MH i2c: 01 07 00 7C 02 00 03 00 00 00 FF 0F 96 [08:44:28]state=3 [08:44:28]No paper [08:44:28]Cover opened [08:44:29]OFD Sender: No OFD packet to send [08:44:33]Write to MH i2c: 01 00 00 7D 02 7F [08:44:33]Write i2c OK [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: 01 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: 01 07 00 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: 01 07 00 7D 02 00 03 00 00 00 FF 0F 97 [08:44:33]state=3 [08:44:33]No paper [08:44:33]Cover opened [08:44:34]OFD Sender: No OFD packet to send [08:44:38]Write to MH i2c: 01 00 00 7E 02 80 [08:44:38]Write i2c OK [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: 01 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: 01 07 00 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: 01 07 00 7E 02 00 03 00 00 00 FF 0F 98 [08:44:38]state=3 [08:44:38]No paper [08:44:38]Cover opened [08:44:39]OFD Sender: No OFD packet to send [08:44:43]Write to MH i2c: 01 00 00 7F 02 81 [08:44:43]Write i2c OK [08:44:43]MH_I2C_Read... [08:44:43]Read from MH i2c: 01 [08:44:43]MH_I2C_Read... [08:44:43]Read from MH i2c: 01 07 00 [08:44:43]MH_I2C_Read... [08:44:43]Read from MH i2c: 01 07 00 7F 02 00 03 00 00 00 FF 0F 99 [08:44:43]state=3 [08:44:43]No paper [08:44:43]Cover opened [08:44:44]OFD Sender: No OFD packet to send [08:44:48]Write to MH i2c: 01 00 00 80 02 82 [08:44:48]Write i2c OK [08:44:48]MH_I2C_Read... [08:44:48]Read from MH i2c: 01 [08:44:48]MH_I2C_Read... [08:44:48]Read from MH i2c: 01 07 00 [08:44:48]MH_I2C_Read... [08:44:48]Read from MH i2c: 01 07 00 80 02 00 03 00 00 00 FF 0F 9A [08:44:48]state=3 [08:44:48]No paper [08:44:48]Cover opened [08:44:49]OFD Sender: No OFD packet to send [08:44:53]Write to MH i2c: 01 00 00 81 02 83 [08:44:53]Write i2c OK [08:44:53]MH_I2C_Read... [08:44:53]Read from MH i2c: 01 [08:44:53]MH_I2C_Read... [08:44:53]Read from MH i2c: 01 07 00 [08:44:53]MH_I2C_Read... [08:44:53]Read from MH i2c: 01 07 00 81 02 00 03 00 00 00 FF 0F 9B [08:44:53]state=3 [08:44:53]No paper [08:44:53]Cover opened [08:44:54]OFD Sender: No OFD packet to send [08:44:58]Write to MH i2c: 01 00 00 82 02 84 [08:44:58]Write i2c OK [08:44:58]MH_I2C_Read... [08:44:58]Read from MH i2c: 01 [08:44:58]MH_I2C_Read... [08:44:58]Read from MH i2c: 01 07 00 [08:44:58]MH_I2C_Read... [08:44:58]Read from MH i2c: 01 07 00 82 02 00 03 00 00 00 FF 0F 9C [08:44:58]state=3 [08:44:58]No paper [08:44:58]Cover opened [08:44:59]OFD Sender: No OFD packet to send [08:45:03]Write to MH i2c: 01 00 00 83 02 85 [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: 01 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: 01 07 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: 01 07 00 83 02 00 03 00 00 00 FF 0F 9D [08:45:03]state=3 [08:45:03]No paper [08:45:03]Cover opened [08:45:04]OFD Sender: No OFD packet to send [08:45:08]Write to MH i2c: 01 00 00 84 02 86 [08:45:08]Write i2c OK [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: 01 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: 01 07 00 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: 01 07 00 84 02 00 03 00 00 00 FF 0F 9E [08:45:08]state=3 [08:45:08]No paper [08:45:08]Cover opened [08:45:09]OFD Sender: No OFD packet to send [08:45:13]Write to MH i2c: 01 00 00 85 02 87 [08:45:13]Write i2c OK [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: 01 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: 01 07 00 [08:45:13]MH_I2C_Read... [08:45:13]Read from MH i2c: 01 07 00 85 02 00 03 00 00 00 FF 0F 9F [08:45:13]state=3 [08:45:13]No paper [08:45:13]Cover opened [08:45:14]OFD Sender: No OFD packet to send [08:45:18]Write to MH i2c: 01 00 00 86 02 88 [08:45:18]Write i2c OK [08:45:18]MH_I2C_Read... [08:45:18]Read from MH i2c: 01 [08:45:18]MH_I2C_Read... [08:45:18]Read from MH i2c: 01 07 00 [08:45:18]MH_I2C_Read... [08:45:18]Read from MH i2c: 01 07 00 86 02 00 03 00 00 00 FF 0F A0 [08:45:18]state=3 [08:45:18]No paper [08:45:18]Cover opened [08:45:19]OFD Sender: No OFD packet to send [08:45:23]Write to MH i2c: 01 00 00 87 02 89 [08:45:23]Write i2c OK [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: 01 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: 01 07 00 [08:45:23]MH_I2C_Read... [08:45:23]Read from MH i2c: 01 07 00 87 02 00 03 00 00 00 FF 0F A1 [08:45:23]state=3 [08:45:23]No paper [08:45:23]Cover opened [08:45:24]OFD Sender: No OFD packet to send [08:45:28]Write to MH i2c: 01 00 00 88 02 8A [08:45:28]Write i2c OK [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: 01 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: 01 07 00 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: 01 07 00 88 02 00 03 00 00 00 FF 0F A2 [08:45:28]state=3 [08:45:28]No paper [08:45:28]Cover opened [08:45:29]OFD Sender: No OFD packet to send [08:45:33]Write to MH i2c: 01 00 00 89 02 8B [08:45:33]Write i2c OK [08:45:33]MH_I2C_Read... [08:45:33]Read from MH i2c: 01 [08:45:33]MH_I2C_Read... [08:45:33]Read from MH i2c: 01 07 00 [08:45:33]MH_I2C_Read... [08:45:33]Read from MH i2c: 01 07 00 89 02 00 03 00 00 00 FF 0F A3 [08:45:33]state=3 [08:45:33]No paper [08:45:33]Cover opened [08:45:34]OFD Sender: No OFD packet to send [08:45:38]Write to MH i2c: 01 00 00 8A 02 8C [08:45:38]Write i2c OK [08:45:38]MH_I2C_Read... [08:45:38]Read from MH i2c: 01 [08:45:38]MH_I2C_Read... [08:45:38]Read from MH i2c: 01 07 00 [08:45:38]MH_I2C_Read... [08:45:38]Read from MH i2c: 01 07 00 8A 02 00 03 00 00 00 FF 0F A4 [08:45:38]state=3 [08:45:38]No paper [08:45:38]Cover opened [08:45:39]OFD Sender: No OFD packet to send [08:45:43]Write to MH i2c: 01 00 00 8B 02 8D [08:45:43]Write i2c OK [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: 01 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: 01 07 00 [08:45:43]MH_I2C_Read... [08:45:43]Read from MH i2c: 01 07 00 8B 02 00 03 00 00 00 FF 0F A5 [08:45:43]state=3 [08:45:43]No paper [08:45:43]Cover opened [08:45:44]OFD Sender: No OFD packet to send [08:45:48]Write to MH i2c: 01 00 00 8C 02 8E [08:45:48]Write i2c OK [08:45:48]MH_I2C_Read... [08:45:48]Read from MH i2c: 01 [08:45:48]MH_I2C_Read... [08:45:48]Read from MH i2c: 01 07 00 [08:45:48]MH_I2C_Read... [08:45:48]Read from MH i2c: 01 07 00 8C 02 00 03 00 00 00 FF 0F A6 [08:45:48]state=3 [08:45:48]No paper [08:45:48]Cover opened [08:45:49]OFD Sender: No OFD packet to send [08:45:53]Write to MH i2c: 01 00 00 8D 02 8F [08:45:53]Write i2c OK [08:45:53]MH_I2C_Read... [08:45:53]Read from MH i2c: 01 [08:45:53]MH_I2C_Read... [08:45:53]Read from MH i2c: 01 07 00 [08:45:53]MH_I2C_Read... [08:45:53]Read from MH i2c: 01 07 00 8D 02 00 03 00 00 00 FF 0F A7 [08:45:53]state=3 [08:45:53]No paper [08:45:53]Cover opened [08:45:54]OFD Sender: No OFD packet to send [08:45:56]int [08:45:56]Write to MH i2c: 01 00 00 8E 02 90 [08:45:56]*** FLAG_PRN_PAP2 reset [08:45:56]Write i2c OK [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: 01 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: 01 07 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: 01 07 00 8E 02 00 01 00 00 00 FF 0F A6 [08:45:56]state=3 [08:45:56]No paper [08:45:56]Cover closed [08:45:56]int [08:45:56]Write to MH i2c: 01 00 00 8F 02 91 [08:45:56]*** FLAG_PRN_PAP1 reset [08:45:56]Write i2c OK [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: 01 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: 01 07 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: 01 07 00 8F 02 00 00 00 00 00 FF 0F A6 [08:45:56]state=0 [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:35]accept exits with 7 [08:46:35]New connection [08:46:35]New thread 3067133284 created [08:46:35]Thread 3067276644 joined [08:46:35]Waiting for new connection... [08:46:35] Sock 7.Parse request [08:46:35]Sock 7.Check first char [08:46:35]Sock 7.First char is OK [08:46:35]request: POST /json_proto HTTP/1.0 [08:46:35]Method: POST [08:46:35]URL: /json_proto [08:46:35]Method is POST - this is cgi request [08:46:35]url: /json_proto [08:46:35]query_string will be loaded in cgi processing [08:46:35]execute_cgi json_proto POST (null) [08:46:35]execute_cgi path=json_proto method=POST [08:46:35]POST find Content-Length [08:46:35]Host: 172.17.33.3:8080 [08:46:35]Content-Length: 215 [08:46:35]Content-Type: application/json [08:46:35] [08:46:35]POST finish read [08:46:35]Found Content-Length = 215 [08:46:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:35]execute_script... [08:46:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:35]POST & json_proto [08:46:35]process_json_proto [08:46:35]json parsed OK: [08:46:35]protocol is kg_v1.0 [08:46:35]action value=get_value [08:46:35]process_action get_value [08:46:35]cmd_get_value [08:46:35]process_action get_value done [08:46:35]requested_data is exist [08:46:35]produce_requested_data [08:46:35]requested_item kkm.sn is exist - process it [08:46:35]requested_item kkm.ver is exist - process it [08:46:35]requested_item fm.sn is exist - process it [08:46:35]wFMCommunicate request_size=4 [08:46:35]MH_SAM_APDU [08:46:35]CAPDU: 80 11 00 00 [08:46:35]Write to MH i2c: E2 08 00 90 02 80 11 00 00 00 00 00 00 0C [08:46:35]Write i2c OK [08:46:35]MH_I2C_Read... [08:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:35]Read from MH i2c: E2 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: E2 17 00 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: E2 17 00 90 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5B [08:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:46:35]wFMCommunicate OK [08:46:35]requested_item fd.num is exist - process it [08:46:35]SAM_PROTO_GetFieldsCounters [08:46:35]wFMCommunicate request_size=4 [08:46:35]MH_SAM_APDU [08:46:35]CAPDU: 80 13 00 00 [08:46:35]Write to MH i2c: E2 08 00 91 02 80 13 00 00 00 00 00 00 0F [08:46:35]Write i2c OK [08:46:35]MH_I2C_Read... [08:46:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:35]Read from MH i2c: E2 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: E2 62 00 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: E2 62 00 91 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 45 74 00 00 0E 04 04 00 76 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 F1 [08:46:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 45 74 00 00 0E 04 04 00 76 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 [08:46:35]wFMCommunicate OK [08:46:35]SAM_PROTO_GetFieldsCounters done [08:46:35]requested_item shift.num is exist - process it [08:46:35]requested_item shift.opened is exist - process it [08:46:35]req_shift_opened [08:46:35]FM_GetShiftState [08:46:35]SAM_PROTO_GetShiftState [08:46:35]wFMCommunicate request_size=4 [08:46:35]MH_SAM_APDU [08:46:35]CAPDU: 80 13 01 00 [08:46:35]Write to MH i2c: E2 08 00 92 02 80 13 01 00 00 00 00 00 11 [08:46:35]Write i2c OK [08:46:35]MH_I2C_Read... [08:46:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:35]Read from MH i2c: E2 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: E2 0E 00 [08:46:35]MH_I2C_Read... [08:46:35]Read from MH i2c: E2 0E 00 92 02 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 BF [08:46:35]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:46:35]wFMCommunicate OK [08:46:35]SAM_PROTO_GetShiftState done [08:46:35]FM_GetShiftState done [08:46:35]req_shift_opened done [08:46:35]requested_item shift.open_date is exist - process it [08:46:35]req_shift_open_date [08:46:35]req_shift_open_date done [08:46:35]produce_requested_data done [08:46:35]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29765,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:46:35]process_action_free get_value [08:46:35]json_value_free [08:46:35]json_value_free done [08:46:35]process_json_proto returns [08:46:35]Send response to host [08:46:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29765,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:46:35]free response buf [08:46:35]execute_script done [08:46:35]execute_script returns [08:46:35]free content buf [08:46:35]Sock 7.Close socket [08:46:35]Sock 7.Thread stoped [08:46:35]accept exits with 9 [08:46:35]New connection [08:46:35]New thread 3067276644 created [08:46:35]Thread 3067133284 joined [08:46:35]Waiting for new connection... [08:46:35] Sock 9.Parse request [08:46:35]Sock 9.Check first char [08:46:35]Sock 9.First char is OK [08:46:35]request: POST /json_proto HTTP/1.0 [08:46:35]Method: POST [08:46:35]URL: /json_proto [08:46:35]Method is POST - this is cgi request [08:46:35]url: /json_proto [08:46:35]query_string will be loaded in cgi processing [08:46:35]execute_cgi json_proto POST (null) [08:46:35]execute_cgi path=json_proto method=POST [08:46:35]POST find Content-Length [08:46:35]Host: 172.17.33.3:8080 [08:46:35]Content-Length: 331 [08:46:35]Content-Type: application/json [08:46:35] [08:46:35]POST finish read [08:46:35]Found Content-Length = 331 [08:46:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:46:35]execute_script... [08:46: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" ] } } [08:46:36]POST & json_proto [08:46:36]process_json_proto [08:46:36]json parsed OK: [08:46:36]protocol is kg_v1.0 [08:46:36]action value=get_value [08:46:36]process_action get_value [08:46:36]cmd_get_value [08:46:36]process_action get_value done [08:46:36]requested_data is exist [08:46:36]produce_requested_data [08:46:36]requested_item fm.sale.total is exist - process it [08:46:36]SAM_PROTO_GetFMData [08:46:36]wFMCommunicate request_size=4 [08:46:36]MH_SAM_APDU [08:46:36]CAPDU: 80 13 03 00 [08:46:36]Write to MH i2c: E2 08 00 93 02 80 13 03 00 00 00 00 00 14 [08:46:36]Write i2c OK [08:46:36]MH_I2C_Read... [08:46:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:46:36]Read from MH i2c: E2 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 FD 00 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 FD 00 93 02 00 C3 04 85 04 BF 04 6E 04 04 00 59 73 00 00 69 04 A1 00 6F 04 04 00 EC 6F 00 00 B1 04 04 00 F4 91 66 B6 70 04 04 00 B8 8C E2 73 72 04 04 00 3C 05 84 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6D B0 5F 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 87 45 9D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 EF 03 09 00 F6 90 00 F9 [08:46:36]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 59 73 00 00 69 04 A1 00 6F 04 04 00 EC 6F 00 00 B1 04 04 00 F4 91 66 B6 70 04 04 00 B8 8C E2 73 72 04 04 00 3C 05 84 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6D B0 5F 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 87 45 9D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 EF 03 09 00 F6 90 00 [08:46:36]wFMCommunicate OK [08:46:36]wFMCommunicate request_size=4 [08:46:36]MH_SAM_APDU [08:46:36]CAPDU: 80 17 00 00 [08:46:36]Write to MH i2c: E2 08 00 94 02 80 17 00 00 00 00 00 00 16 [08:46:36]Write i2c OK [08:46:36]MH_I2C_Read... [08:46:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:46:36]Read from MH i2c: E2 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 FD 00 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 FD 00 94 02 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D0 [08:46:36]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:46:36]wFMCommunicate OK [08:46:36]wFMCommunicate request_size=4 [08:46:36]MH_SAM_APDU [08:46:36]CAPDU: 80 17 00 00 [08:46:36]Write to MH i2c: E2 08 00 95 02 80 17 00 00 00 00 00 00 17 [08:46:36]Write i2c OK [08:46:36]MH_I2C_Read... [08:46:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:46:37]Read from MH i2c: E2 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 FD 00 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 FD 00 95 02 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [08:46:37]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:46:37]wFMCommunicate OK [08:46:37]wFMCommunicate request_size=4 [08:46:37]MH_SAM_APDU [08:46:37]CAPDU: 80 17 00 00 [08:46:37]Write to MH i2c: E2 08 00 96 02 80 17 00 00 00 00 00 00 18 [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:46:37]Read from MH i2c: E2 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 FD 00 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 FD 00 96 02 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8A [08:46:37]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:46:37]wFMCommunicate OK [08:46:37]wFMCommunicate request_size=4 [08:46:37]MH_SAM_APDU [08:46:37]CAPDU: 80 17 00 00 [08:46:37]Write to MH i2c: E2 08 00 97 02 80 17 00 00 00 00 00 00 19 [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [08:46:37]Read from MH i2c: E2 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 E0 00 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 E0 00 97 02 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 03 [08:46:37]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:46:37]wFMCommunicate OK [08:46:37]SAM_PROTO_GetFMData done [08:46:37]requested_item fm.sale_refund.total is exist - process it [08:46:37]requested_item fm.buy.total is exist - process it [08:46:37]requested_item shift.sale.total is exist - process it [08:46:37]SAM_PROTO_GetShiftData [08:46:37]wFMCommunicate request_size=4 [08:46:37]MH_SAM_APDU [08:46:37]CAPDU: 80 13 02 00 [08:46:37]Write to MH i2c: E2 08 00 98 02 80 13 02 00 00 00 00 00 18 [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:46:38]Read from MH i2c: E2 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 FD 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 FD 00 98 02 00 AE 04 AA 04 AA 04 6E 04 04 00 27 00 00 00 69 04 9B 00 6F 04 04 00 27 00 00 00 B1 04 03 00 77 17 34 70 04 03 00 04 BC 26 72 04 03 00 73 5B 0D 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 76 88 05 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 08 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 2B [08:46:38]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 27 00 00 00 69 04 9B 00 6F 04 04 00 27 00 00 00 B1 04 03 00 77 17 34 70 04 03 00 04 BC 26 72 04 03 00 73 5B 0D 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 76 88 05 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 08 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [08:46:38]wFMCommunicate OK [08:46:38]wFMCommunicate request_size=4 [08:46:38]MH_SAM_APDU [08:46:38]CAPDU: 80 17 00 00 [08:46:38]Write to MH i2c: E2 08 00 99 02 80 17 00 00 00 00 00 00 1B [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:46:38]Read from MH i2c: E2 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 FD 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 FD 00 99 02 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 3D [08:46:38]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [08:46:38]wFMCommunicate OK [08:46:38]wFMCommunicate request_size=4 [08:46:38]MH_SAM_APDU [08:46:38]CAPDU: 80 17 00 00 [08:46:38]Write to MH i2c: E2 08 00 9A 02 80 17 00 00 00 00 00 00 1C [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:46:38]Read from MH i2c: E2 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 FD 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 FD 00 9A 02 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 D3 [08:46:38]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [08:46:38]wFMCommunicate OK [08:46:38]wFMCommunicate request_size=4 [08:46:38]MH_SAM_APDU [08:46:38]CAPDU: 80 17 00 00 [08:46:38]Write to MH i2c: E2 08 00 9B 02 80 17 00 00 00 00 00 00 1D [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:46:39]Read from MH i2c: E2 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: E2 FD 00 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: E2 FD 00 9B 02 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 8F [08:46:39]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [08:46:39]wFMCommunicate OK [08:46:39]wFMCommunicate request_size=4 [08:46:39]MH_SAM_APDU [08:46:39]CAPDU: 80 17 00 00 [08:46:39]Write to MH i2c: E2 08 00 9C 02 80 17 00 00 00 00 00 00 1E [08:46:39]Write i2c OK [08:46:39]MH_I2C_Read... [08:46:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:46:39]Read from MH i2c: E2 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: E2 CB 00 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: E2 CB 00 9C 02 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 07 [08:46:39]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:46:39]wFMCommunicate OK [08:46:39]SAM_PROTO_GetShiftData done [08:46:39]requested_item shift.sale.total_cash is exist - process it [08:46:39]requested_item shift.sale_refund.total is exist - process it [08:46:39]requested_item shift.sale_refund.total_cash is exist - process it [08:46:39]requested_item shift.buy.total is exist - process it [08:46:39]requested_item shift.buy.total_cash is exist - process it [08:46:39]produce_requested_data done [08:46:39]produce_requested_data return {"fm.sale.total":30601753.48,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":34138.79,"shift.sale.total_cash":25385.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:46:39]process_action_free get_value [08:46:39]json_value_free [08:46:39]json_value_free done [08:46:39]process_json_proto returns [08:46:39]Send response to host [08:46:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30601753.48,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":34138.79,"shift.sale.total_cash":25385.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:46:39]free response buf [08:46:39]execute_script done [08:46:39]execute_script returns [08:46:39]free content buf [08:46:39]Sock 9.Close socket [08:46:39]Sock 9.Thread stoped [08:46:39]accept exits with 7 [08:46:39]New connection [08:46:39]New thread 3067133284 created [08:46:39]Thread 3067276644 joined [08:46:39]Waiting for new connection... [08:46:39] Sock 7.Parse request [08:46:39]Sock 7.Check first char [08:46:39]Sock 7.First char is OK [08:46:39]request: POST /json_proto HTTP/1.0 [08:46:39]Method: POST [08:46:39]URL: /json_proto [08:46:39]Method is POST - this is cgi request [08:46:39]url: /json_proto [08:46:39]query_string will be loaded in cgi processing [08:46:39]execute_cgi json_proto POST (null) [08:46:39]execute_cgi path=json_proto method=POST [08:46:39]POST find Content-Length [08:46:39]Host: 172.17.33.3:8080 [08:46:39]Content-Length: 144 [08:46:39]Content-Type: application/json [08:46:39] [08:46:39]POST finish read [08:46:39]Found Content-Length = 144 [08:46:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [08:46:39]execute_script... [08:46:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [08:46:39]POST & json_proto [08:46:39]process_json_proto [08:46:39]json parsed OK: [08:46:39]protocol is kg_v1.0 [08:46:39]action value=print_doc [08:46:39]process_action print_doc [08:46:39]ExternCall_PrintAddStr [08:46:39]wPrintStart [08:46:39]Write to MH i2c: 01 00 00 9D 02 9F [08:46:39]Write i2c OK [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: 01 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: 01 07 00 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: 01 07 00 9D 02 00 00 00 00 00 FF 0F B4 [08:46:39]RasterBufferAndPrint [08:46:39]line Счет N : (1)348242 [08:46:39]line ИНН: 02508201610067 [08:46:39]line Контрольно-Кассовый Чек [08:46:39]line ПРОДАЖА [08:46:39]line ТРК (МРК, ГНК) : 33 [08:46:39]line Товар: 2710124500 [08:46:39]line Аи-95-К-5 [08:46:39]line 27.440 * 72.90 [08:46:39]line = 2000.38 [08:46:39]line НДС 12% НСП 1% [08:46:39]line > о реализуемом товаре [08:46:39]line ИТОГО: 2000.38 [08:46:39]line НСП 1% : 17.70 [08:46:39]line НДС 12% : 212.43 [08:46:39]line Наличными: 0.00 [08:46:39]line Безнал.: 2000.38 [08:46:39]line Место: АЗС № 108 "Партнер Нефть" [08:46:39]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:46:39]line СНО: Общий режим [08:46:39]line Чек 39 16.04.2024 08:44 [08:46:39]line Смена: 118 ФФД: 1.0 [08:46:39]line ЗНМ: 0300000027 [08:46:39]line РНМ: 0000138879044617 [08:46:39]line Версия ККМ: 001 [08:46:39]line Платежная система: Бакай Банк [08:46:39]line ФМ: 0000000000963154 [08:46:39]line ФД: 29765 [08:46:39]line ФПД: 167122875084063 [08:46:39]line 1/tax-web-control/client/api/v1/ticket?date=20240416T084412&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29765&fm=167122875084063&tin=02508201610067®Number=0000138879044617&sum=200038 [08:46:39]OFD Sender: No OFD packet to send [08:46:39]written 0, free lines is 4095 [08:46:40]Write to MH i2c: 01 00 00 C6 02 C8 [08:46:40]Write i2c OK [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: 01 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: 01 07 00 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: 01 07 00 C6 02 00 00 00 00 00 DE 0C B9 [08:46:40]RasterBufferAndPrint [08:46:40]line [08:46:40]line [08:46:40]line [08:46:40]line [08:46:40]line [08:46:40]written 0, free lines is 3305 [08:46:40]MH_Cut [08:46:40]Write to MH i2c: D1 01 00 CD 02 01 A1 [08:46:40]Write i2c OK [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: D1 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: D1 01 00 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: D1 01 00 CD 02 00 A0 [08:46:40]Write to MH i2c: 01 00 00 CE 02 D0 [08:46:40]Write i2c OK [08:46:40]MH_I2C_Read... [08:46:40]*** Cut start [08:46:40]*** Partial cut [08:46:40]*** CUTSNS_PIN = 1 [08:46:40]*** CUTSNS_PIN = 0 [08:46:41]*** Brake cut motor [08:46:41]Read from MH i2c: 01 [08:46:41]MH_I2C_Read... [08:46:41]*** Stop cut motor [08:46:41]*** Cut end [08:46:41]Read from MH i2c: 01 07 00 [08:46:41]MH_I2C_Read... [08:46:41]Read from MH i2c: 01 07 00 CE 02 00 00 00 00 00 FF 0F E5 [08:46:41]process_action print_doc done [08:46:41]requested_data is exist [08:46:41]produce_requested_data [08:46:41]produce_requested_data return (null) [08:46:41]process_action_free print_doc [08:46:41]json_value_free [08:46:41]json_value_free done [08:46:41]process_json_proto returns [08:46:41]Send response to host [08:46:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [08:46:41]free response buf [08:46:41]execute_script done [08:46:41]execute_script returns [08:46:41]free content buf [08:46:41]Sock 7.Close socket [08:46:41]Sock 7.Thread stoped [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:16]accept exits with 9 [08:47:16]New connection [08:47:16]New thread 3067276644 created [08:47:16]Thread 3067133284 joined [08:47:16]Waiting for new connection... [08:47:16] Sock 9.Parse request [08:47:16]Sock 9.Check first char [08:47:16]Sock 9.First char is OK [08:47:16]request: POST /json_proto HTTP/1.0 [08:47:16]Method: POST [08:47:16]URL: /json_proto [08:47:16]Method is POST - this is cgi request [08:47:16]url: /json_proto [08:47:16]query_string will be loaded in cgi processing [08:47:16]execute_cgi json_proto POST (null) [08:47:16]execute_cgi path=json_proto method=POST [08:47:16]POST find Content-Length [08:47:16]Host: 172.17.33.3:8080 [08:47:16]Content-Length: 805 [08:47:16]Content-Type: application/json [08:47:16] [08:47:16]POST finish read [08:47:16]Found Content-Length = 805 [08:47:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:16]execute_script... [08:47:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:16]POST & json_proto [08:47:16]process_json_proto [08:47:16]json parsed OK: [08:47:16]protocol is kg_v1.0 [08:47:16]action value=close_receipt [08:47:16]process_action close_receipt [08:47:16]cmd_close_receipt [08:47:16]MH_GetDate [08:47:16]Write to MH i2c: F0 00 00 CF 02 C0 [08:47:16]Write i2c OK [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: F0 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: F0 09 00 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: F0 09 00 CF 02 00 15 3B 1E 66 23 5B 8F 65 0F [08:47:16]GetLastDocTimeStamp 1713257052 [08:47:16]current date 1713257237 [08:47:16]FM_GetShiftState [08:47:16]SAM_PROTO_GetShiftState [08:47:16]wFMCommunicate request_size=4 [08:47:16]MH_SAM_APDU [08:47:16]CAPDU: 80 13 01 00 [08:47:16]Write to MH i2c: E2 08 00 D0 02 80 13 01 00 00 00 00 00 4F [08:47:16]Write i2c OK [08:47:16]MH_I2C_Read... [08:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:16]Read from MH i2c: E2 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 0E 00 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 0E 00 D0 02 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 FD [08:47:16]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:47:16]wFMCommunicate OK [08:47:16]SAM_PROTO_GetShiftState done [08:47:16]FM_GetShiftState done [08:47:16]opened in 1713226843 [08:47:16]opened+sec_in_day 1713313243 [08:47:16]quantity*price = 50025 [08:47:16]sum+1 = 50027 [08:47:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.26 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.26 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 40 16.04.2024 08:47 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29766 ФПД: 208098761401860 1/tax-web-control/client/api/v1/ticket?date=20240416T084717&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29766&fm=208098761401860&tin=02508201610067®Number=0000138879044617&sum=50026 [08:47:17]StoreToDocumentArchive [08:47:17]shift 118 fd 29766 [08:47:17]save to /storage/0118/doc_00029766 [08:47:17]save last doc name /storage/0118/doc_00029766 to /storage/kkm_last_doc_name [08:47:17]save OK [08:47:17]Clear old archive folders... [08:47:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:47:17]tlvbuf is 001846B0 [08:47:17]SAM_PROTO_ClearQueue [08:47:17]wFMCommunicate request_size=4 [08:47:17]MH_SAM_APDU [08:47:17]CAPDU: 80 09 00 00 [08:47:17]Write to MH i2c: E2 08 00 DD 02 80 09 00 00 00 00 00 00 51 [08:47:17]Write i2c OK [08:47:17]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 DD 02 00 90 00 53 [08:47:18]RAPDU: 90 00 [08:47:18]wFMCommunicate OK [08:47:18]SAM_PROTO_ClearQueue done [08:47:18]KKMCreateOFDPacket [08:47:18]OFDProtocolAddRootSTLVToBuf [08:47:18]FM_MakeSignedData [08:47:18]FM_MakeSignedData [08:47:18]SAM_PROTO_SignData [08:47:18]wFMCommunicate request_size=4 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 0D 01 02 [08:47:18]Write to MH i2c: E2 08 00 DE 02 80 0D 01 02 00 00 00 00 59 [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 DE 02 00 90 00 54 [08:47:18]RAPDU: 90 00 [08:47:18]wFMCommunicate OK [08:47:18]wFMCommunicate request_size=255 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 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 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 15 3B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 74 00 00 35 04 06 00 BD [08:47:18]Write to MH i2c: E2 02 01 DF 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 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 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 15 3B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 74 00 00 35 04 06 00 BD 00 00 2F [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 DF 02 00 90 00 55 [08:47:18]RAPDU: 90 00 [08:47:18]wFMCommunicate OK [08:47:18]wFMCommunicate request_size=10 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 0D 02 02 05 43 C4 C0 66 04 [08:47:18]Write to MH i2c: E2 0D 00 E0 02 80 0D 02 02 05 00 43 C4 C0 66 04 00 00 97 [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 E0 02 00 90 00 56 [08:47:18]RAPDU: 90 00 [08:47:18]wFMCommunicate OK [08:47:18]wFMCommunicate request_size=4 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 0D 03 02 [08:47:18]Write to MH i2c: E2 08 00 E1 02 80 0D 03 02 00 00 00 00 5E [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 0B 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 0B 00 E1 02 00 C8 7D 99 C1 17 58 B5 D3 90 00 F5 [08:47:18]RAPDU: C8 7D 99 C1 17 58 B5 D3 90 00 [08:47:18]wFMCommunicate OK [08:47:18]SAM_PROTO_SignData done [08:47:18]FM_MakeSignedData done [08:47:18]CreateOFDProtocolMessage [08:47:18]wFMCommunicate request_size=4 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 11 00 00 [08:47:18]Write to MH i2c: E2 08 00 E2 02 80 11 00 00 00 00 00 00 5E [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 17 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 17 00 E2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AD [08:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:47:18]wFMCommunicate OK [08:47:18]CreateOFDProtocolMessage done [08:47:18]OFDSenderStorePacket 29766 [08:47:18]StoreOFDPacket docnum=29766 [08:47:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BE 88 07 01 66 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 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 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 15 3B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 74 00 00 35 04 06 00 BD 43 C4 C0 66 04 C8 7D 99 C1 17 58 B5 D3 [08:47:18]CheckFolder [08:47:18]dirname=/storage/ofd_packets [08:47:18]CheckFolder done [08:47:18]ProducePacketName [08:47:18]name=ofd_packets/00029766 [08:47:18]NVStorageSaveData ofd_packets/00029766 [08:47:18]File name is /storage/ofd_packets/00029766 [08:47:18]Write 301 bytes [08:47:18]NVStorageSaveData done [08:47:18]OFDSenderStorePacket done [08:47:18]KKMCreateOFDPacket done [08:47:18]NVStorageSaveData kkm_last_timestamp [08:47:18]File name is /storage/kkm_last_timestamp [08:47:18]Write 4 bytes [08:47:18]NVStorageSaveData done [08:47:18]ExternCall_PrintAddStr [08:47:18]wPrintStart [08:47:18]Write to MH i2c: 01 00 00 E3 02 E5 [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: 01 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: 01 07 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: 01 07 00 E3 02 00 00 00 00 00 FF 0F FA [08:47:18]RasterBufferAndPrint [08:47:18]line Счет N : (1)348243 [08:47:18]line ИНН: 02508201610067 [08:47:18]line Контрольно-Кассовый Чек [08:47:18]line ПРОДАЖА [08:47:18]line ТРК (МРК, ГНК) : 32 [08:47:18]line Товар: 2710124130 [08:47:18]line Аи-92-К-5 [08:47:18]line 7.720 * 64.80 [08:47:18]line = 500.26 [08:47:18]line НДС 12% НСП 1% [08:47:18]line > о реализуемом товаре [08:47:18]line ИТОГО: 500.26 [08:47:18]line НСП 1% : 4.43 [08:47:18]line НДС 12% : 53.12 [08:47:18]line Наличными: 0.00 [08:47:18]line Безнал.: 500.26 [08:47:18]line Место: АЗС № 108 "Партнер Нефть" [08:47:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:47:18]line СНО: Общий режим [08:47:18]line Чек 40 16.04.2024 08:47 [08:47:18]line Смена: 118 ФФД: 1.0 [08:47:18]line ЗНМ: 0300000027 [08:47:18]line РНМ: 0000138879044617 [08:47:18]line Версия ККМ: 001 [08:47:18]line Платежная система: О! деньги [08:47:18]line ФМ: 0000000000963154 [08:47:18]line ФД: 29766 [08:47:18]line ФПД: 208098761401860 [08:47:18]line 1/tax-web-control/client/api/v1/ticket?date=20240416T084717&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29766&fm=208098761401860&tin=02508201610067®Number=0000138879044617&sum=50026 [08:47:18]OFD Sender: Processing packet 29766 [packets to send 8, broken 7] [08:47:18]ProducePacketName [08:47:18]name=ofd_packets/00029766 [08:47:18]OFD Sender: To server: pG, [08:47:18]CommunicateWithHost lk.salyk.kg:30040 [08:47:18]ConnectInit lk.salyk.kg [08:47:18]written 0, free lines is 4095 [08:47:18]Connected sock=10 [08:47:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BE 88 07 01 66 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 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 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 15 3B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 74 00 00 35 04 06 00 BD 43 C4 C0 66 04 C8 7D 99 C1 17 58 B5 D3 [08:47:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9D 5B 47 00 07 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 74 00 00 F4 03 04 00 B4 E5 1D 66 B6 04 01 00 00 53 05 37 71 0E AF D0 09 [08:47:18]CommunicateWithHost err = 0 [08:47:18]CheckOFDResponse [08:47:18]1017 (14) - 77093643461234 [08:47:18]1041 (16) - 0000000000963154 [08:47:18]1040 (4) - 29766 [08:47:18]1012 (4) - 16.04.2024 02:43 [08:47:18]1206 (1) - 0 [08:47:18]OFD Sender: Remove packet 29766 [08:47:18]ProducePacketName [08:47:18]name=ofd_packets/00029766 [08:47:18]NVStorageDeleteData [08:47:19]Write to MH i2c: 01 00 00 0C 03 0F [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 07 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 07 00 0C 03 00 00 00 00 00 D9 0C FB [08:47:19]RasterBufferAndPrint [08:47:19]line [08:47:19]line [08:47:19]line [08:47:19]line [08:47:19]line [08:47:19]written 0, free lines is 3295 [08:47:19]MH_Cut [08:47:19]Write to MH i2c: D1 01 00 13 03 01 E8 [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: D1 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: D1 01 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: D1 01 00 13 03 00 E7 [08:47:19]Write to MH i2c: 01 00 00 14 03 17 [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]OFD Sender: No OFD packet to send [08:47:19]*** Cut start [08:47:19]*** Partial cut [08:47:19]*** CUTSNS_PIN = 1 [08:47:19]*** CUTSNS_PIN = 0 [08:47:20]*** Brake cut motor [08:47:20]Read from MH i2c: 01 [08:47:20]MH_I2C_Read... [08:47:20]*** Stop cut motor [08:47:20]*** Cut end [08:47:20]Read from MH i2c: 01 07 00 [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: 01 07 00 14 03 00 00 00 00 00 FF 0F 2C [08:47:20]process_action close_receipt done [08:47:20]requested_data is exist [08:47:20]produce_requested_data [08:47:20]requested_item fm.sn is exist - process it [08:47:20]wFMCommunicate request_size=4 [08:47:20]MH_SAM_APDU [08:47:20]CAPDU: 80 11 00 00 [08:47:20]Write to MH i2c: E2 08 00 15 03 80 11 00 00 00 00 00 00 92 [08:47:20]Write i2c OK [08:47:20]MH_I2C_Read... [08:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:20]Read from MH i2c: E2 [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: E2 17 00 [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: E2 17 00 15 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E1 [08:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:47:20]wFMCommunicate OK [08:47:20]requested_item fd.num is exist - process it [08:47:20]SAM_PROTO_GetFieldsCounters [08:47:20]wFMCommunicate request_size=4 [08:47:20]MH_SAM_APDU [08:47:20]CAPDU: 80 13 00 00 [08:47:20]Write to MH i2c: E2 08 00 16 03 80 13 00 00 00 00 00 00 95 [08:47:20]Write i2c OK [08:47:20]MH_I2C_Read... [08:47:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:20]Read from MH i2c: E2 [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: E2 62 00 [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: E2 62 00 16 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 46 74 00 00 0E 04 04 00 76 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 7B [08:47:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 46 74 00 00 0E 04 04 00 76 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 [08:47:20]wFMCommunicate OK [08:47:20]SAM_PROTO_GetFieldsCounters done [08:47:20]requested_item shift.num is exist - process it [08:47:20]requested_item shift.opened is exist - process it [08:47:20]req_shift_opened [08:47:20]FM_GetShiftState [08:47:20]SAM_PROTO_GetShiftState [08:47:20]wFMCommunicate request_size=4 [08:47:20]MH_SAM_APDU [08:47:20]CAPDU: 80 13 01 00 [08:47:20]Write to MH i2c: E2 08 00 17 03 80 13 01 00 00 00 00 00 97 [08:47:20]Write i2c OK [08:47:20]MH_I2C_Read... [08:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:20]Read from MH i2c: E2 [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: E2 0E 00 [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: E2 0E 00 17 03 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 45 [08:47:20]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:47:20]wFMCommunicate OK [08:47:20]SAM_PROTO_GetShiftState done [08:47:20]FM_GetShiftState done [08:47:20]req_shift_opened done [08:47:20]requested_item shift.open_date is exist - process it [08:47:20]req_shift_open_date [08:47:20]req_shift_open_date done [08:47:20]produce_requested_data done [08:47:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29766,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:47:20]process_action_free close_receipt [08:47:20]json_value_free [08:47:20]json_value_free done [08:47:20]process_json_proto returns [08:47:20]Send response to host [08:47:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29766,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:47:20]free response buf [08:47:20]execute_script done [08:47:20]execute_script returns [08:47:20]free content buf [08:47:20]Sock 9.Close socket [08:47:20]Sock 9.Thread stoped [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:14]OFD Sender: No OFD packet to send [08:48:19]OFD Sender: No OFD packet to send [08:48:24]OFD Sender: No OFD packet to send [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:39]OFD Sender: No OFD packet to send [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:04]OFD Sender: No OFD packet to send [08:50:09]OFD Sender: No OFD packet to send [08:50:14]OFD Sender: No OFD packet to send [08:50:19]OFD Sender: No OFD packet to send [08:50:24]OFD Sender: No OFD packet to send [08:50:29]OFD Sender: No OFD packet to send [08:50:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:04]OFD Sender: No OFD packet to send [08:53:09]OFD Sender: No OFD packet to send [08:53:14]OFD Sender: No OFD packet to send [08:53:19]OFD Sender: No OFD packet to send [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:39]OFD Sender: No OFD packet to send [08:53:44]OFD Sender: No OFD packet to send [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]OFD Sender: No OFD packet to send [08:54:24]OFD Sender: No OFD packet to send [08:54:29]OFD Sender: No OFD packet to send [08:54:34]OFD Sender: No OFD packet to send [08:54:39]OFD Sender: No OFD packet to send [08:54:44]OFD Sender: No OFD packet to send [08:54:49]OFD Sender: No OFD packet to send [08:54:54]OFD Sender: No OFD packet to send [08:54:59]OFD Sender: No OFD packet to send [08:55:03]accept exits with 7 [08:55:03]New connection [08:55:03]New thread 3067133284 created [08:55:03]Thread 3067276644 joined [08:55:03]Waiting for new connection... [08:55:03] Sock 7.Parse request [08:55:03]Sock 7.Check first char [08:55:03]Sock 7.First char is OK [08:55:03]request: POST /json_proto HTTP/1.0 [08:55:03]Method: POST [08:55:03]URL: /json_proto [08:55:03]Method is POST - this is cgi request [08:55:03]url: /json_proto [08:55:03]query_string will be loaded in cgi processing [08:55:03]execute_cgi json_proto POST (null) [08:55:03]execute_cgi path=json_proto method=POST [08:55:03]POST find Content-Length [08:55:03]Host: 172.17.33.3:8080 [08:55:03]Content-Length: 1169 [08:55:03]Content-Type: application/json [08:55:03] [08:55:03]POST finish read [08:55:03]Found Content-Length = 1169 [08:55:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348244\u000A16.04.2024 08:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 45.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3280.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30091138\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:03]execute_script... [08:55:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348244\u000A16.04.2024 08:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 45.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3280.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30091138\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:03]POST & json_proto [08:55:03]process_json_proto [08:55:03]json parsed OK: [08:55:03]protocol is kg_v1.0 [08:55:03]action value=print_text [08:55:03]process_action print_text [08:55:03]cmd_print_text [08:55:03]ExternCall_PrintAddStr [08:55:03]wPrintStart [08:55:03]Write to MH i2c: 01 00 00 18 03 1B [08:55:03]Write i2c OK [08:55:03]MH_I2C_Read... [08:55:03]Read from MH i2c: 01 [08:55:03]MH_I2C_Read... [08:55:03]Read from MH i2c: 01 07 00 [08:55:03]MH_I2C_Read... [08:55:03]Read from MH i2c: 01 07 00 18 03 00 00 00 00 00 FF 0F 30 [08:55:03]RasterBufferAndPrint [08:55:03]line *****ТОВАРНЫЙ ЧЕК***** [08:55:03]line АЗС 108 [08:55:03]line Партнер нефть [08:55:03]line 02508201610067 [08:55:03]line Кассир : Шадыканова Ж. [08:55:03]line Счет N : (1)348244 [08:55:03]line 16.04.2024 08:36 [08:55:03]line ПРОДАЖА [08:55:03]line ТРК (МРК, ГНК): 33 [08:55:03]line Вид ГСМ : 2710124500 [08:55:03]line Аи-95-К-5 [08:55:03]line 45.000 x 72.90 [08:55:03]line ИТОГ: 3280.50 [08:55:03]line Тип оплаты: Талоны: ТК ГПНА Online [08:55:03]line 30091138 [08:55:03]line ______________________ [08:55:03]line (подпись) [08:55:03]written 0, free lines is 4095 [08:55:04]Write to MH i2c: 01 00 00 2D 03 30 [08:55:04]Write i2c OK [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: 01 [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: 01 07 00 [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: 01 07 00 2D 03 00 00 00 00 00 F5 0D 39 [08:55:04]RasterBufferAndPrint [08:55:04]line [08:55:04]line [08:55:04]line [08:55:04]line [08:55:04]line [08:55:04]written 0, free lines is 3575 [08:55:04]MH_Cut [08:55:04]Write to MH i2c: D1 01 00 34 03 01 09 [08:55:04]Write i2c OK [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: D1 [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: D1 01 00 [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: D1 01 00 34 03 00 08 [08:55:04]Write to MH i2c: 01 00 00 35 03 38 [08:55:04]Write i2c OK [08:55:04]MH_I2C_Read... [08:55:04]*** Cut start [08:55:04]*** Partial cut [08:55:04]*** CUTSNS_PIN = 1 [08:55:04]*** CUTSNS_PIN = 0 [08:55:04]OFD Sender: No OFD packet to send [08:55:04]*** Brake cut motor [08:55:05]Read from MH i2c: 01 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: 01 07 00 [08:55:05]MH_I2C_Read... [08:55:05]*** Stop cut motor [08:55:05]*** Cut end [08:55:05]Read from MH i2c: 01 07 00 35 03 00 00 00 00 00 FF 0F 4D [08:55:05]process_action print_text done [08:55:05]requested_data is exist [08:55:05]produce_requested_data [08:55:05]requested_item fm.sn is exist - process it [08:55:05]wFMCommunicate request_size=4 [08:55:05]MH_SAM_APDU [08:55:05]CAPDU: 80 11 00 00 [08:55:05]Write to MH i2c: E2 08 00 36 03 80 11 00 00 00 00 00 00 B3 [08:55:05]Write i2c OK [08:55:05]MH_I2C_Read... [08:55:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:05]Read from MH i2c: E2 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 17 00 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 17 00 36 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 02 [08:55:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:55:05]wFMCommunicate OK [08:55:05]requested_item fd.num is exist - process it [08:55:05]SAM_PROTO_GetFieldsCounters [08:55:05]wFMCommunicate request_size=4 [08:55:05]MH_SAM_APDU [08:55:05]CAPDU: 80 13 00 00 [08:55:05]Write to MH i2c: E2 08 00 37 03 80 13 00 00 00 00 00 00 B6 [08:55:05]Write i2c OK [08:55:05]MH_I2C_Read... [08:55:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:05]Read from MH i2c: E2 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 62 00 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 62 00 37 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 46 74 00 00 0E 04 04 00 76 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 9C [08: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 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 46 74 00 00 0E 04 04 00 76 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 [08:55:05]wFMCommunicate OK [08:55:05]SAM_PROTO_GetFieldsCounters done [08:55:05]requested_item shift.num is exist - process it [08:55:05]requested_item shift.opened is exist - process it [08:55:05]req_shift_opened [08:55:05]FM_GetShiftState [08:55:05]SAM_PROTO_GetShiftState [08:55:05]wFMCommunicate request_size=4 [08:55:05]MH_SAM_APDU [08:55:05]CAPDU: 80 13 01 00 [08:55:05]Write to MH i2c: E2 08 00 38 03 80 13 01 00 00 00 00 00 B8 [08:55:05]Write i2c OK [08:55:05]MH_I2C_Read... [08:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:05]Read from MH i2c: E2 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 0E 00 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 0E 00 38 03 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 66 [08:55:05]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:55:05]wFMCommunicate OK [08:55:05]SAM_PROTO_GetShiftState done [08:55:05]FM_GetShiftState done [08:55:05]req_shift_opened done [08:55:05]requested_item shift.open_date is exist - process it [08:55:05]req_shift_open_date [08:55:05]req_shift_open_date done [08:55:05]produce_requested_data done [08:55:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29766,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:55:05]process_action_free print_text [08:55:05]json_value_free [08:55:05]json_value_free done [08:55:05]process_json_proto returns [08:55:05]Send response to host [08:55:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29766,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:55:05]free response buf [08:55:05]execute_script done [08:55:05]execute_script returns [08:55:05]free content buf [08:55:05]Sock 7.Close socket [08:55:05]Sock 7.Thread stoped [08:55:09]OFD Sender: No OFD packet to send [08:55:14]OFD Sender: No OFD packet to send [08:55:19]OFD Sender: No OFD packet to send [08:55:24]OFD Sender: No OFD packet to send [08:55:29]OFD Sender: No OFD packet to send [08:55:34]OFD Sender: No OFD packet to send [08:55:39]OFD Sender: No OFD packet to send [08:55:44]OFD Sender: No OFD packet to send [08:55:49]OFD Sender: No OFD packet to send [08:55:54]OFD Sender: No OFD packet to send [08:55:59]OFD Sender: No OFD packet to send [08:56:04]OFD Sender: No OFD packet to send [08:56:09]OFD Sender: No OFD packet to send [08:56:14]OFD Sender: No OFD packet to send [08:56:19]OFD Sender: No OFD packet to send [08:56:24]OFD Sender: No OFD packet to send [08:56:29]OFD Sender: No OFD packet to send [08:56:34]OFD Sender: No OFD packet to send [08:56:39]OFD Sender: No OFD packet to send [08:56:44]OFD Sender: No OFD packet to send [08:56:49]OFD Sender: No OFD packet to send [08:56:51]accept exits with 9 [08:56:51]New connection [08:56:51]New thread 3067276644 created [08:56:51]Thread 3067133284 joined [08:56:51]Waiting for new connection... [08:56:51] Sock 9.Parse request [08:56:51]Sock 9.Check first char [08:56:51]Sock 9.First char is OK [08:56:51]request: POST /json_proto HTTP/1.0 [08:56:51]Method: POST [08:56:51]URL: /json_proto [08:56:51]Method is POST - this is cgi request [08:56:51]url: /json_proto [08:56:51]query_string will be loaded in cgi processing [08:56:51]execute_cgi json_proto POST (null) [08:56:51]execute_cgi path=json_proto method=POST [08:56:51]POST find Content-Length [08:56:51]Host: 172.17.33.3:8080 [08:56:51]Content-Length: 682 [08:56:51]Content-Type: application/json [08:56:51] [08:56:51]POST finish read [08:56:51]Found Content-Length = 682 [08:56:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 23.150, "sum" : 1500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:51]execute_script... [08:56:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 23.150, "sum" : 1500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:51]POST & json_proto [08:56:51]process_json_proto [08:56:51]json parsed OK: [08:56:51]protocol is kg_v1.0 [08:56:51]action value=close_receipt [08:56:51]process_action close_receipt [08:56:51]cmd_close_receipt [08:56:51]MH_GetDate [08:56:51]Write to MH i2c: F0 00 00 39 03 2B [08:56:51]Write i2c OK [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: F0 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: F0 09 00 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: F0 09 00 39 03 00 54 3D 1E 66 23 5B 8F 65 BB [08:56:51]GetLastDocTimeStamp 1713257237 [08:56:51]current date 1713257812 [08:56:51]FM_GetShiftState [08:56:51]SAM_PROTO_GetShiftState [08:56:51]wFMCommunicate request_size=4 [08:56:51]MH_SAM_APDU [08:56:51]CAPDU: 80 13 01 00 [08:56:51]Write to MH i2c: E2 08 00 3A 03 80 13 01 00 00 00 00 00 BA [08:56:51]Write i2c OK [08:56:51]MH_I2C_Read... [08:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:51]Read from MH i2c: E2 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: E2 0E 00 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: E2 0E 00 3A 03 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 68 [08:56:51]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:56:51]wFMCommunicate OK [08:56:51]SAM_PROTO_GetShiftState done [08:56:51]FM_GetShiftState done [08:56:51]opened in 1713226843 [08:56:51]opened+sec_in_day 1713313243 [08:56:51]quantity*price = 150012 [08:56:51]sum+1 = 150013 [08:56:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 41 16.04.2024 08:56 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29767 ФПД: 175402181041774 1/tax-web-control/client/api/v1/ticket?date=20240416T085652&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29767&fm=175402181041774&tin=02508201610067®Number=0000138879044617&sum=150000 [08:56:52]StoreToDocumentArchive [08:56:52]shift 118 fd 29767 [08:56:52]save to /storage/0118/doc_00029767 [08:56:52]save last doc name /storage/0118/doc_00029767 to /storage/kkm_last_doc_name [08:56:52]save OK [08:56:52]Clear old archive folders... [08:56:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:56:52]tlvbuf is B6FA47E0 [08:56:52]SAM_PROTO_ClearQueue [08:56:52]wFMCommunicate request_size=4 [08:56:52]MH_SAM_APDU [08:56:52]CAPDU: 80 09 00 00 [08:56:52]Write to MH i2c: E2 08 00 47 03 80 09 00 00 00 00 00 00 BC [08:56:52]Write i2c OK [08:56:52]MH_I2C_Read... [08:56:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:52]Read from MH i2c: E2 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: E2 03 00 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: E2 03 00 47 03 00 90 00 BE [08:56:52]RAPDU: 90 00 [08:56:52]wFMCommunicate OK [08:56:52]SAM_PROTO_ClearQueue done [08:56:52]KKMCreateOFDPacket [08:56:52]OFDProtocolAddRootSTLVToBuf [08:56:52]FM_MakeSignedData [08:56:52]FM_MakeSignedData [08:56:52]SAM_PROTO_SignData [08:56:52]wFMCommunicate request_size=4 [08:56:52]MH_SAM_APDU [08:56:52]CAPDU: 80 0D 01 02 [08:56:52]Write to MH i2c: E2 08 00 48 03 80 0D 01 02 00 00 00 00 C4 [08:56:52]Write i2c OK [08:56:52]MH_I2C_Read... [08:56:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:52]Read from MH i2c: E2 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: E2 03 00 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: E2 03 00 48 03 00 90 00 BF [08:56:52]RAPDU: 90 00 [08:56:52]wFMCommunicate OK [08:56:52]wFMCommunicate request_size=255 [08:56:52]MH_SAM_APDU [08:56:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 5A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 54 3D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 74 00 00 35 04 06 00 9F [08:56:52]Write to MH i2c: E2 02 01 49 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 5A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 54 3D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 74 00 00 35 04 06 00 9F 00 00 93 [08:56:52]Write i2c OK [08:56:52]MH_I2C_Read... [08:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:53]Read from MH i2c: E2 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: E2 03 00 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: E2 03 00 49 03 00 90 00 C0 [08:56:53]RAPDU: 90 00 [08:56:53]wFMCommunicate OK [08:56:53]wFMCommunicate request_size=10 [08:56:53]MH_SAM_APDU [08:56:53]CAPDU: 80 0D 02 02 05 87 00 B1 9E 6E [08:56:53]Write to MH i2c: E2 0D 00 4A 03 80 0D 02 02 05 00 87 00 B1 9E 6E 00 00 15 [08:56:53]Write i2c OK [08:56:53]MH_I2C_Read... [08:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:53]Read from MH i2c: E2 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: E2 03 00 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: E2 03 00 4A 03 00 90 00 C1 [08:56:53]RAPDU: 90 00 [08:56:53]wFMCommunicate OK [08:56:53]wFMCommunicate request_size=4 [08:56:53]MH_SAM_APDU [08:56:53]CAPDU: 80 0D 03 02 [08:56:53]Write to MH i2c: E2 08 00 4B 03 80 0D 03 02 00 00 00 00 C9 [08:56:53]Write i2c OK [08:56:53]MH_I2C_Read... [08:56:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:53]Read from MH i2c: E2 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: E2 0B 00 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: E2 0B 00 4B 03 00 D4 8D B0 81 6E 91 7F 4B 90 00 25 [08:56:53]RAPDU: D4 8D B0 81 6E 91 7F 4B 90 00 [08:56:53]wFMCommunicate OK [08:56:53]SAM_PROTO_SignData done [08:56:53]FM_MakeSignedData done [08:56:53]CreateOFDProtocolMessage [08:56:53]wFMCommunicate request_size=4 [08:56:53]MH_SAM_APDU [08:56:53]CAPDU: 80 11 00 00 [08:56:53]Write to MH i2c: E2 08 00 4C 03 80 11 00 00 00 00 00 00 C9 [08:56:53]Write i2c OK [08:56:53]MH_I2C_Read... [08:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:53]Read from MH i2c: E2 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: E2 17 00 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: E2 17 00 4C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 18 [08:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:56:53]wFMCommunicate OK [08:56:53]CreateOFDProtocolMessage done [08:56:53]OFDSenderStorePacket 29767 [08:56:53]StoreOFDPacket docnum=29767 [08:56:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 85 D5 07 01 72 BB 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 6E 5A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 54 3D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 74 00 00 35 04 06 00 9F 87 00 B1 9E 6E D4 8D B0 81 6E 91 7F 4B [08:56:53]CheckFolder [08:56:53]dirname=/storage/ofd_packets [08:56:53]CheckFolder done [08:56:53]ProducePacketName [08:56:53]name=ofd_packets/00029767 [08:56:53]NVStorageSaveData ofd_packets/00029767 [08:56:53]File name is /storage/ofd_packets/00029767 [08:56:53]Write 301 bytes [08:56:53]NVStorageSaveData done [08:56:53]OFDSenderStorePacket done [08:56:53]KKMCreateOFDPacket done [08:56:53]NVStorageSaveData kkm_last_timestamp [08:56:53]File name is /storage/kkm_last_timestamp [08:56:53]Write 4 bytes [08:56:53]NVStorageSaveData done [08:56:53]ExternCall_PrintAddStr [08:56:53]wPrintStart [08:56:53]Write to MH i2c: 01 00 00 4D 03 50 [08:56:53]Write i2c OK [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: 01 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: 01 07 00 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: 01 07 00 4D 03 00 00 00 00 00 FF 0F 65 [08:56:53]RasterBufferAndPrint [08:56:53]line Счет N : (1)348245 [08:56:53]line ИНН: 02508201610067 [08:56:53]line Контрольно-Кассовый Чек [08:56:53]line ПРОДАЖА [08:56:53]line ТРК (МРК, ГНК) : 42 [08:56:53]line Товар: 2710124130 [08:56:53]line Аи-92-К-5 [08:56:53]line 23.150 * 64.80 [08:56:53]line = 1500.12 [08:56:53]line НДС 12% НСП 1% [08:56:53]line > о реализуемом товаре [08:56:53]line ОКРУГЛЕНИЕ: -0.12 [08:56:53]line ИТОГО: 1500.00 [08:56:53]line Внесено: 1500.00 [08:56:53]line СДАЧА: 0.00 [08:56:53]line НСП 1% : 13.27 [08:56:53]line НДС 12% : 159.30 [08:56:53]line Наличными: 1500.00 [08:56:53]line Безнал.: 0.00 [08:56:53]line Место: АЗС № 108 "Партнер Нефть" [08:56:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:56:53]line СНО: Общий режим [08:56:53]line Чек 41 16.04.2024 08:56 [08:56:53]line Смена: 118 ФФД: 1.0 [08:56:53]line ЗНМ: 0300000027 [08:56:53]line РНМ: 0000138879044617 [08:56:53]line Версия ККМ: 001 [08:56:53]line ФМ: 0000000000963154 [08:56:53]line ФД: 29767 [08:56:53]line ФПД: 175402181041774 [08:56:53]line 1/tax-web-control/client/api/v1/ticket?date=20240416T085652&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29767&fm=175402181041774&tin=02508201610067®Number=0000138879044617&sum=150000 [08:56:53]OFD Sender: Processing packet 29767 [packets to send 8, broken 7] [08:56:53]ProducePacketName [08:56:53]name=ofd_packets/00029767 [08:56:53]OFD Sender: To server: pG, [08:56:53]CommunicateWithHost lk.salyk.kg:30040 [08:56:53]ConnectInit lk.salyk.kg [08:56:53]written 0, free lines is 4095 [08:56:53]Connected sock=10 [08:56:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 85 D5 07 01 72 BB 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 6E 5A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 54 3D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 74 00 00 35 04 06 00 9F 87 00 B1 9E 6E D4 8D B0 81 6E 91 7F 4B [08:56:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 32 F1 47 00 0A 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 74 00 00 F4 03 04 00 F2 E7 1D 66 B6 04 01 00 00 9C 52 84 77 B0 2E 11 3F [08:56:53]CommunicateWithHost err = 0 [08:56:53]CheckOFDResponse [08:56:53]1017 (14) - 77093643461234 [08:56:53]1041 (16) - 0000000000963154 [08:56:53]1040 (4) - 29767 [08:56:53]1012 (4) - 16.04.2024 02:52 [08:56:53]1206 (1) - 0 [08:56:53]OFD Sender: Remove packet 29767 [08:56:53]ProducePacketName [08:56:53]name=ofd_packets/00029767 [08:56:53]NVStorageDeleteData [08:56:53]Write to MH i2c: 01 00 00 77 03 7A [08:56:53]Write i2c OK [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: 01 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: 01 07 00 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: 01 07 00 77 03 00 00 00 00 00 C8 0C 55 [08:56:53]RasterBufferAndPrint [08:56:53]line [08:56:53]line [08:56:53]line [08:56:53]line [08:56:53]line [08:56:53]written 0, free lines is 3275 [08:56:53]MH_Cut [08:56:53]Write to MH i2c: D1 01 00 7E 03 01 53 [08:56:53]Write i2c OK [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: D1 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: D1 01 00 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: D1 01 00 7E 03 00 52 [08:56:53]Write to MH i2c: 01 00 00 7F 03 82 [08:56:53]Write i2c OK [08:56:53]MH_I2C_Read... [08:56:54]OFD Sender: No OFD packet to send [08:56:54]*** Cut start [08:56:54]*** Partial cut [08:56:54]*** CUTSNS_PIN = 1 [08:56:54]*** CUTSNS_PIN = 0 [08:56:55]*** Brake cut motor [08:56:55]Read from MH i2c: 01 [08:56:55]MH_I2C_Read... [08:56:55]*** Stop cut motor [08:56:55]*** Cut end [08:56:55]Read from MH i2c: 01 07 00 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: 01 07 00 7F 03 00 00 00 00 00 FF 0F 97 [08:56:55]process_action close_receipt done [08:56:55]requested_data is exist [08:56:55]produce_requested_data [08:56:55]requested_item fm.sn is exist - process it [08:56:55]wFMCommunicate request_size=4 [08:56:55]MH_SAM_APDU [08:56:55]CAPDU: 80 11 00 00 [08:56:55]Write to MH i2c: E2 08 00 80 03 80 11 00 00 00 00 00 00 FD [08:56:55]Write i2c OK [08:56:55]MH_I2C_Read... [08:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:55]Read from MH i2c: E2 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: E2 17 00 [08:56:55]MH_I2C_Read... [08:56:55]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 36 33 31 35 34 90 00 4C [08:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:56:55]wFMCommunicate OK [08:56:55]requested_item fd.num is exist - process it [08:56:55]SAM_PROTO_GetFieldsCounters [08:56:55]wFMCommunicate request_size=4 [08:56:55]MH_SAM_APDU [08:56:55]CAPDU: 80 13 00 00 [08:56:55]Write to MH i2c: E2 08 00 81 03 80 13 00 00 00 00 00 00 00 [08:56:55]Write i2c OK [08:56:55]MH_I2C_Read... [08:56:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:55]Read from MH i2c: E2 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: E2 62 00 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: E2 62 00 81 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 47 74 00 00 0E 04 04 00 76 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 EA [08:56:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 47 74 00 00 0E 04 04 00 76 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 [08:56:55]wFMCommunicate OK [08:56:55]SAM_PROTO_GetFieldsCounters done [08:56:55]requested_item shift.num is exist - process it [08:56:55]requested_item shift.opened is exist - process it [08:56:55]req_shift_opened [08:56:55]FM_GetShiftState [08:56:55]SAM_PROTO_GetShiftState [08:56:55]wFMCommunicate request_size=4 [08:56:55]MH_SAM_APDU [08:56:55]CAPDU: 80 13 01 00 [08:56:55]Write to MH i2c: E2 08 00 82 03 80 13 01 00 00 00 00 00 02 [08:56:55]Write i2c OK [08:56:55]MH_I2C_Read... [08:56:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:55]Read from MH i2c: E2 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: E2 0E 00 [08:56:55]MH_I2C_Read... [08:56:55]Read from MH i2c: E2 0E 00 82 03 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 B0 [08:56:55]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [08:56:55]wFMCommunicate OK [08:56:55]SAM_PROTO_GetShiftState done [08:56:55]FM_GetShiftState done [08:56:55]req_shift_opened done [08:56:55]requested_item shift.open_date is exist - process it [08:56:55]req_shift_open_date [08:56:55]req_shift_open_date done [08:56:55]produce_requested_data done [08:56:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29767,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [08:56:55]process_action_free close_receipt [08:56:55]json_value_free [08:56:55]json_value_free done [08:56:55]process_json_proto returns [08:56:55]Send response to host [08:56:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29767,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [08:56:55]free response buf [08:56:55]execute_script done [08:56:55]execute_script returns [08:56:55]free content buf [08:56:55]Sock 9.Close socket [08:56:55]Sock 9.Thread stoped [08:56:59]OFD Sender: No OFD packet to send [08:57:04]OFD Sender: No OFD packet to send [08:57:09]OFD Sender: No OFD packet to send [08:57:14]OFD Sender: No OFD packet to send [08:57:19]OFD Sender: No OFD packet to send [08:57:24]OFD Sender: No OFD packet to send [08:57:29]OFD Sender: No OFD packet to send [08:57:34]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:59]OFD Sender: No OFD packet to send [08:58:04]OFD Sender: No OFD packet to send [08:58:09]OFD Sender: No OFD packet to send [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]OFD Sender: No OFD packet to send [09:00:14]OFD Sender: No OFD packet to send [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:34]OFD Sender: No OFD packet to send [09:00:39]OFD Sender: No OFD packet to send [09:00:44]OFD Sender: No OFD packet to send [09:00:49]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:59]OFD Sender: No OFD packet to send [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:15]accept exits with 7 [09:01:15]New connection [09:01:15]New thread 3067133284 created [09:01:15]Thread 3067276644 joined [09:01:15]Waiting for new connection... [09:01:15] Sock 7.Parse request [09:01:15]Sock 7.Check first char [09:01:15]Sock 7.First char is OK [09:01:15]request: POST /json_proto HTTP/1.0 [09:01:15]Method: POST [09:01:15]URL: /json_proto [09:01:15]Method is POST - this is cgi request [09:01:15]url: /json_proto [09:01:15]query_string will be loaded in cgi processing [09:01:15]execute_cgi json_proto POST (null) [09:01:15]execute_cgi path=json_proto method=POST [09:01:15]POST find Content-Length [09:01:15]Host: 172.17.33.3:8080 [09:01:15]Content-Length: 670 [09:01:15]Content-Type: application/json [09:01:15] [09:01:15]POST finish read [09:01:15]Found Content-Length = 670 [09:01:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:15]execute_script... [09:01:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:15]POST & json_proto [09:01:15]process_json_proto [09:01:15]json parsed OK: [09:01:15]protocol is kg_v1.0 [09:01:15]action value=close_receipt [09:01:15]process_action close_receipt [09:01:15]cmd_close_receipt [09:01:15]MH_GetDate [09:01:15]Write to MH i2c: F0 00 00 83 03 75 [09:01:15]Write i2c OK [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: F0 [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: F0 09 00 [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: F0 09 00 83 03 00 5C 3E 1E 66 23 5B 8F 65 0E [09:01:15]GetLastDocTimeStamp 1713257812 [09:01:15]current date 1713258076 [09:01:15]FM_GetShiftState [09:01:15]SAM_PROTO_GetShiftState [09:01:15]wFMCommunicate request_size=4 [09:01:15]MH_SAM_APDU [09:01:15]CAPDU: 80 13 01 00 [09:01:15]Write to MH i2c: E2 08 00 84 03 80 13 01 00 00 00 00 00 04 [09:01:15]Write i2c OK [09:01:15]MH_I2C_Read... [09:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:15]Read from MH i2c: E2 [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: E2 0E 00 [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: E2 0E 00 84 03 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 B2 [09:01:15]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:01:15]wFMCommunicate OK [09:01:15]SAM_PROTO_GetShiftState done [09:01:15]FM_GetShiftState done [09:01:15]opened in 1713226843 [09:01:15]opened+sec_in_day 1713313243 [09:01:15]quantity*price = 50008 [09:01:15]sum+1 = 50009 [09:01:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 42 16.04.2024 09:01 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29768 ФПД: 114055844220882 1/tax-web-control/client/api/v1/ticket?date=20240416T090116&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29768&fm=114055844220882&tin=02508201610067®Number=0000138879044617&sum=50000 [09:01:17]StoreToDocumentArchive [09:01:17]shift 118 fd 29768 [09:01:17]save to /storage/0118/doc_00029768 [09:01:17]save last doc name /storage/0118/doc_00029768 to /storage/kkm_last_doc_name [09:01:17]save OK [09:01:17]Clear old archive folders... [09:01:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:01:17]tlvbuf is 00174F10 [09:01:17]SAM_PROTO_ClearQueue [09:01:17]wFMCommunicate request_size=4 [09:01:17]MH_SAM_APDU [09:01:17]CAPDU: 80 09 00 00 [09:01:17]Write to MH i2c: E2 08 00 91 03 80 09 00 00 00 00 00 00 06 [09:01:17]Write i2c OK [09:01:17]MH_I2C_Read... [09:01:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:17]Read from MH i2c: E2 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: E2 03 00 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: E2 03 00 91 03 00 90 00 08 [09:01:17]RAPDU: 90 00 [09:01:17]wFMCommunicate OK [09:01:17]SAM_PROTO_ClearQueue done [09:01:17]KKMCreateOFDPacket [09:01:17]OFDProtocolAddRootSTLVToBuf [09:01:17]FM_MakeSignedData [09:01:17]FM_MakeSignedData [09:01:17]SAM_PROTO_SignData [09:01:17]wFMCommunicate request_size=4 [09:01:17]MH_SAM_APDU [09:01:17]CAPDU: 80 0D 01 02 [09:01:17]Write to MH i2c: E2 08 00 92 03 80 0D 01 02 00 00 00 00 0E [09:01:17]Write i2c OK [09:01:17]MH_I2C_Read... [09:01:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:17]Read from MH i2c: E2 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: E2 03 00 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: E2 03 00 92 03 00 90 00 09 [09:01:17]RAPDU: 90 00 [09:01:17]wFMCommunicate OK [09:01:17]wFMCommunicate request_size=255 [09:01:17]MH_SAM_APDU [09:01:17]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 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 BA 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 2A 00 00 00 F4 03 04 00 5C 3E 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 74 00 00 35 04 06 00 [09:01:17]Write to MH i2c: E2 02 01 93 03 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 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 BA 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 2A 00 00 00 F4 03 04 00 5C 3E 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 74 00 00 35 04 06 00 00 00 C2 [09:01:17]Write i2c OK [09:01:17]MH_I2C_Read... [09:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:17]Read from MH i2c: E2 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: E2 03 00 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: E2 03 00 93 03 00 90 00 0A [09:01:17]RAPDU: 90 00 [09:01:17]wFMCommunicate OK [09:01:17]wFMCommunicate request_size=11 [09:01:17]MH_SAM_APDU [09:01:17]CAPDU: 80 0D 02 02 06 67 BB B2 14 4F D2 [09:01:17]Write to MH i2c: E2 0E 00 94 03 80 0D 02 02 06 00 67 BB B2 14 4F D2 00 00 26 [09:01:17]Write i2c OK [09:01:17]MH_I2C_Read... [09:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:17]Read from MH i2c: E2 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: E2 03 00 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: E2 03 00 94 03 00 90 00 0B [09:01:17]RAPDU: 90 00 [09:01:17]wFMCommunicate OK [09:01:17]wFMCommunicate request_size=4 [09:01:17]MH_SAM_APDU [09:01:17]CAPDU: 80 0D 03 02 [09:01:17]Write to MH i2c: E2 08 00 95 03 80 0D 03 02 00 00 00 00 13 [09:01:17]Write i2c OK [09:01:17]MH_I2C_Read... [09:01:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:17]Read from MH i2c: E2 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: E2 0B 00 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: E2 0B 00 95 03 00 24 B0 ED 09 A9 37 96 4E 90 00 A2 [09:01:17]RAPDU: 24 B0 ED 09 A9 37 96 4E 90 00 [09:01:17]wFMCommunicate OK [09:01:17]SAM_PROTO_SignData done [09:01:17]FM_MakeSignedData done [09:01:17]CreateOFDProtocolMessage [09:01:17]wFMCommunicate request_size=4 [09:01:17]MH_SAM_APDU [09:01:17]CAPDU: 80 11 00 00 [09:01:17]Write to MH i2c: E2 08 00 96 03 80 11 00 00 00 00 00 00 13 [09:01:17]Write i2c OK [09:01:17]MH_I2C_Read... [09:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:17]Read from MH i2c: E2 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: E2 17 00 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: E2 17 00 96 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 62 [09:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:01:17]wFMCommunicate OK [09:01:17]CreateOFDProtocolMessage done [09:01:17]OFDSenderStorePacket 29768 [09:01:17]StoreOFDPacket docnum=29768 [09:01:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 02 F3 08 01 40 88 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 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 BA 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 2A 00 00 00 F4 03 04 00 5C 3E 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 74 00 00 35 04 06 00 67 BB B2 14 4F D2 24 B0 ED 09 A9 37 96 4E [09:01:17]CheckFolder [09:01:17]dirname=/storage/ofd_packets [09:01:17]CheckFolder done [09:01:17]ProducePacketName [09:01:17]name=ofd_packets/00029768 [09:01:17]NVStorageSaveData ofd_packets/00029768 [09:01:17]File name is /storage/ofd_packets/00029768 [09:01:17]Write 302 bytes [09:01:17]NVStorageSaveData done [09:01:17]OFDSenderStorePacket done [09:01:17]KKMCreateOFDPacket done [09:01:17]NVStorageSaveData kkm_last_timestamp [09:01:17]File name is /storage/kkm_last_timestamp [09:01:17]Write 4 bytes [09:01:17]NVStorageSaveData done [09:01:17]ExternCall_PrintAddStr [09:01:17]wPrintStart [09:01:17]Write to MH i2c: 01 00 00 97 03 9A [09:01:17]Write i2c OK [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: 01 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: 01 07 00 [09:01:17]MH_I2C_Read... [09:01:17]Read from MH i2c: 01 07 00 97 03 00 00 00 00 00 FF 0F AF [09:01:17]RasterBufferAndPrint [09:01:17]line Счет N : (1)348246 [09:01:17]line ИНН: 02508201610067 [09:01:17]line Контрольно-Кассовый Чек [09:01:17]line ПРОДАЖА [09:01:17]line ТРК (МРК, ГНК) : 12 [09:01:17]line Товар: 2710124130 [09:01:17]line SUPER-92-К-5 [09:01:17]line 7.600 * 65.80 [09:01:17]line = 500.08 [09:01:17]line НДС 12% НСП 1% [09:01:17]line > о реализуемом товаре [09:01:17]line ОКРУГЛЕНИЕ: -0.08 [09:01:17]line ИТОГО: 500.00 [09:01:17]line Внесено: 500.00 [09:01:17]line СДАЧА: 0.00 [09:01:17]line НСП 1% : 4.42 [09:01:17]line НДС 12% : 53.11 [09:01:17]line Наличными: 500.00 [09:01:17]line Безнал.: 0.00 [09:01:17]line Место: АЗС № 108 "Партнер Нефть" [09:01:17]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:01:17]line СНО: Общий режим [09:01:17]line Чек 42 16.04.2024 09:01 [09:01:17]line Смена: 118 ФФД: 1.0 [09:01:17]line ЗНМ: 0300000027 [09:01:17]line РНМ: 0000138879044617 [09:01:17]line Версия ККМ: 001 [09:01:17]line ФМ: 0000000000963154 [09:01:17]line ФД: 29768 [09:01:17]line ФПД: 114055844220882 [09:01:17]line 1/tax-web-control/client/api/v1/ticket?date=20240416T090116&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29768&fm=114055844220882&tin=02508201610067®Number=0000138879044617&sum=50000 [09:01:17]OFD Sender: Processing packet 29768 [packets to send 8, broken 7] [09:01:17]ProducePacketName [09:01:17]name=ofd_packets/00029768 [09:01:17]OFD Sender: To server: pG, [09:01:17]CommunicateWithHost lk.salyk.kg:30040 [09:01:17]ConnectInit lk.salyk.kg [09:01:17]written 0, free lines is 4095 [09:01:18]Connected sock=10 [09:01:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 02 F3 08 01 40 88 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 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 BA 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 2A 00 00 00 F4 03 04 00 5C 3E 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 74 00 00 35 04 06 00 67 BB B2 14 4F D2 24 B0 ED 09 A9 37 96 4E [09:01:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CC 35 47 00 86 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 36 33 31 35 34 10 04 04 00 48 74 00 00 F4 03 04 00 FB E8 1D 66 B6 04 01 00 00 DA 45 99 F3 1F 02 5A 4F [09:01:18]CommunicateWithHost err = 0 [09:01:18]CheckOFDResponse [09:01:18]1017 (14) - 77093643461234 [09:01:18]1041 (16) - 0000000000963154 [09:01:18]1040 (4) - 29768 [09:01:18]1012 (4) - 16.04.2024 02:56 [09:01:18]1206 (1) - 0 [09:01:18]OFD Sender: Remove packet 29768 [09:01:18]ProducePacketName [09:01:18]name=ofd_packets/00029768 [09:01:18]NVStorageDeleteData [09:01:18]Write to MH i2c: 01 00 00 C1 03 C4 [09:01:18]Write i2c OK [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: 01 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: 01 07 00 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: 01 07 00 C1 03 00 00 00 00 00 C0 0C 97 [09:01:18]RasterBufferAndPrint [09:01:18]line [09:01:18]line [09:01:18]line [09:01:18]line [09:01:18]line [09:01:18]written 0, free lines is 3270 [09:01:18]MH_Cut [09:01:18]Write to MH i2c: D1 01 00 C8 03 01 9D [09:01:18]Write i2c OK [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: D1 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: D1 01 00 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: D1 01 00 C8 03 00 9C [09:01:18]Write to MH i2c: 01 00 00 C9 03 CC [09:01:18]Write i2c OK [09:01:18]MH_I2C_Read... [09:01:18]OFD Sender: No OFD packet to send [09:01:19]*** Cut start [09:01:19]*** Partial cut [09:01:19]*** CUTSNS_PIN = 1 [09:01:19]*** CUTSNS_PIN = 0 [09:01:19]*** Brake cut motor [09:01:19]Read from MH i2c: 01 [09:01:19]MH_I2C_Read... [09:01:19]*** Stop cut motor [09:01:19]*** Cut end [09:01:19]Read from MH i2c: 01 07 00 [09:01:19]MH_I2C_Read... [09:01:19]Read from MH i2c: 01 07 00 C9 03 00 00 00 00 00 FF 0F E1 [09:01:19]process_action close_receipt done [09:01:19]requested_data is exist [09:01:19]produce_requested_data [09:01:19]requested_item fm.sn is exist - process it [09:01:19]wFMCommunicate request_size=4 [09:01:19]MH_SAM_APDU [09:01:19]CAPDU: 80 11 00 00 [09:01:19]Write to MH i2c: E2 08 00 CA 03 80 11 00 00 00 00 00 00 47 [09:01:19]Write i2c OK [09:01:19]MH_I2C_Read... [09:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:19]Read from MH i2c: E2 [09:01:19]MH_I2C_Read... [09:01:19]Read from MH i2c: E2 17 00 [09:01:19]MH_I2C_Read... [09:01:19]Read from MH i2c: E2 17 00 CA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 96 [09:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:01:19]wFMCommunicate OK [09:01:19]requested_item fd.num is exist - process it [09:01:19]SAM_PROTO_GetFieldsCounters [09:01:19]wFMCommunicate request_size=4 [09:01:19]MH_SAM_APDU [09:01:19]CAPDU: 80 13 00 00 [09:01:19]Write to MH i2c: E2 08 00 CB 03 80 13 00 00 00 00 00 00 4A [09:01:19]Write i2c OK [09:01:19]MH_I2C_Read... [09:01:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:19]Read from MH i2c: E2 [09:01:19]MH_I2C_Read... [09:01:19]Read from MH i2c: E2 62 00 [09:01:20]MH_I2C_Read... [09:01:20]Read from MH i2c: E2 62 00 CB 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 48 74 00 00 0E 04 04 00 76 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 38 [09:01:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 48 74 00 00 0E 04 04 00 76 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 [09:01:20]wFMCommunicate OK [09:01:20]SAM_PROTO_GetFieldsCounters done [09:01:20]requested_item shift.num is exist - process it [09:01:20]requested_item shift.opened is exist - process it [09:01:20]req_shift_opened [09:01:20]FM_GetShiftState [09:01:20]SAM_PROTO_GetShiftState [09:01:20]wFMCommunicate request_size=4 [09:01:20]MH_SAM_APDU [09:01:20]CAPDU: 80 13 01 00 [09:01:20]Write to MH i2c: E2 08 00 CC 03 80 13 01 00 00 00 00 00 4C [09:01:20]Write i2c OK [09:01:20]MH_I2C_Read... [09:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:20]Read from MH i2c: E2 [09:01:20]MH_I2C_Read... [09:01:20]Read from MH i2c: E2 0E 00 [09:01:20]MH_I2C_Read... [09:01:20]Read from MH i2c: E2 0E 00 CC 03 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 FA [09:01:20]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:01:20]wFMCommunicate OK [09:01:20]SAM_PROTO_GetShiftState done [09:01:20]FM_GetShiftState done [09:01:20]req_shift_opened done [09:01:20]requested_item shift.open_date is exist - process it [09:01:20]req_shift_open_date [09:01:20]req_shift_open_date done [09:01:20]produce_requested_data done [09:01:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29768,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [09:01:20]process_action_free close_receipt [09:01:20]json_value_free [09:01:20]json_value_free done [09:01:20]process_json_proto returns [09:01:20]Send response to host [09:01:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29768,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [09:01:20]free response buf [09:01:20]execute_script done [09:01:20]execute_script returns [09:01:20]free content buf [09:01:20]Sock 7.Close socket [09:01:20]Sock 7.Thread stoped [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:29]accept exits with 9 [09:05:29]New connection [09:05:29]New thread 3067276644 created [09:05:29]Thread 3067133284 joined [09:05:29]Waiting for new connection... [09:05:29] Sock 9.Parse request [09:05:29]Sock 9.Check first char [09:05:29]Sock 9.First char is OK [09:05:29]request: POST /json_proto HTTP/1.0 [09:05:29]Method: POST [09:05:29]URL: /json_proto [09:05:29]Method is POST - this is cgi request [09:05:29]url: /json_proto [09:05:29]query_string will be loaded in cgi processing [09:05:29]execute_cgi json_proto POST (null) [09:05:29]execute_cgi path=json_proto method=POST [09:05:29]POST find Content-Length [09:05:29]Host: 172.17.33.3:8080 [09:05:29]Content-Length: 822 [09:05:29]Content-Type: application/json [09:05:29] [09:05:29]POST finish read [09:05:29]Found Content-Length = 822 [09:05:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 29.950, "sum" : 1000.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:29]execute_script... [09:05:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 29.950, "sum" : 1000.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:29]POST & json_proto [09:05:29]process_json_proto [09:05:29]json parsed OK: [09:05:29]protocol is kg_v1.0 [09:05:29]action value=close_receipt [09:05:29]process_action close_receipt [09:05:29]cmd_close_receipt [09:05:29]MH_GetDate [09:05:29]Write to MH i2c: F0 00 00 CD 03 BF [09:05:29]Write i2c OK [09:05:29]MH_I2C_Read... [09:05:29]Read from MH i2c: F0 [09:05:29]MH_I2C_Read... [09:05:29]Read from MH i2c: F0 09 00 [09:05:29]MH_I2C_Read... [09:05:29]Read from MH i2c: F0 09 00 CD 03 00 5A 3F 1E 66 23 5B 8F 65 57 [09:05:29]GetLastDocTimeStamp 1713258076 [09:05:29]current date 1713258330 [09:05:29]FM_GetShiftState [09:05:29]SAM_PROTO_GetShiftState [09:05:29]wFMCommunicate request_size=4 [09:05:29]MH_SAM_APDU [09:05:29]CAPDU: 80 13 01 00 [09:05:29]Write to MH i2c: E2 08 00 CE 03 80 13 01 00 00 00 00 00 4E [09:05:29]Write i2c OK [09:05:29]MH_I2C_Read... [09:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:29]Read from MH i2c: E2 [09:05:29]MH_I2C_Read... [09:05:29]Read from MH i2c: E2 0E 00 [09:05:29]MH_I2C_Read... [09:05:29]Read from MH i2c: E2 0E 00 CE 03 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 FC [09:05:29]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:05:29]wFMCommunicate OK [09:05:29]SAM_PROTO_GetShiftState done [09:05:29]FM_GetShiftState done [09:05:29]opened in 1713226843 [09:05:29]opened+sec_in_day 1713313243 [09:05:29]quantity*price = 100033 [09:05:29]sum+1 = 100034 [09:05:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.33 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.33 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 43 16.04.2024 09:05 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29769 ФПД: 154196934732671 1/tax-web-control/client/api/v1/ticket?date=20240416T090530&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29769&fm=154196934732671&tin=02508201610067®Number=0000138879044617&sum=100033 [09:05:30]StoreToDocumentArchive [09:05:30]shift 118 fd 29769 [09:05:30]save to /storage/0118/doc_00029769 [09:05:30]save last doc name /storage/0118/doc_00029769 to /storage/kkm_last_doc_name [09:05:30]save OK [09:05:30]Clear old archive folders... [09:05:30]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:05:30]tlvbuf is 00183CD0 [09:05:30]SAM_PROTO_ClearQueue [09:05:30]wFMCommunicate request_size=4 [09:05:30]MH_SAM_APDU [09:05:30]CAPDU: 80 09 00 00 [09:05:30]Write to MH i2c: E2 08 00 DB 03 80 09 00 00 00 00 00 00 50 [09:05:30]Write i2c OK [09:05:30]MH_I2C_Read... [09:05:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:30]Read from MH i2c: E2 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: E2 03 00 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: E2 03 00 DB 03 00 90 00 52 [09:05:30]RAPDU: 90 00 [09:05:30]wFMCommunicate OK [09:05:30]SAM_PROTO_ClearQueue done [09:05:30]KKMCreateOFDPacket [09:05:30]OFDProtocolAddRootSTLVToBuf [09:05:30]FM_MakeSignedData [09:05:30]FM_MakeSignedData [09:05:30]SAM_PROTO_SignData [09:05:30]wFMCommunicate request_size=4 [09:05:30]MH_SAM_APDU [09:05:30]CAPDU: 80 0D 01 02 [09:05:30]Write to MH i2c: E2 08 00 DC 03 80 0D 01 02 00 00 00 00 58 [09:05:30]Write i2c OK [09:05:30]MH_I2C_Read... [09:05:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:31]Read from MH i2c: E2 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: E2 03 00 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: E2 03 00 DC 03 00 90 00 53 [09:05:31]RAPDU: 90 00 [09:05:31]wFMCommunicate OK [09:05:31]wFMCommunicate request_size=255 [09:05:31]MH_SAM_APDU [09:05:31]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 5A 3F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 74 00 00 35 04 06 00 8C 3D [09:05:31]Write to MH i2c: E2 02 01 DD 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 5A 3F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 74 00 00 35 04 06 00 8C 3D 00 00 F6 [09:05:31]Write i2c OK [09:05:31]MH_I2C_Read... [09:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:31]Read from MH i2c: E2 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: E2 03 00 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: E2 03 00 DD 03 00 90 00 54 [09:05:31]RAPDU: 90 00 [09:05:31]wFMCommunicate OK [09:05:31]wFMCommunicate request_size=9 [09:05:31]MH_SAM_APDU [09:05:31]CAPDU: 80 0D 02 02 04 C5 85 2B 7F [09:05:31]Write to MH i2c: E2 0C 00 DE 03 80 0D 02 02 04 00 C5 85 2B 7F 00 00 57 [09:05:31]Write i2c OK [09:05:31]MH_I2C_Read... [09:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:31]Read from MH i2c: E2 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: E2 03 00 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: E2 03 00 DE 03 00 90 00 55 [09:05:31]RAPDU: 90 00 [09:05:31]wFMCommunicate OK [09:05:31]wFMCommunicate request_size=4 [09:05:31]MH_SAM_APDU [09:05:31]CAPDU: 80 0D 03 02 [09:05:31]Write to MH i2c: E2 08 00 DF 03 80 0D 03 02 00 00 00 00 5D [09:05:31]Write i2c OK [09:05:31]MH_I2C_Read... [09:05:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:31]Read from MH i2c: E2 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: E2 0B 00 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: E2 0B 00 DF 03 00 DA 41 42 74 09 78 72 EC 90 00 0E [09:05:31]RAPDU: DA 41 42 74 09 78 72 EC 90 00 [09:05:31]wFMCommunicate OK [09:05:31]SAM_PROTO_SignData done [09:05:31]FM_MakeSignedData done [09:05:31]CreateOFDProtocolMessage [09:05:31]wFMCommunicate request_size=4 [09:05:31]MH_SAM_APDU [09:05:31]CAPDU: 80 11 00 00 [09:05:31]Write to MH i2c: E2 08 00 E0 03 80 11 00 00 00 00 00 00 5D [09:05:31]Write i2c OK [09:05:31]MH_I2C_Read... [09:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:31]Read from MH i2c: E2 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: E2 17 00 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: E2 17 00 E0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AC [09:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:05:31]wFMCommunicate OK [09:05:31]CreateOFDProtocolMessage done [09:05:31]OFDSenderStorePacket 29769 [09:05:31]StoreOFDPacket docnum=29769 [09:05:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 3A 80 06 01 5E 7D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 5A 3F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 74 00 00 35 04 06 00 8C 3D C5 85 2B 7F DA 41 42 74 09 78 72 EC [09:05:31]CheckFolder [09:05:31]dirname=/storage/ofd_packets [09:05:31]CheckFolder done [09:05:31]ProducePacketName [09:05:31]name=ofd_packets/00029769 [09:05:31]NVStorageSaveData ofd_packets/00029769 [09:05:31]File name is /storage/ofd_packets/00029769 [09:05:31]Write 300 bytes [09:05:31]NVStorageSaveData done [09:05:31]OFDSenderStorePacket done [09:05:31]KKMCreateOFDPacket done [09:05:31]NVStorageSaveData kkm_last_timestamp [09:05:31]File name is /storage/kkm_last_timestamp [09:05:31]Write 4 bytes [09:05:31]NVStorageSaveData done [09:05:31]ExternCall_PrintAddStr [09:05:31]wPrintStart [09:05:31]Write to MH i2c: 01 00 00 E1 03 E4 [09:05:31]Write i2c OK [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: 01 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: 01 07 00 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: 01 07 00 E1 03 00 00 00 00 00 FF 0F F9 [09:05:31]RasterBufferAndPrint [09:05:31]line Счет N : (1)348247 [09:05:31]line ИНН: 02508201610067 [09:05:31]line Контрольно-Кассовый Чек [09:05:31]line ПРОДАЖА [09:05:31]line ТРК (МРК, ГНК) : 71 [09:05:31]line Товар: 2711129700 [09:05:31]line ГАЗ-К-5 [09:05:31]line 29.950 * 33.40 [09:05:31]line = 1000.33 [09:05:31]line НДС 12% НСП 1% [09:05:31]line > о реализуемом товаре [09:05:31]line ИТОГО: 1000.33 [09:05:31]line НСП 1% : 8.85 [09:05:31]line НДС 12% : 106.23 [09:05:31]line Наличными: 0.00 [09:05:31]line Безнал.: 1000.33 [09:05:31]line Место: АЗС № 108 "Партнер Нефть" [09:05:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:05:31]line СНО: Общий режим [09:05:31]line Чек 43 16.04.2024 09:05 [09:05:31]line Смена: 118 ФФД: 1.0 [09:05:31]line ЗНМ: 0300000027 [09:05:31]line РНМ: 0000138879044617 [09:05:31]line Версия ККМ: 001 [09:05:31]line Платежная система: Бакай Банк [09:05:31]line ФМ: 0000000000963154 [09:05:31]line ФД: 29769 [09:05:31]line ФПД: 154196934732671 [09:05:31]line 1/tax-web-control/client/api/v1/ticket?date=20240416T090530&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29769&fm=154196934732671&tin=02508201610067®Number=0000138879044617&sum=100033 [09:05:31]OFD Sender: Processing packet 29769 [packets to send 8, broken 7] [09:05:31]ProducePacketName [09:05:31]name=ofd_packets/00029769 [09:05:31]OFD Sender: To server: pG, [09:05:31]CommunicateWithHost lk.salyk.kg:30040 [09:05:31]ConnectInit lk.salyk.kg [09:05:31]written 0, free lines is 4095 [09:05:31]Connected sock=11 [09:05:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 3A 80 06 01 5E 7D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 5A 3F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 74 00 00 35 04 06 00 8C 3D C5 85 2B 7F DA 41 42 74 09 78 72 EC [09:05:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EF 51 47 00 1C FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 74 00 00 F4 03 04 00 F9 E9 1D 66 B6 04 01 00 00 8D 32 13 AB C9 7E F0 25 [09:05:32]CommunicateWithHost err = 0 [09:05:32]CheckOFDResponse [09:05:32]1017 (14) - 77093643461234 [09:05:32]1041 (16) - 0000000000963154 [09:05:32]1040 (4) - 29769 [09:05:32]1012 (4) - 16.04.2024 03:01 [09:05:32]1206 (1) - 0 [09:05:32]OFD Sender: Remove packet 29769 [09:05:32]ProducePacketName [09:05:32]name=ofd_packets/00029769 [09:05:32]NVStorageDeleteData [09:05:32]Write to MH i2c: 01 00 00 0A 04 0E [09:05:32]Write i2c OK [09:05:32]MH_I2C_Read... [09:05:32]Read from MH i2c: 01 [09:05:32]MH_I2C_Read... [09:05:32]Read from MH i2c: 01 07 00 [09:05:32]MH_I2C_Read... [09:05:32]Read from MH i2c: 01 07 00 0A 04 00 00 00 00 00 D6 0C F7 [09:05:32]RasterBufferAndPrint [09:05:32]line [09:05:32]line [09:05:32]line [09:05:32]line [09:05:32]line [09:05:32]written 0, free lines is 3290 [09:05:32]MH_Cut [09:05:32]Write to MH i2c: D1 01 00 11 04 01 E7 [09:05:32]Write i2c OK [09:05:32]MH_I2C_Read... [09:05:32]Read from MH i2c: D1 [09:05:32]MH_I2C_Read... [09:05:32]Read from MH i2c: D1 01 00 [09:05:32]MH_I2C_Read... [09:05:32]Read from MH i2c: D1 01 00 11 04 00 E6 [09:05:32]Write to MH i2c: 01 00 00 12 04 16 [09:05:32]Write i2c OK [09:05:32]MH_I2C_Read... [09:05:32]OFD Sender: No OFD packet to send [09:05:33]*** Cut start [09:05:33]*** Partial cut [09:05:33]*** CUTSNS_PIN = 1 [09:05:33]*** CUTSNS_PIN = 0 [09:05:33]*** Brake cut motor [09:05:33]Read from MH i2c: 01 [09:05:33]MH_I2C_Read... [09:05:33]*** Stop cut motor [09:05:33]*** Cut end [09:05:33]Read from MH i2c: 01 07 00 [09:05:33]MH_I2C_Read... [09:05:33]Read from MH i2c: 01 07 00 12 04 00 00 00 00 00 FF 0F 2B [09:05:33]process_action close_receipt done [09:05:33]requested_data is exist [09:05:33]produce_requested_data [09:05:33]requested_item fm.sn is exist - process it [09:05:33]wFMCommunicate request_size=4 [09:05:33]MH_SAM_APDU [09:05:33]CAPDU: 80 11 00 00 [09:05:33]Write to MH i2c: E2 08 00 13 04 80 11 00 00 00 00 00 00 91 [09:05:33]Write i2c OK [09:05:33]MH_I2C_Read... [09:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:33]Read from MH i2c: E2 [09:05:33]MH_I2C_Read... [09:05:33]Read from MH i2c: E2 17 00 [09:05:33]MH_I2C_Read... [09:05:33]Read from MH i2c: E2 17 00 13 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E0 [09:05:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:05:33]wFMCommunicate OK [09:05:33]requested_item fd.num is exist - process it [09:05:33]SAM_PROTO_GetFieldsCounters [09:05:33]wFMCommunicate request_size=4 [09:05:33]MH_SAM_APDU [09:05:33]CAPDU: 80 13 00 00 [09:05:33]Write to MH i2c: E2 08 00 14 04 80 13 00 00 00 00 00 00 94 [09:05:33]Write i2c OK [09:05:33]MH_I2C_Read... [09:05:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:33]Read from MH i2c: E2 [09:05:33]MH_I2C_Read... [09:05:33]Read from MH i2c: E2 62 00 [09:05:33]MH_I2C_Read... [09:05:33]Read from MH i2c: E2 62 00 14 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 49 74 00 00 0E 04 04 00 76 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 86 [09:05:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 49 74 00 00 0E 04 04 00 76 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 [09:05:33]wFMCommunicate OK [09:05:33]SAM_PROTO_GetFieldsCounters done [09:05:33]requested_item shift.num is exist - process it [09:05:33]requested_item shift.opened is exist - process it [09:05:33]req_shift_opened [09:05:33]FM_GetShiftState [09:05:33]SAM_PROTO_GetShiftState [09:05:33]wFMCommunicate request_size=4 [09:05:33]MH_SAM_APDU [09:05:33]CAPDU: 80 13 01 00 [09:05:33]Write to MH i2c: E2 08 00 15 04 80 13 01 00 00 00 00 00 96 [09:05:33]Write i2c OK [09:05:33]MH_I2C_Read... [09:05:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:33]Read from MH i2c: E2 [09:05:33]MH_I2C_Read... [09:05:33]Read from MH i2c: E2 0E 00 [09:05:33]MH_I2C_Read... [09:05:33]Read from MH i2c: E2 0E 00 15 04 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 44 [09:05:33]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:05:33]wFMCommunicate OK [09:05:33]SAM_PROTO_GetShiftState done [09:05:33]FM_GetShiftState done [09:05:33]req_shift_opened done [09:05:33]requested_item shift.open_date is exist - process it [09:05:33]req_shift_open_date [09:05:33]req_shift_open_date done [09:05:33]produce_requested_data done [09:05:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29769,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [09:05:33]process_action_free close_receipt [09:05:33]json_value_free [09:05:33]json_value_free done [09:05:33]process_json_proto returns [09:05:33]Send response to host [09:05:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29769,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [09:05:33]free response buf [09:05:33]execute_script done [09:05:33]execute_script returns [09:05:33]free content buf [09:05:33]Sock 9.Close socket [09:05:33]Sock 9.Thread stoped [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:41]accept exits with 7 [09:10:41]New connection [09:10:41]New thread 3067133284 created [09:10:41]Thread 3067276644 joined [09:10:41]Waiting for new connection... [09:10:41] Sock 7.Parse request [09:10:41]Sock 7.Check first char [09:10:41]Sock 7.First char is OK [09:10:41]request: POST /json_proto HTTP/1.0 [09:10:41]Method: POST [09:10:41]URL: /json_proto [09:10:41]Method is POST - this is cgi request [09:10:41]url: /json_proto [09:10:41]query_string will be loaded in cgi processing [09:10:41]execute_cgi json_proto POST (null) [09:10:41]execute_cgi path=json_proto method=POST [09:10:41]POST find Content-Length [09:10:41]Host: 172.17.33.3:8080 [09:10:41]Content-Length: 812 [09:10:41]Content-Type: application/json [09:10:41] [09:10:41]POST finish read [09:10:41]Found Content-Length = 812 [09:10:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:41]execute_script... [09:10:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:41]POST & json_proto [09:10:41]process_json_proto [09:10:41]json parsed OK: [09:10:41]protocol is kg_v1.0 [09:10:41]action value=close_receipt [09:10:41]process_action close_receipt [09:10:41]cmd_close_receipt [09:10:41]MH_GetDate [09:10:41]Write to MH i2c: F0 00 00 16 04 09 [09:10:41]Write i2c OK [09:10:41]MH_I2C_Read... [09:10:41]Read from MH i2c: F0 [09:10:41]MH_I2C_Read... [09:10:41]Read from MH i2c: F0 09 00 [09:10:41]MH_I2C_Read... [09:10:41]Read from MH i2c: F0 09 00 16 04 00 92 40 1E 66 23 5B 8F 65 DA [09:10:41]GetLastDocTimeStamp 1713258330 [09:10:41]current date 1713258642 [09:10:41]FM_GetShiftState [09:10:41]SAM_PROTO_GetShiftState [09:10:41]wFMCommunicate request_size=4 [09:10:41]MH_SAM_APDU [09:10:41]CAPDU: 80 13 01 00 [09:10:41]Write to MH i2c: E2 08 00 17 04 80 13 01 00 00 00 00 00 98 [09:10:41]Write i2c OK [09:10:41]MH_I2C_Read... [09:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:41]Read from MH i2c: E2 [09:10:41]MH_I2C_Read... [09:10:41]Read from MH i2c: E2 0E 00 [09:10:41]MH_I2C_Read... [09:10:41]Read from MH i2c: E2 0E 00 17 04 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 46 [09:10:41]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:10:41]wFMCommunicate OK [09:10:41]SAM_PROTO_GetShiftState done [09:10:41]FM_GetShiftState done [09:10:41]opened in 1713226843 [09:10:41]opened+sec_in_day 1713313243 [09:10:41]quantity*price = 200032 [09:10:41]sum+1 = 200033 [09:10:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.32 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.32 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 44 16.04.2024 09:10 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29770 ФПД: 223036717370599 1/tax-web-control/client/api/v1/ticket?date=20240416T091042&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29770&fm=223036717370599&tin=02508201610067®Number=0000138879044617&sum=200032 [09:10:42]StoreToDocumentArchive [09:10:42]shift 118 fd 29770 [09:10:42]save to /storage/0118/doc_00029770 [09:10:42]save last doc name /storage/0118/doc_00029770 to /storage/kkm_last_doc_name [09:10:42]save OK [09:10:42]Clear old archive folders... [09:10:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:10:42]tlvbuf is 0016C4F0 [09:10:42]SAM_PROTO_ClearQueue [09:10:42]wFMCommunicate request_size=4 [09:10:42]MH_SAM_APDU [09:10:42]CAPDU: 80 09 00 00 [09:10:42]Write to MH i2c: E2 08 00 24 04 80 09 00 00 00 00 00 00 9A [09:10:42]Write i2c OK [09:10:42]MH_I2C_Read... [09:10:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:42]Read from MH i2c: E2 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: E2 03 00 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: E2 03 00 24 04 00 90 00 9C [09:10:42]RAPDU: 90 00 [09:10:42]wFMCommunicate OK [09:10:42]SAM_PROTO_ClearQueue done [09:10:42]KKMCreateOFDPacket [09:10:42]OFDProtocolAddRootSTLVToBuf [09:10:42]FM_MakeSignedData [09:10:42]FM_MakeSignedData [09:10:42]SAM_PROTO_SignData [09:10:42]wFMCommunicate request_size=4 [09:10:42]MH_SAM_APDU [09:10:42]CAPDU: 80 0D 01 02 [09:10:42]Write to MH i2c: E2 08 00 25 04 80 0D 01 02 00 00 00 00 A2 [09:10:42]Write i2c OK [09:10:42]MH_I2C_Read... [09:10:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:42]Read from MH i2c: E2 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: E2 03 00 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: E2 03 00 25 04 00 90 00 9D [09:10:42]RAPDU: 90 00 [09:10:42]wFMCommunicate OK [09:10:42]wFMCommunicate request_size=255 [09:10:42]MH_SAM_APDU [09:10:42]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 92 40 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 74 00 00 35 04 06 00 [09:10:42]Write to MH i2c: E2 02 01 26 04 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 92 40 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 74 00 00 35 04 06 00 00 00 B8 [09:10:42]Write i2c OK [09:10:42]MH_I2C_Read... [09:10:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:42]Read from MH i2c: E2 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: E2 03 00 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: E2 03 00 26 04 00 90 00 9E [09:10:42]RAPDU: 90 00 [09:10:42]wFMCommunicate OK [09:10:42]wFMCommunicate request_size=11 [09:10:42]MH_SAM_APDU [09:10:42]CAPDU: 80 0D 02 02 06 CA D9 C8 4F 8C E7 [09:10:42]Write to MH i2c: E2 0E 00 27 04 80 0D 02 02 06 00 CA D9 C8 4F 8C E7 00 00 DE [09:10:42]Write i2c OK [09:10:42]MH_I2C_Read... [09:10:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:42]Read from MH i2c: E2 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: E2 03 00 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: E2 03 00 27 04 00 90 00 9F [09:10:42]RAPDU: 90 00 [09:10:42]wFMCommunicate OK [09:10:42]wFMCommunicate request_size=4 [09:10:42]MH_SAM_APDU [09:10:42]CAPDU: 80 0D 03 02 [09:10:42]Write to MH i2c: E2 08 00 28 04 80 0D 03 02 00 00 00 00 A7 [09:10:42]Write i2c OK [09:10:42]MH_I2C_Read... [09:10:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:42]Read from MH i2c: E2 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: E2 0B 00 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: E2 0B 00 28 04 00 F3 D8 B0 95 11 60 CB AF 90 00 A3 [09:10:42]RAPDU: F3 D8 B0 95 11 60 CB AF 90 00 [09:10:42]wFMCommunicate OK [09:10:42]SAM_PROTO_SignData done [09:10:42]FM_MakeSignedData done [09:10:42]CreateOFDProtocolMessage [09:10:42]wFMCommunicate request_size=4 [09:10:42]MH_SAM_APDU [09:10:42]CAPDU: 80 11 00 00 [09:10:42]Write to MH i2c: E2 08 00 29 04 80 11 00 00 00 00 00 00 A7 [09:10:42]Write i2c OK [09:10:42]MH_I2C_Read... [09:10:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:42]Read from MH i2c: E2 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: E2 17 00 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: E2 17 00 29 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F6 [09:10:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:10:42]wFMCommunicate OK [09:10:42]CreateOFDProtocolMessage done [09:10:42]OFDSenderStorePacket 29770 [09:10:42]StoreOFDPacket docnum=29770 [09:10:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 9A 7F 08 01 F1 D5 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 92 40 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 74 00 00 35 04 06 00 CA D9 C8 4F 8C E7 F3 D8 B0 95 11 60 CB AF [09:10:42]CheckFolder [09:10:42]dirname=/storage/ofd_packets [09:10:42]CheckFolder done [09:10:42]ProducePacketName [09:10:42]name=ofd_packets/00029770 [09:10:42]NVStorageSaveData ofd_packets/00029770 [09:10:42]File name is /storage/ofd_packets/00029770 [09:10:42]Write 302 bytes [09:10:42]NVStorageSaveData done [09:10:42]OFDSenderStorePacket done [09:10:42]KKMCreateOFDPacket done [09:10:42]NVStorageSaveData kkm_last_timestamp [09:10:42]File name is /storage/kkm_last_timestamp [09:10:42]Write 4 bytes [09:10:42]NVStorageSaveData done [09:10:42]ExternCall_PrintAddStr [09:10:42]wPrintStart [09:10:42]Write to MH i2c: 01 00 00 2A 04 2E [09:10:42]OFD Sender: Processing packet 29770 [packets to send 8, broken 7] [09:10:42]ProducePacketName [09:10:42]name=ofd_packets/00029770 [09:10:42]OFD Sender: To server: pG, [09:10:42]CommunicateWithHost lk.salyk.kg:30040 [09:10:42]ConnectInit lk.salyk.kg [09:10:42]Write i2c OK [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: 01 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: 01 07 00 [09:10:42]MH_I2C_Read... [09:10:42]Read from MH i2c: 01 07 00 2A 04 00 00 00 00 00 FF 0F 43 [09:10:42]RasterBufferAndPrint [09:10:42]line Счет N : (1)348248 [09:10:42]line ИНН: 02508201610067 [09:10:42]line Контрольно-Кассовый Чек [09:10:42]line ПРОДАЖА [09:10:42]line ТРК (МРК, ГНК) : 12 [09:10:42]line Товар: 2710124130 [09:10:42]line SUPER-92-К-5 [09:10:42]line 30.400 * 65.80 [09:10:42]line = 2000.32 [09:10:42]line НДС 12% НСП 1% [09:10:42]line > о реализуемом товаре [09:10:42]line ИТОГО: 2000.32 [09:10:42]line НСП 1% : 17.70 [09:10:42]line НДС 12% : 212.42 [09:10:42]line Наличными: 0.00 [09:10:42]line Безнал.: 2000.32 [09:10:42]line Место: АЗС № 108 "Партнер Нефть" [09:10:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:10:42]line СНО: Общий режим [09:10:42]line Чек 44 16.04.2024 09:10 [09:10:42]line Смена: 118 ФФД: 1.0 [09:10:42]line ЗНМ: 0300000027 [09:10:42]line РНМ: 0000138879044617 [09:10:42]line Версия ККМ: 001 [09:10:42]line Платежная система: Бакай Банк [09:10:42]line ФМ: 0000000000963154 [09:10:42]line ФД: 29770 [09:10:42]line ФПД: 223036717370599 [09:10:42]line 1/tax-web-control/client/api/v1/ticket?date=20240416T091042&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29770&fm=223036717370599&tin=02508201610067®Number=0000138879044617&sum=200032 [09:10:43]Connected sock=9 [09:10:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 9A 7F 08 01 F1 D5 5A written 0, free lines is 4095 [09:10:43]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 92 40 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 74 00 00 35 04 06 00 CA D9 C8 4F 8C E7 F3 D8 B0 95 11 60 CB AF [09:10:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5F 42 47 00 DE BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 74 00 00 F4 03 04 00 30 EB 1D 66 B6 04 01 00 00 80 FA CF 33 57 62 AB EE [09:10:43]CommunicateWithHost err = 0 [09:10:43]CheckOFDResponse [09:10:43]1017 (14) - 77093643461234 [09:10:43]1041 (16) - 0000000000963154 [09:10:43]1040 (4) - 29770 [09:10:43]1012 (4) - 16.04.2024 03:06 [09:10:43]1206 (1) - 0 [09:10:43]OFD Sender: Remove packet 29770 [09:10:43]ProducePacketName [09:10:43]name=ofd_packets/00029770 [09:10:43]NVStorageDeleteData [09:10:43]Write to MH i2c: 01 00 00 53 04 57 [09:10:43]Write i2c OK [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: 01 [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: 01 07 00 [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: 01 07 00 53 04 00 00 00 00 00 D6 0C 40 [09:10:43]RasterBufferAndPrint [09:10:43]line [09:10:43]line [09:10:43]line [09:10:43]line [09:10:43]line [09:10:43]written 0, free lines is 3292 [09:10:43]MH_Cut [09:10:43]Write to MH i2c: D1 01 00 5A 04 01 30 [09:10:43]Write i2c OK [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: D1 [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: D1 01 00 [09:10:43]MH_I2C_Read... [09:10:43]Read from MH i2c: D1 01 00 5A 04 00 2F [09:10:43]Write to MH i2c: 01 00 00 5B 04 5F [09:10:43]Write i2c OK [09:10:43]MH_I2C_Read... [09:10:43]OFD Sender: No OFD packet to send [09:10:44]*** Cut start [09:10:44]*** Partial cut [09:10:44]*** CUTSNS_PIN = 1 [09:10:44]*** CUTSNS_PIN = 0 [09:10:44]*** Brake cut motor [09:10:45]Read from MH i2c: 01 [09:10:45]MH_I2C_Read... [09:10:45]*** Stop cut motor [09:10:45]*** Cut end [09:10:45]Read from MH i2c: 01 07 00 [09:10:45]MH_I2C_Read... [09:10:45]Read from MH i2c: 01 07 00 5B 04 00 00 00 00 00 FF 0F 74 [09:10:45]process_action close_receipt done [09:10:45]requested_data is exist [09:10:45]produce_requested_data [09:10:45]requested_item fm.sn is exist - process it [09:10:45]wFMCommunicate request_size=4 [09:10:45]MH_SAM_APDU [09:10:45]CAPDU: 80 11 00 00 [09:10:45]Write to MH i2c: E2 08 00 5C 04 80 11 00 00 00 00 00 00 DA [09:10:45]Write i2c OK [09:10:45]MH_I2C_Read... [09:10:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:45]Read from MH i2c: E2 [09:10:45]MH_I2C_Read... [09:10:45]Read from MH i2c: E2 17 00 [09:10:45]MH_I2C_Read... [09:10:45]Read from MH i2c: E2 17 00 5C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 29 [09:10:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:10:45]wFMCommunicate OK [09:10:45]requested_item fd.num is exist - process it [09:10:45]SAM_PROTO_GetFieldsCounters [09:10:45]wFMCommunicate request_size=4 [09:10:45]MH_SAM_APDU [09:10:45]CAPDU: 80 13 00 00 [09:10:45]Write to MH i2c: E2 08 00 5D 04 80 13 00 00 00 00 00 00 DD [09:10:45]Write i2c OK [09:10:45]MH_I2C_Read... [09:10:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:45]Read from MH i2c: E2 [09:10:45]MH_I2C_Read... [09:10:45]Read from MH i2c: E2 62 00 [09:10:45]MH_I2C_Read... [09:10:45]Read from MH i2c: E2 62 00 5D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4A 74 00 00 0E 04 04 00 76 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 D3 [09:10:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4A 74 00 00 0E 04 04 00 76 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 [09:10:45]wFMCommunicate OK [09:10:45]SAM_PROTO_GetFieldsCounters done [09:10:45]requested_item shift.num is exist - process it [09:10:45]requested_item shift.opened is exist - process it [09:10:45]req_shift_opened [09:10:45]FM_GetShiftState [09:10:45]SAM_PROTO_GetShiftState [09:10:45]wFMCommunicate request_size=4 [09:10:45]MH_SAM_APDU [09:10:45]CAPDU: 80 13 01 00 [09:10:45]Write to MH i2c: E2 08 00 5E 04 80 13 01 00 00 00 00 00 DF [09:10:45]Write i2c OK [09:10:45]MH_I2C_Read... [09:10:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:45]Read from MH i2c: E2 [09:10:45]MH_I2C_Read... [09:10:45]Read from MH i2c: E2 0E 00 [09:10:45]MH_I2C_Read... [09:10:45]Read from MH i2c: E2 0E 00 5E 04 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 8D [09:10:45]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:10:45]wFMCommunicate OK [09:10:45]SAM_PROTO_GetShiftState done [09:10:45]FM_GetShiftState done [09:10:45]req_shift_opened done [09:10:45]requested_item shift.open_date is exist - process it [09:10:45]req_shift_open_date [09:10:45]req_shift_open_date done [09:10:45]produce_requested_data done [09:10:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29770,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [09:10:45]process_action_free close_receipt [09:10:45]json_value_free [09:10:45]json_value_free done [09:10:45]process_json_proto returns [09:10:45]Send response to host [09:10:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29770,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [09:10:45]free response buf [09:10:45]execute_script done [09:10:45]execute_script returns [09:10:45]free content buf [09:10:45]Sock 7.Close socket [09:10:45]Sock 7.Thread stoped [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:01]accept exits with 10 [09:11:01]New connection [09:11:01]New thread 3067276644 created [09:11:01] Sock 10.Parse request [09:11:01]Thread 3067133284 joined [09:11:01]Sock 10.Check first char [09:11:01]Waiting for new connection... [09:11:01]Sock 10.First char is OK [09:11:01]request: POST /json_proto HTTP/1.0 [09:11:01]Method: POST [09:11:01]URL: /json_proto [09:11:01]Method is POST - this is cgi request [09:11:01]url: /json_proto [09:11:01]query_string will be loaded in cgi processing [09:11:01]execute_cgi json_proto POST (null) [09:11:01]execute_cgi path=json_proto method=POST [09:11:01]POST find Content-Length [09:11:01]Host: 172.17.33.3:8080 [09:11:01]Content-Length: 808 [09:11:01]Content-Type: application/json [09:11:01] [09:11:01]POST finish read [09:11:01]Found Content-Length = 808 [09:11:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:01]execute_script... [09:11:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:01]POST & json_proto [09:11:01]process_json_proto [09:11:01]json parsed OK: [09:11:01]protocol is kg_v1.0 [09:11:01]action value=close_receipt [09:11:01]process_action close_receipt [09:11:01]cmd_close_receipt [09:11:01]MH_GetDate [09:11:01]Write to MH i2c: F0 00 00 5F 04 52 [09:11:01]Write i2c OK [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: F0 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: F0 09 00 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: F0 09 00 5F 04 00 A6 40 1E 66 23 5B 8F 65 37 [09:11:01]GetLastDocTimeStamp 1713258642 [09:11:01]current date 1713258662 [09:11:01]FM_GetShiftState [09:11:01]SAM_PROTO_GetShiftState [09:11:01]wFMCommunicate request_size=4 [09:11:01]MH_SAM_APDU [09:11:01]CAPDU: 80 13 01 00 [09:11:01]Write to MH i2c: E2 08 00 60 04 80 13 01 00 00 00 00 00 E1 [09:11:01]Write i2c OK [09:11:01]MH_I2C_Read... [09:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:01]Read from MH i2c: E2 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: E2 0E 00 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: E2 0E 00 60 04 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 8F [09:11:01]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:11:01]wFMCommunicate OK [09:11:01]SAM_PROTO_GetShiftState done [09:11:01]FM_GetShiftState done [09:11:01]opened in 1713226843 [09:11:01]opened+sec_in_day 1713313243 [09:11:01]quantity*price = 100051 [09:11:01]sum+1 = 100052 [09:11:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 45 16.04.2024 09:11 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29771 ФПД: 74327469352880 1/tax-web-control/client/api/v1/ticket?date=20240416T091102&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29771&fm=74327469352880&tin=02508201610067®Number=0000138879044617&sum=100051 [09:11:02]StoreToDocumentArchive [09:11:02]shift 118 fd 29771 [09:11:02]save to /storage/0118/doc_00029771 [09:11:02]save last doc name /storage/0118/doc_00029771 to /storage/kkm_last_doc_name [09:11:02]save OK [09:11:02]Clear old archive folders... [09:11:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:02]tlvbuf is B6F108E0 [09:11:02]SAM_PROTO_ClearQueue [09:11:02]wFMCommunicate request_size=4 [09:11:02]MH_SAM_APDU [09:11:02]CAPDU: 80 09 00 00 [09:11:02]Write to MH i2c: E2 08 00 6D 04 80 09 00 00 00 00 00 00 E3 [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:02]Read from MH i2c: E2 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 03 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 03 00 6D 04 00 90 00 E5 [09:11:02]RAPDU: 90 00 [09:11:02]wFMCommunicate OK [09:11:02]SAM_PROTO_ClearQueue done [09:11:02]KKMCreateOFDPacket [09:11:02]OFDProtocolAddRootSTLVToBuf [09:11:02]FM_MakeSignedData [09:11:02]FM_MakeSignedData [09:11:02]SAM_PROTO_SignData [09:11:02]wFMCommunicate request_size=4 [09:11:02]MH_SAM_APDU [09:11:02]CAPDU: 80 0D 01 02 [09:11:02]Write to MH i2c: E2 08 00 6E 04 80 0D 01 02 00 00 00 00 EB [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:02]Read from MH i2c: E2 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 03 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 03 00 6E 04 00 90 00 E6 [09:11:02]RAPDU: 90 00 [09:11:02]wFMCommunicate OK [09:11:02]wFMCommunicate request_size=255 [09:11:02]MH_SAM_APDU [09:11:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 A6 40 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 74 00 00 35 04 06 00 43 [09:11:02]Write to MH i2c: E2 02 01 6F 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 A6 40 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 74 00 00 35 04 06 00 43 00 00 46 [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:02]Read from MH i2c: E2 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 03 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 03 00 6F 04 00 90 00 E7 [09:11:02]RAPDU: 90 00 [09:11:02]wFMCommunicate OK [09:11:02]wFMCommunicate request_size=10 [09:11:02]MH_SAM_APDU [09:11:02]CAPDU: 80 0D 02 02 05 99 B6 68 67 B0 [09:11:02]Write to MH i2c: E2 0D 00 70 04 80 0D 02 02 05 00 99 B6 68 67 B0 00 00 C6 [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:02]Read from MH i2c: E2 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 03 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 03 00 70 04 00 90 00 E8 [09:11:02]RAPDU: 90 00 [09:11:02]wFMCommunicate OK [09:11:02]wFMCommunicate request_size=4 [09:11:02]MH_SAM_APDU [09:11:02]CAPDU: 80 0D 03 02 [09:11:02]Write to MH i2c: E2 08 00 71 04 80 0D 03 02 00 00 00 00 F0 [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:02]Read from MH i2c: E2 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 0B 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 0B 00 71 04 00 21 CC B8 D6 D2 AD 33 89 90 00 A7 [09:11:02]RAPDU: 21 CC B8 D6 D2 AD 33 89 90 00 [09:11:02]wFMCommunicate OK [09:11:02]SAM_PROTO_SignData done [09:11:02]FM_MakeSignedData done [09:11:02]CreateOFDProtocolMessage [09:11:02]wFMCommunicate request_size=4 [09:11:02]MH_SAM_APDU [09:11:02]CAPDU: 80 11 00 00 [09:11:02]Write to MH i2c: E2 08 00 72 04 80 11 00 00 00 00 00 00 F0 [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:02]Read from MH i2c: E2 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 17 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 17 00 72 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3F [09:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:11:02]wFMCommunicate OK [09:11:02]CreateOFDProtocolMessage done [09:11:02]OFDSenderStorePacket 29771 [09:11:02]StoreOFDPacket docnum=29771 [09:11:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2C BF 07 01 D3 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 A6 40 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 74 00 00 35 04 06 00 43 99 B6 68 67 B0 21 CC B8 D6 D2 AD 33 89 [09:11:02]CheckFolder [09:11:02]dirname=/storage/ofd_packets [09:11:02]CheckFolder done [09:11:02]ProducePacketName [09:11:02]name=ofd_packets/00029771 [09:11:02]NVStorageSaveData ofd_packets/00029771 [09:11:02]File name is /storage/ofd_packets/00029771 [09:11:02]Write 301 bytes [09:11:02]NVStorageSaveData done [09:11:02]OFDSenderStorePacket done [09:11:02]KKMCreateOFDPacket done [09:11:02]NVStorageSaveData kkm_last_timestamp [09:11:02]File name is /storage/kkm_last_timestamp [09:11:02]Write 4 bytes [09:11:02]NVStorageSaveData done [09:11:02]ExternCall_PrintAddStr [09:11:02]wPrintStart [09:11:02]Write to MH i2c: 01 00 00 73 04 77 [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: 01 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: 01 07 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 FF 0F 8C [09:11:02]RasterBufferAndPrint [09:11:02]line Счет N : (1)348249 [09:11:02]line ИНН: 02508201610067 [09:11:02]line Контрольно-Кассовый Чек [09:11:02]line ПРОДАЖА [09:11:02]line ТРК (МРК, ГНК) : 42 [09:11:02]line Товар: 2710124130 [09:11:02]line Аи-92-К-5 [09:11:02]line 15.440 * 64.80 [09:11:02]line = 1000.51 [09:11:02]line НДС 12% НСП 1% [09:11:02]line > о реализуемом товаре [09:11:02]line ИТОГО: 1000.51 [09:11:02]line НСП 1% : 8.85 [09:11:02]line НДС 12% : 106.25 [09:11:02]line Наличными: 0.00 [09:11:02]line Безнал.: 1000.51 [09:11:02]line Место: АЗС № 108 "Партнер Нефть" [09:11:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:11:02]line СНО: Общий режим [09:11:02]line Чек 45 16.04.2024 09:11 [09:11:02]line Смена: 118 ФФД: 1.0 [09:11:02]line ЗНМ: 0300000027 [09:11:02]line РНМ: 0000138879044617 [09:11:02]line Версия ККМ: 001 [09:11:02]line Платежная система: О! деньги [09:11:02]line ФМ: 0000000000963154 [09:11:02]line ФД: 29771 [09:11:02]line ФПД: 74327469352880 [09:11:03]line 1/tax-web-control/client/api/v1/ticket?date=20240416T091102&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29771&fm=74327469352880&tin=02508201610067®Number=0000138879044617&sum=100051 [09:11:03]OFD Sender: Processing packet 29771 [packets to send 8, broken 7] [09:11:03]ProducePacketName [09:11:03]name=ofd_packets/00029771 [09:11:03]OFD Sender: To server: pG, [09:11:03]CommunicateWithHost lk.salyk.kg:30040 [09:11:03]ConnectInit lk.salyk.kg [09:11:03]written 0, free lines is 4095 [09:11:03]Connected sock=9 [09:11:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2C BF 07 01 D3 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 A6 40 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 74 00 00 35 04 06 00 43 99 B6 68 67 B0 21 CC B8 D6 D2 AD 33 89 [09:11:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 56 36 47 00 10 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 4B 74 00 00 F4 03 04 00 44 EB 1D 66 B6 04 01 00 00 47 BA 34 79 47 2C A7 C2 [09:11:03]CommunicateWithHost err = 0 [09:11:03]CheckOFDResponse [09:11:03]1017 (14) - 77093643461234 [09:11:03]1041 (16) - 0000000000963154 [09:11:03]1040 (4) - 29771 [09:11:03]1012 (4) - 16.04.2024 03:06 [09:11:03]1206 (1) - 0 [09:11:03]OFD Sender: Remove packet 29771 [09:11:03]ProducePacketName [09:11:03]name=ofd_packets/00029771 [09:11:03]NVStorageDeleteData [09:11:03]Write to MH i2c: 01 00 00 9C 04 A0 [09:11:03]Write i2c OK [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: 01 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: 01 07 00 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: 01 07 00 9C 04 00 00 00 00 00 DA 0C 8D [09:11:03]RasterBufferAndPrint [09:11:03]line [09:11:03]line [09:11:03]line [09:11:03]line [09:11:03]line [09:11:03]written 0, free lines is 3296 [09:11:03]MH_Cut [09:11:03]Write to MH i2c: D1 01 00 A3 04 01 79 [09:11:03]Write i2c OK [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: D1 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: D1 01 00 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: D1 01 00 A3 04 00 78 [09:11:03]Write to MH i2c: 01 00 00 A4 04 A8 [09:11:03]Write i2c OK [09:11:03]MH_I2C_Read... [09:11:03]OFD Sender: No OFD packet to send [09:11:04]*** Cut start [09:11:04]*** Partial cut [09:11:04]*** CUTSNS_PIN = 1 [09:11:04]*** CUTSNS_PIN = 0 [09:11:04]*** Brake cut motor [09:11:04]Read from MH i2c: 01 [09:11:04]MH_I2C_Read... [09:11:04]*** Stop cut motor [09:11:04]*** Cut end [09:11:04]Read from MH i2c: 01 07 00 [09:11:04]MH_I2C_Read... [09:11:04]Read from MH i2c: 01 07 00 A4 04 00 00 00 00 00 FF 0F BD [09:11:04]process_action close_receipt done [09:11:04]requested_data is exist [09:11:04]produce_requested_data [09:11:04]requested_item fm.sn is exist - process it [09:11:04]wFMCommunicate request_size=4 [09:11:04]MH_SAM_APDU [09:11:04]CAPDU: 80 11 00 00 [09:11:04]Write to MH i2c: E2 08 00 A5 04 80 11 00 00 00 00 00 00 23 [09:11:04]Write i2c OK [09:11:04]MH_I2C_Read... [09:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:05]Read from MH i2c: E2 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 17 00 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 17 00 A5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 72 [09:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:11:05]wFMCommunicate OK [09:11:05]requested_item fd.num is exist - process it [09:11:05]SAM_PROTO_GetFieldsCounters [09:11:05]wFMCommunicate request_size=4 [09:11:05]MH_SAM_APDU [09:11:05]CAPDU: 80 13 00 00 [09:11:05]Write to MH i2c: E2 08 00 A6 04 80 13 00 00 00 00 00 00 26 [09:11:05]Write i2c OK [09:11:05]MH_I2C_Read... [09:11:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:05]Read from MH i2c: E2 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 62 00 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 62 00 A6 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4B 74 00 00 0E 04 04 00 76 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 20 [09:11:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4B 74 00 00 0E 04 04 00 76 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:11:05]wFMCommunicate OK [09:11:05]SAM_PROTO_GetFieldsCounters done [09:11:05]requested_item shift.num is exist - process it [09:11:05]requested_item shift.opened is exist - process it [09:11:05]req_shift_opened [09:11:05]FM_GetShiftState [09:11:05]SAM_PROTO_GetShiftState [09:11:05]wFMCommunicate request_size=4 [09:11:05]MH_SAM_APDU [09:11:05]CAPDU: 80 13 01 00 [09:11:05]Write to MH i2c: E2 08 00 A7 04 80 13 01 00 00 00 00 00 28 [09:11:05]Write i2c OK [09:11:05]MH_I2C_Read... [09:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:05]Read from MH i2c: E2 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 0E 00 [09:11:05]MH_I2C_Read... [09:11:05]Read from MH i2c: E2 0E 00 A7 04 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 D6 [09:11:05]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:11:05]wFMCommunicate OK [09:11:05]SAM_PROTO_GetShiftState done [09:11:05]FM_GetShiftState done [09:11:05]req_shift_opened done [09:11:05]requested_item shift.open_date is exist - process it [09:11:05]req_shift_open_date [09:11:05]req_shift_open_date done [09:11:05]produce_requested_data done [09:11:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29771,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [09:11:05]process_action_free close_receipt [09:11:05]json_value_free [09:11:05]json_value_free done [09:11:05]process_json_proto returns [09:11:05]Send response to host [09:11:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29771,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [09:11:05]free response buf [09:11:05]execute_script done [09:11:05]execute_script returns [09:11:05]free content buf [09:11:05]Sock 10.Close socket [09:11:05]Sock 10.Thread stoped [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:39]accept exits with 7 [09:13:39]New connection [09:13:39]New thread 3067133284 created [09:13:39]Thread 3067276644 joined [09:13:39]Waiting for new connection... [09:13:39] Sock 7.Parse request [09:13:39]Sock 7.Check first char [09:13:39]Sock 7.First char is OK [09:13:39]request: POST /json_proto HTTP/1.0 [09:13:39]Method: POST [09:13:39]URL: /json_proto [09:13:39]Method is POST - this is cgi request [09:13:39]url: /json_proto [09:13:39]query_string will be loaded in cgi processing [09:13:39]execute_cgi json_proto POST (null) [09:13:39]execute_cgi path=json_proto method=POST [09:13:39]POST find Content-Length [09:13:39]Host: 172.17.33.3:8080 [09:13:39]Content-Length: 1169 [09:13:39]Content-Type: application/json [09:13:39] [09:13:39]POST finish read [09:13:39]Found Content-Length = 1169 [09:13:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348250\u000A16.04.2024 08:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145314\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:39]execute_script... [09:13:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348250\u000A16.04.2024 08:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145314\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:39]POST & json_proto [09:13:39]process_json_proto [09:13:39]json parsed OK: [09:13:39]protocol is kg_v1.0 [09:13:39]action value=print_text [09:13:39]process_action print_text [09:13:39]cmd_print_text [09:13:39]ExternCall_PrintAddStr [09:13:39]wPrintStart [09:13:39]Write to MH i2c: 01 00 00 A8 04 AC [09:13:39]Write i2c OK [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: 01 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: 01 07 00 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: 01 07 00 A8 04 00 00 00 00 00 FF 0F C1 [09:13:39]RasterBufferAndPrint [09:13:39]line *****ТОВАРНЫЙ ЧЕК***** [09:13:39]line АЗС 108 [09:13:39]line Партнер нефть [09:13:39]line 02508201610067 [09:13:39]line Кассир : Шадыканова Ж. [09:13:39]line Счет N : (1)348250 [09:13:39]line 16.04.2024 08:55 [09:13:39]line ПРОДАЖА [09:13:39]line ТРК (МРК, ГНК): 33 [09:13:39]line Вид ГСМ : 2710124500 [09:13:39]line Аи-95-К-5 [09:13:39]line 40.000 x 72.90 [09:13:39]line ИТОГ: 2916.00 [09:13:39]line Тип оплаты: Талоны: ТК ГПНА Online [09:13:39]line 30145314 [09:13:39]line ______________________ [09:13:39]line (подпись) [09:13:39]written 0, free lines is 4095 [09:13:39]Write to MH i2c: 01 00 00 BD 04 C1 [09:13:39]Write i2c OK [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: 01 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: 01 07 00 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: 01 07 00 BD 04 00 00 00 00 00 F5 0D CA [09:13:39]RasterBufferAndPrint [09:13:39]line [09:13:39]line [09:13:39]line [09:13:39]line [09:13:39]line [09:13:39]written 0, free lines is 3575 [09:13:39]MH_Cut [09:13:39]Write to MH i2c: D1 01 00 C4 04 01 9A [09:13:39]Write i2c OK [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: D1 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: D1 01 00 [09:13:39]MH_I2C_Read... [09:13:39]Read from MH i2c: D1 01 00 C4 04 00 99 [09:13:39]Write to MH i2c: 01 00 00 C5 04 C9 [09:13:39]Write i2c OK [09:13:39]MH_I2C_Read... [09:13:40]*** Cut start [09:13:40]*** Partial cut [09:13:40]*** CUTSNS_PIN = 1 [09:13:40]*** CUTSNS_PIN = 0 [09:13:40]*** Brake cut motor [09:13:41]Read from MH i2c: 01 [09:13:41]MH_I2C_Read... [09:13:41]*** Stop cut motor [09:13:41]*** Cut end [09:13:41]Read from MH i2c: 01 07 00 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: 01 07 00 C5 04 00 00 00 00 00 FF 0F DE [09:13:41]process_action print_text done [09:13:41]requested_data is exist [09:13:41]produce_requested_data [09:13:41]requested_item fm.sn is exist - process it [09:13:41]wFMCommunicate request_size=4 [09:13:41]MH_SAM_APDU [09:13:41]CAPDU: 80 11 00 00 [09:13:41]Write to MH i2c: E2 08 00 C6 04 80 11 00 00 00 00 00 00 44 [09:13:41]Write i2c OK [09:13:41]MH_I2C_Read... [09:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:41]Read from MH i2c: E2 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 17 00 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 17 00 C6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 93 [09:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:13:41]wFMCommunicate OK [09:13:41]requested_item fd.num is exist - process it [09:13:41]SAM_PROTO_GetFieldsCounters [09:13:41]wFMCommunicate request_size=4 [09:13:41]MH_SAM_APDU [09:13:41]CAPDU: 80 13 00 00 [09:13:41]Write to MH i2c: E2 08 00 C7 04 80 13 00 00 00 00 00 00 47 [09:13:41]Write i2c OK [09:13:41]MH_I2C_Read... [09:13:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:41]Read from MH i2c: E2 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 62 00 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 62 00 C7 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4B 74 00 00 0E 04 04 00 76 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 41 [09:13:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4B 74 00 00 0E 04 04 00 76 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:41]wFMCommunicate OK [09:13:41]SAM_PROTO_GetFieldsCounters done [09:13:41]requested_item shift.num is exist - process it [09:13:41]requested_item shift.opened is exist - process it [09:13:41]req_shift_opened [09:13:41]FM_GetShiftState [09:13:41]SAM_PROTO_GetShiftState [09:13:41]wFMCommunicate request_size=4 [09:13:41]MH_SAM_APDU [09:13:41]CAPDU: 80 13 01 00 [09:13:41]Write to MH i2c: E2 08 00 C8 04 80 13 01 00 00 00 00 00 49 [09:13:41]Write i2c OK [09:13:41]MH_I2C_Read... [09:13:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:41]Read from MH i2c: E2 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 0E 00 [09:13:41]MH_I2C_Read... [09:13:41]Read from MH i2c: E2 0E 00 C8 04 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 F7 [09:13:41]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:13:41]wFMCommunicate OK [09:13:41]SAM_PROTO_GetShiftState done [09:13:41]FM_GetShiftState done [09:13:41]req_shift_opened done [09:13:41]requested_item shift.open_date is exist - process it [09:13:41]req_shift_open_date [09:13:41]req_shift_open_date done [09:13:41]produce_requested_data done [09:13:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29771,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [09:13:41]process_action_free print_text [09:13:41]json_value_free [09:13:41]json_value_free done [09:13:41]process_json_proto returns [09:13:41]Send response to host [09:13:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29771,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [09:13:41]free response buf [09:13:41]execute_script done [09:13:41]execute_script returns [09:13:41]free content buf [09:13:41]Sock 7.Close socket [09:13:41]Sock 7.Thread stoped [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:09]OFD Sender: No OFD packet to send [09:17:12]accept exits with 9 [09:17:12]New connection [09:17:12]New thread 3067276644 created [09:17:12]Thread 3067133284 joined [09:17:12]Waiting for new connection... [09:17:12] Sock 9.Parse request [09:17:12]Sock 9.Check first char [09:17:12]Sock 9.First char is OK [09:17:12]request: POST /json_proto HTTP/1.0 [09:17:12]Method: POST [09:17:12]URL: /json_proto [09:17:12]Method is POST - this is cgi request [09:17:12]url: /json_proto [09:17:12]query_string will be loaded in cgi processing [09:17:12]execute_cgi json_proto POST (null) [09:17:12]execute_cgi path=json_proto method=POST [09:17:12]POST find Content-Length [09:17:12]Host: 172.17.33.3:8080 [09:17:12]Content-Length: 678 [09:17:12]Content-Type: application/json [09:17:12] [09:17:12]POST finish read [09:17:12]Found Content-Length = 678 [09:17:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 12.350, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:12]execute_script... [09:17:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 12.350, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:12]POST & json_proto [09:17:12]process_json_proto [09:17:12]json parsed OK: [09:17:12]protocol is kg_v1.0 [09:17:12]action value=close_receipt [09:17:12]process_action close_receipt [09:17:12]cmd_close_receipt [09:17:12]MH_GetDate [09:17:12]Write to MH i2c: F0 00 00 C9 04 BC [09:17:12]Write i2c OK [09:17:12]MH_I2C_Read... [09:17:12]Read from MH i2c: F0 [09:17:12]MH_I2C_Read... [09:17:12]Read from MH i2c: F0 09 00 [09:17:12]MH_I2C_Read... [09:17:12]Read from MH i2c: F0 09 00 C9 04 00 19 42 1E 66 23 5B 8F 65 16 [09:17:12]GetLastDocTimeStamp 1713258662 [09:17:12]current date 1713259033 [09:17:12]FM_GetShiftState [09:17:12]SAM_PROTO_GetShiftState [09:17:12]wFMCommunicate request_size=4 [09:17:12]MH_SAM_APDU [09:17:12]CAPDU: 80 13 01 00 [09:17:12]Write to MH i2c: E2 08 00 CA 04 80 13 01 00 00 00 00 00 4B [09:17:12]Write i2c OK [09:17:12]MH_I2C_Read... [09:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:12]Read from MH i2c: E2 [09:17:12]MH_I2C_Read... [09:17:12]Read from MH i2c: E2 0E 00 [09:17:12]MH_I2C_Read... [09:17:12]Read from MH i2c: E2 0E 00 CA 04 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 F9 [09:17:12]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:17:12]wFMCommunicate OK [09:17:12]SAM_PROTO_GetShiftState done [09:17:12]FM_GetShiftState done [09:17:12]opened in 1713226843 [09:17:12]opened+sec_in_day 1713313243 [09:17:12]quantity*price = 80028 [09:17:12]sum+1 = 80029 [09:17:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 46 16.04.2024 09:17 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29772 ФПД: 122192630474454 1/tax-web-control/client/api/v1/ticket?date=20240416T091713&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29772&fm=122192630474454&tin=02508201610067®Number=0000138879044617&sum=80000 [09:17:13]StoreToDocumentArchive [09:17:13]shift 118 fd 29772 [09:17:13]save to /storage/0118/doc_00029772 [09:17:13]save last doc name /storage/0118/doc_00029772 to /storage/kkm_last_doc_name [09:17:13]save OK [09:17:13]Clear old archive folders... [09:17:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:13]tlvbuf is 0017F050 [09:17:13]SAM_PROTO_ClearQueue [09:17:13]wFMCommunicate request_size=4 [09:17:13]MH_SAM_APDU [09:17:13]CAPDU: 80 09 00 00 [09:17:13]Write to MH i2c: E2 08 00 D7 04 80 09 00 00 00 00 00 00 4D [09:17:13]Write i2c OK [09:17:13]MH_I2C_Read... [09:17:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:13]Read from MH i2c: E2 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 03 00 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 03 00 D7 04 00 90 00 4F [09:17:13]RAPDU: 90 00 [09:17:13]wFMCommunicate OK [09:17:13]SAM_PROTO_ClearQueue done [09:17:13]KKMCreateOFDPacket [09:17:13]OFDProtocolAddRootSTLVToBuf [09:17:13]FM_MakeSignedData [09:17:13]FM_MakeSignedData [09:17:13]SAM_PROTO_SignData [09:17:13]wFMCommunicate request_size=4 [09:17:13]MH_SAM_APDU [09:17:13]CAPDU: 80 0D 01 02 [09:17:13]Write to MH i2c: E2 08 00 D8 04 80 0D 01 02 00 00 00 00 55 [09:17:13]Write i2c OK [09:17:13]MH_I2C_Read... [09:17:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:13]Read from MH i2c: E2 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 03 00 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [09:17:13]RAPDU: 90 00 [09:17:13]wFMCommunicate OK [09:17:13]wFMCommunicate request_size=255 [09:17:13]MH_SAM_APDU [09:17:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 19 42 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 74 00 00 35 04 06 00 6F [09:17:13]Write to MH i2c: E2 02 01 D9 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 19 42 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 74 00 00 35 04 06 00 6F 00 00 65 [09:17:13]Write i2c OK [09:17:13]MH_I2C_Read... [09:17:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:13]Read from MH i2c: E2 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 03 00 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [09:17:13]RAPDU: 90 00 [09:17:13]wFMCommunicate OK [09:17:13]wFMCommunicate request_size=10 [09:17:13]MH_SAM_APDU [09:17:13]CAPDU: 80 0D 02 02 05 22 30 55 66 D6 [09:17:13]Write to MH i2c: E2 0D 00 DA 04 80 0D 02 02 05 00 22 30 55 66 D6 00 00 45 [09:17:13]Write i2c OK [09:17:13]MH_I2C_Read... [09:17:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:13]Read from MH i2c: E2 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 03 00 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [09:17:13]RAPDU: 90 00 [09:17:13]wFMCommunicate OK [09:17:13]wFMCommunicate request_size=4 [09:17:13]MH_SAM_APDU [09:17:13]CAPDU: 80 0D 03 02 [09:17:13]Write to MH i2c: E2 08 00 DB 04 80 0D 03 02 00 00 00 00 5A [09:17:13]Write i2c OK [09:17:13]MH_I2C_Read... [09:17:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:14]Read from MH i2c: E2 [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: E2 0B 00 [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: E2 0B 00 DB 04 00 65 3D 7E C6 17 BC 05 D8 90 00 F1 [09:17:14]RAPDU: 65 3D 7E C6 17 BC 05 D8 90 00 [09:17:14]wFMCommunicate OK [09:17:14]SAM_PROTO_SignData done [09:17:14]FM_MakeSignedData done [09:17:14]CreateOFDProtocolMessage [09:17:14]wFMCommunicate request_size=4 [09:17:14]MH_SAM_APDU [09:17:14]CAPDU: 80 11 00 00 [09:17:14]Write to MH i2c: E2 08 00 DC 04 80 11 00 00 00 00 00 00 5A [09:17:14]Write i2c OK [09:17:14]MH_I2C_Read... [09:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:14]Read from MH i2c: E2 [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: E2 17 00 [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: E2 17 00 DC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A9 [09:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:17:14]wFMCommunicate OK [09:17:14]CreateOFDProtocolMessage done [09:17:14]OFDSenderStorePacket 29772 [09:17:14]StoreOFDPacket docnum=29772 [09:17:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 61 B5 07 01 22 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 19 42 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 74 00 00 35 04 06 00 6F 22 30 55 66 D6 65 3D 7E C6 17 BC 05 D8 [09:17:14]CheckFolder [09:17:14]dirname=/storage/ofd_packets [09:17:14]CheckFolder done [09:17:14]ProducePacketName [09:17:14]name=ofd_packets/00029772 [09:17:14]NVStorageSaveData ofd_packets/00029772 [09:17:14]File name is /storage/ofd_packets/00029772 [09:17:14]Write 301 bytes [09:17:14]NVStorageSaveData done [09:17:14]OFDSenderStorePacket done [09:17:14]KKMCreateOFDPacket done [09:17:14]NVStorageSaveData kkm_last_timestamp [09:17:14]File name is /storage/kkm_last_timestamp [09:17:14]Write 4 bytes [09:17:14]NVStorageSaveData done [09:17:14]ExternCall_PrintAddStr [09:17:14]wPrintStart [09:17:14]Write to MH i2c: 01 00 00 DD 04 E1 [09:17:14]Write i2c OK [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: 01 [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: 01 07 00 [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: 01 07 00 DD 04 00 00 00 00 00 FF 0F F6 [09:17:14]RasterBufferAndPrint [09:17:14]line Счет N : (1)348252 [09:17:14]line ИНН: 02508201610067 [09:17:14]line Контрольно-Кассовый Чек [09:17:14]line ПРОДАЖА [09:17:14]line ТРК (МРК, ГНК) : 13 [09:17:14]line Товар: 2710124130 [09:17:14]line Аи-92-К-5 [09:17:14]line 12.350 * 64.80 [09:17:14]line = 800.28 [09:17:14]line НДС 12% НСП 1% [09:17:14]line > о реализуемом товаре [09:17:14]line ОКРУГЛЕНИЕ: -0.28 [09:17:14]line ИТОГО: 800.00 [09:17:14]line Внесено: 800.00 [09:17:14]line СДАЧА: 0.00 [09:17:14]line НСП 1% : 7.08 [09:17:14]line НДС 12% : 84.98 [09:17:14]line Наличными: 800.00 [09:17:14]line Безнал.: 0.00 [09:17:14]line Место: АЗС № 108 "Партнер Нефть" [09:17:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:17:14]line СНО: Общий режим [09:17:14]line Чек 46 16.04.2024 09:17 [09:17:14]line Смена: 118 ФФД: 1.0 [09:17:14]line ЗНМ: 0300000027 [09:17:14]line РНМ: 0000138879044617 [09:17:14]line Версия ККМ: 001 [09:17:14]line ФМ: 0000000000963154 [09:17:14]line ФД: 29772 [09:17:14]line ФПД: 122192630474454 [09:17:14]line 1/tax-web-control/client/api/v1/ticket?date=20240416T091713&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29772&fm=122192630474454&tin=02508201610067®Number=0000138879044617&sum=80000 [09:17:14]OFD Sender: Processing packet 29772 [packets to send 8, broken 7] [09:17:14]ProducePacketName [09:17:14]name=ofd_packets/00029772 [09:17:14]OFD Sender: To server: pG, [09:17:14]CommunicateWithHost lk.salyk.kg:30040 [09:17:14]ConnectInit lk.salyk.kg [09:17:14]written 0, free lines is 4095 [09:17:14]Connected sock=10 [09:17:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 61 B5 07 01 22 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 19 42 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 74 00 00 35 04 06 00 6F 22 30 55 66 D6 65 3D 7E C6 17 BC 05 D8 [09:17:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 52 98 47 00 0D 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 36 33 31 35 34 10 04 04 00 4C 74 00 00 F4 03 04 00 B7 EC 1D 66 B6 04 01 00 00 7B A5 64 14 53 D1 4D 87 [09:17:14]CommunicateWithHost err = 0 [09:17:14]CheckOFDResponse [09:17:14]1017 (14) - 77093643461234 [09:17:14]1041 (16) - 0000000000963154 [09:17:14]1040 (4) - 29772 [09:17:14]1012 (4) - 16.04.2024 03:12 [09:17:14]1206 (1) - 0 [09:17:14]OFD Sender: Remove packet 29772 [09:17:14]ProducePacketName [09:17:14]name=ofd_packets/00029772 [09:17:14]NVStorageDeleteData [09:17:14]Write to MH i2c: 01 00 00 07 05 0C [09:17:14]Write i2c OK [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: 01 [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: 01 07 00 [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: 01 07 00 07 05 00 00 00 00 00 C0 0C DF [09:17:14]RasterBufferAndPrint [09:17:14]line [09:17:14]line [09:17:14]line [09:17:14]line [09:17:14]line [09:17:14]written 0, free lines is 3268 [09:17:14]MH_Cut [09:17:14]Write to MH i2c: D1 01 00 0E 05 01 E5 [09:17:14]Write i2c OK [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: D1 [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: D1 01 00 [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: D1 01 00 0E 05 00 E4 [09:17:14]Write to MH i2c: 01 00 00 0F 05 14 [09:17:14]Write i2c OK [09:17:14]MH_I2C_Read... [09:17:15]OFD Sender: No OFD packet to send [09:17:15]*** Cut start [09:17:15]*** Partial cut [09:17:15]*** CUTSNS_PIN = 1 [09:17:15]*** CUTSNS_PIN = 0 [09:17:15]*** Brake cut motor [09:17:16]Read from MH i2c: 01 [09:17:16]MH_I2C_Read... [09:17:16]*** Stop cut motor [09:17:16]*** Cut end [09:17:16]Read from MH i2c: 01 07 00 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: 01 07 00 0F 05 00 00 00 00 00 FF 0F 29 [09:17:16]process_action close_receipt done [09:17:16]requested_data is exist [09:17:16]produce_requested_data [09:17:16]requested_item fm.sn is exist - process it [09:17:16]wFMCommunicate request_size=4 [09:17:16]MH_SAM_APDU [09:17:16]CAPDU: 80 11 00 00 [09:17:16]Write to MH i2c: E2 08 00 10 05 80 11 00 00 00 00 00 00 8F [09:17:16]Write i2c OK [09:17:16]MH_I2C_Read... [09:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:16]Read from MH i2c: E2 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: E2 17 00 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: E2 17 00 10 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DE [09:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:17:16]wFMCommunicate OK [09:17:16]requested_item fd.num is exist - process it [09:17:16]SAM_PROTO_GetFieldsCounters [09:17:16]wFMCommunicate request_size=4 [09:17:16]MH_SAM_APDU [09:17:16]CAPDU: 80 13 00 00 [09:17:16]Write to MH i2c: E2 08 00 11 05 80 13 00 00 00 00 00 00 92 [09:17:16]Write i2c OK [09:17:16]MH_I2C_Read... [09:17:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:16]Read from MH i2c: E2 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: E2 62 00 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: E2 62 00 11 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4C 74 00 00 0E 04 04 00 76 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 90 [09:17:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4C 74 00 00 0E 04 04 00 76 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 [09:17:16]wFMCommunicate OK [09:17:16]SAM_PROTO_GetFieldsCounters done [09:17:16]requested_item shift.num is exist - process it [09:17:16]requested_item shift.opened is exist - process it [09:17:16]req_shift_opened [09:17:16]FM_GetShiftState [09:17:16]SAM_PROTO_GetShiftState [09:17:16]wFMCommunicate request_size=4 [09:17:16]MH_SAM_APDU [09:17:16]CAPDU: 80 13 01 00 [09:17:16]Write to MH i2c: E2 08 00 12 05 80 13 01 00 00 00 00 00 94 [09:17:16]Write i2c OK [09:17:16]MH_I2C_Read... [09:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:16]Read from MH i2c: E2 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: E2 0E 00 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: E2 0E 00 12 05 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 42 [09:17:16]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:17:16]wFMCommunicate OK [09:17:16]SAM_PROTO_GetShiftState done [09:17:16]FM_GetShiftState done [09:17:16]req_shift_opened done [09:17:16]requested_item shift.open_date is exist - process it [09:17:16]req_shift_open_date [09:17:16]req_shift_open_date done [09:17:16]produce_requested_data done [09:17:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29772,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [09:17:16]process_action_free close_receipt [09:17:16]json_value_free [09:17:16]json_value_free done [09:17:16]process_json_proto returns [09:17:16]Send response to host [09:17:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29772,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [09:17:16]free response buf [09:17:16]execute_script done [09:17:16]execute_script returns [09:17:16]free content buf [09:17:16]Sock 9.Close socket [09:17:16]Sock 9.Thread stoped [09:17:20]OFD Sender: No OFD packet to send [09:17:22]accept exits with 7 [09:17:22]New connection [09:17:22]New thread 3067133284 created [09:17:22]Thread 3067276644 joined [09:17:22]Waiting for new connection... [09:17:22] Sock 7.Parse request [09:17:22]Sock 7.Check first char [09:17:22]Sock 7.First char is OK [09:17:22]request: POST /json_proto HTTP/1.0 [09:17:22]Method: POST [09:17:22]URL: /json_proto [09:17:22]Method is POST - this is cgi request [09:17:22]url: /json_proto [09:17:22]query_string will be loaded in cgi processing [09:17:22]execute_cgi json_proto POST (null) [09:17:22]execute_cgi path=json_proto method=POST [09:17:22]POST find Content-Length [09:17:22]Host: 172.17.33.3:8080 [09:17:22]Content-Length: 1172 [09:17:22]Content-Type: application/json [09:17:22] [09:17:22]POST finish read [09:17:22]Found Content-Length = 1172 [09:17:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348251\u000A16.04.2024 08:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 50.000 x 33.40\u000A\u0418\u0422\u041E\u0413: 1670.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30088373\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:22]execute_script... [09:17:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348251\u000A16.04.2024 08:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 50.000 x 33.40\u000A\u0418\u0422\u041E\u0413: 1670.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30088373\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:22]POST & json_proto [09:17:22]process_json_proto [09:17:22]json parsed OK: [09:17:22]protocol is kg_v1.0 [09:17:22]action value=print_text [09:17:22]process_action print_text [09:17:22]cmd_print_text [09:17:22]ExternCall_PrintAddStr [09:17:22]wPrintStart [09:17:22]Write to MH i2c: 01 00 00 13 05 18 [09:17:22]Write i2c OK [09:17:22]MH_I2C_Read... [09:17:22]Read from MH i2c: 01 [09:17:22]MH_I2C_Read... [09:17:22]Read from MH i2c: 01 07 00 [09:17:22]MH_I2C_Read... [09:17:22]Read from MH i2c: 01 07 00 13 05 00 00 00 00 00 FF 0F 2D [09:17:22]RasterBufferAndPrint [09:17:22]line *****ТОВАРНЫЙ ЧЕК***** [09:17:22]line АЗС 108 [09:17:22]line Партнер нефть [09:17:22]line 02508201610067 [09:17:22]line Кассир : Шадыканова Ж. [09:17:22]line Счет N : (1)348251 [09:17:22]line 16.04.2024 08:58 [09:17:22]line ПРОДАЖА [09:17:22]line ТРК (МРК, ГНК): 71 [09:17:22]line Вид ГСМ : 2711129700 [09:17:22]line ГАЗ-К-5 [09:17:22]line 50.000 x 33.40 [09:17:22]line ИТОГ: 1670.00 [09:17:22]line Тип оплаты: Талоны: ТК ГПНА Online [09:17:22]line 30088373 [09:17:22]line ______________________ [09:17:22]line (подпись) [09:17:22]written 0, free lines is 4095 [09:17:23]Write to MH i2c: 01 00 00 28 05 2D [09:17:23]Write i2c OK [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: 01 [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: 01 07 00 [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: 01 07 00 28 05 00 00 00 00 00 F4 0D 35 [09:17:23]RasterBufferAndPrint [09:17:23]line [09:17:23]line [09:17:23]line [09:17:23]line [09:17:23]line [09:17:23]written 0, free lines is 3574 [09:17:23]MH_Cut [09:17:23]Write to MH i2c: D1 01 00 2F 05 01 06 [09:17:23]Write i2c OK [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: D1 [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: D1 01 00 [09:17:23]MH_I2C_Read... [09:17:23]Read from MH i2c: D1 01 00 2F 05 00 05 [09:17:23]Write to MH i2c: 01 00 00 30 05 35 [09:17:23]Write i2c OK [09:17:23]MH_I2C_Read... [09:17:23]*** Cut start [09:17:23]*** Partial cut [09:17:23]*** CUTSNS_PIN = 1 [09:17:23]*** CUTSNS_PIN = 0 [09:17:23]*** Brake cut motor [09:17:24]Read from MH i2c: 01 [09:17:24]MH_I2C_Read... [09:17:24]*** Stop cut motor [09:17:24]Read from MH i2c: 01 07 00 [09:17:24]MH_I2C_Read... [09:17:24]*** Cut end [09:17:24]Read from MH i2c: 01 07 00 30 05 00 00 00 00 00 FF 0F 4A [09:17:24]process_action print_text done [09:17:24]requested_data is exist [09:17:24]produce_requested_data [09:17:24]requested_item fm.sn is exist - process it [09:17:24]wFMCommunicate request_size=4 [09:17:24]MH_SAM_APDU [09:17:24]CAPDU: 80 11 00 00 [09:17:24]Write to MH i2c: E2 08 00 31 05 80 11 00 00 00 00 00 00 B0 [09:17:24]Write i2c OK [09:17:24]MH_I2C_Read... [09:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:24]Read from MH i2c: E2 [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: E2 17 00 [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: E2 17 00 31 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FF [09:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:17:24]wFMCommunicate OK [09:17:24]requested_item fd.num is exist - process it [09:17:24]SAM_PROTO_GetFieldsCounters [09:17:24]wFMCommunicate request_size=4 [09:17:24]MH_SAM_APDU [09:17:24]CAPDU: 80 13 00 00 [09:17:24]Write to MH i2c: E2 08 00 32 05 80 13 00 00 00 00 00 00 B3 [09:17:24]Write i2c OK [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: E2 [09:17:24]MH_I2C_Read... [09:17:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:24]Read from MH i2c: E2 62 00 [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: E2 62 00 32 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4C 74 00 00 0E 04 04 00 76 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 B1 [09:17:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4C 74 00 00 0E 04 04 00 76 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 [09:17:24]wFMCommunicate OK [09:17:24]SAM_PROTO_GetFieldsCounters done [09:17:24]requested_item shift.num is exist - process it [09:17:24]requested_item shift.opened is exist - process it [09:17:24]req_shift_opened [09:17:24]FM_GetShiftState [09:17:24]SAM_PROTO_GetShiftState [09:17:24]wFMCommunicate request_size=4 [09:17:24]MH_SAM_APDU [09:17:24]CAPDU: 80 13 01 00 [09:17:24]Write to MH i2c: E2 08 00 33 05 80 13 01 00 00 00 00 00 B5 [09:17:24]Write i2c OK [09:17:24]MH_I2C_Read... [09:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:24]Read from MH i2c: E2 [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: E2 0E 00 [09:17:24]MH_I2C_Read... [09:17:24]Read from MH i2c: E2 0E 00 33 05 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 63 [09:17:24]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:17:24]wFMCommunicate OK [09:17:24]SAM_PROTO_GetShiftState done [09:17:24]FM_GetShiftState done [09:17:24]req_shift_opened done [09:17:24]requested_item shift.open_date is exist - process it [09:17:24]req_shift_open_date [09:17:24]req_shift_open_date done [09:17:24]produce_requested_data done [09:17:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29772,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [09:17:24]process_action_free print_text [09:17:24]json_value_free [09:17:24]json_value_free done [09:17:24]process_json_proto returns [09:17:24]Send response to host [09:17:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29772,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [09:17:24]free response buf [09:17:24]execute_script done [09:17:24]execute_script returns [09:17:24]free content buf [09:17:24]Sock 7.Close socket [09:17:24]Sock 7.Thread stoped [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:46]accept exits with 9 [09:23:46]New connection [09:23:46]New thread 3067276644 created [09:23:46]Thread 3067133284 joined [09:23:46]Waiting for new connection... [09:23:46] Sock 9.Parse request [09:23:46]Sock 9.Check first char [09:23:46]Sock 9.First char is OK [09:23:46]request: POST /json_proto HTTP/1.0 [09:23:46]Method: POST [09:23:46]URL: /json_proto [09:23:46]Method is POST - this is cgi request [09:23:46]url: /json_proto [09:23:46]query_string will be loaded in cgi processing [09:23:46]execute_cgi json_proto POST (null) [09:23:46]execute_cgi path=json_proto method=POST [09:23:46]POST find Content-Length [09:23:46]Host: 172.17.33.3:8080 [09:23:46]Content-Length: 1213 [09:23:46]Content-Type: application/json [09:23:46] [09:23:46]POST finish read [09:23:46]Found Content-Length = 1213 [09:23:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348253\u000A16.04.2024 09:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1944.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3859025;3859027;3859026\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:46]execute_script... [09:23:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348253\u000A16.04.2024 09:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1944.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3859025;3859027;3859026\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:46]POST & json_proto [09:23:46]process_json_proto [09:23:46]json parsed OK: [09:23:46]protocol is kg_v1.0 [09:23:46]action value=print_text [09:23:46]process_action print_text [09:23:46]cmd_print_text [09:23:46]ExternCall_PrintAddStr [09:23:46]wPrintStart [09:23:46]Write to MH i2c: 01 00 00 34 05 39 [09:23:46]Write i2c OK [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: 01 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: 01 07 00 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: 01 07 00 34 05 00 00 00 00 00 FF 0F 4E [09:23:46]RasterBufferAndPrint [09:23:46]line *****ТОВАРНЫЙ ЧЕК***** [09:23:46]line АЗС 108 [09:23:46]line Партнер нефть [09:23:46]line 02508201610067 [09:23:46]line Кассир : Шадыканова Ж. [09:23:46]line Счет N : (1)348253 [09:23:46]line 16.04.2024 09:05 [09:23:46]line ПРОДАЖА [09:23:46]line ТРК (МРК, ГНК): 32 [09:23:46]line Вид ГСМ : 2710124130 [09:23:46]line Аи-92-К-5 [09:23:46]line 30.000 x 64.80 [09:23:46]line ИТОГ: 1944.00 [09:23:46]line Тип оплаты: Талоны: Партнер нефть [09:23:46]line 3859025;3859027;3859026 [09:23:46]line ______________________ [09:23:46]line (подпись) [09:23:46]written 0, free lines is 4095 [09:23:46]Write to MH i2c: 01 00 00 49 05 4E [09:23:46]Write i2c OK [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: 01 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: 01 07 00 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: 01 07 00 49 05 00 00 00 00 00 01 0E 64 [09:23:46]RasterBufferAndPrint [09:23:46]line [09:23:46]line [09:23:46]line [09:23:46]line [09:23:46]line [09:23:46]written 0, free lines is 3587 [09:23:46]MH_Cut [09:23:46]Write to MH i2c: D1 01 00 50 05 01 27 [09:23:46]Write i2c OK [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: D1 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: D1 01 00 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: D1 01 00 50 05 00 26 [09:23:46]Write to MH i2c: 01 00 00 51 05 56 [09:23:46]Write i2c OK [09:23:46]MH_I2C_Read... [09:23:46]*** Cut start [09:23:46]*** Partial cut [09:23:46]*** CUTSNS_PIN = 1 [09:23:46]*** CUTSNS_PIN = 0 [09:23:47]*** Brake cut motor [09:23:47]Read from MH i2c: 01 [09:23:47]MH_I2C_Read... [09:23:47]*** Stop cut motor [09:23:47]*** Cut end [09:23:47]Read from MH i2c: 01 07 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: 01 07 00 51 05 00 00 00 00 00 FF 0F 6B [09:23:47]process_action print_text done [09:23:47]requested_data is exist [09:23:47]produce_requested_data [09:23:47]requested_item fm.sn is exist - process it [09:23:47]wFMCommunicate request_size=4 [09:23:47]MH_SAM_APDU [09:23:47]CAPDU: 80 11 00 00 [09:23:47]Write to MH i2c: E2 08 00 52 05 80 11 00 00 00 00 00 00 D1 [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:47]Read from MH i2c: E2 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 17 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 17 00 52 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 20 [09:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:23:47]wFMCommunicate OK [09:23:47]requested_item fd.num is exist - process it [09:23:47]SAM_PROTO_GetFieldsCounters [09:23:47]wFMCommunicate request_size=4 [09:23:47]MH_SAM_APDU [09:23:47]CAPDU: 80 13 00 00 [09:23:47]Write to MH i2c: E2 08 00 53 05 80 13 00 00 00 00 00 00 D4 [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:47]Read from MH i2c: E2 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 62 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 62 00 53 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4C 74 00 00 0E 04 04 00 76 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 D2 [09:23:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4C 74 00 00 0E 04 04 00 76 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 [09:23:47]wFMCommunicate OK [09:23:47]SAM_PROTO_GetFieldsCounters done [09:23:47]requested_item shift.num is exist - process it [09:23:47]requested_item shift.opened is exist - process it [09:23:47]req_shift_opened [09:23:47]FM_GetShiftState [09:23:47]SAM_PROTO_GetShiftState [09:23:47]wFMCommunicate request_size=4 [09:23:47]MH_SAM_APDU [09:23:47]CAPDU: 80 13 01 00 [09:23:47]Write to MH i2c: E2 08 00 54 05 80 13 01 00 00 00 00 00 D6 [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:47]Read from MH i2c: E2 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 0E 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 0E 00 54 05 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 84 [09:23:47]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:23:47]wFMCommunicate OK [09:23:47]SAM_PROTO_GetShiftState done [09:23:47]FM_GetShiftState done [09:23:47]req_shift_opened done [09:23:47]requested_item shift.open_date is exist - process it [09:23:47]req_shift_open_date [09:23:47]req_shift_open_date done [09:23:47]produce_requested_data done [09:23:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29772,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [09:23:47]process_action_free print_text [09:23:47]json_value_free [09:23:47]json_value_free done [09:23:47]process_json_proto returns [09:23:47]Send response to host [09:23:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29772,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [09:23:47]free response buf [09:23:47]execute_script done [09:23:47]execute_script returns [09:23:47]free content buf [09:23:47]Sock 9.Close socket [09:23:47]Sock 9.Thread stoped [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:02]accept exits with 7 [09:25:02]New connection [09:25:02]New thread 3067133284 created [09:25:02]Thread 3067276644 joined [09:25:02]Waiting for new connection... [09:25:02] Sock 7.Parse request [09:25:02]Sock 7.Check first char [09:25:02]Sock 7.First char is OK [09:25:02]request: POST /json_proto HTTP/1.0 [09:25:02]Method: POST [09:25:02]URL: /json_proto [09:25:02]Method is POST - this is cgi request [09:25:02]url: /json_proto [09:25:02]query_string will be loaded in cgi processing [09:25:02]execute_cgi json_proto POST (null) [09:25:02]execute_cgi path=json_proto method=POST [09:25:02]POST find Content-Length [09:25:02]Host: 172.17.33.3:8080 [09:25:02]Content-Length: 682 [09:25:02]Content-Type: application/json [09:25:02] [09:25:02]POST finish read [09:25:02]Found Content-Length = 682 [09:25:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:02]execute_script... [09:25:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:02]POST & json_proto [09:25:02]process_json_proto [09:25:02]json parsed OK: [09:25:02]protocol is kg_v1.0 [09:25:02]action value=close_receipt [09:25:02]process_action close_receipt [09:25:02]cmd_close_receipt [09:25:02]MH_GetDate [09:25:02]Write to MH i2c: F0 00 00 55 05 49 [09:25:02]Write i2c OK [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: F0 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: F0 09 00 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: F0 09 00 55 05 00 EF 43 1E 66 23 5B 8F 65 7A [09:25:02]GetLastDocTimeStamp 1713259033 [09:25:02]current date 1713259503 [09:25:02]FM_GetShiftState [09:25:02]SAM_PROTO_GetShiftState [09:25:02]wFMCommunicate request_size=4 [09:25:02]MH_SAM_APDU [09:25:02]CAPDU: 80 13 01 00 [09:25:02]Write to MH i2c: E2 08 00 56 05 80 13 01 00 00 00 00 00 D8 [09:25:02]Write i2c OK [09:25:02]MH_I2C_Read... [09:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:02]Read from MH i2c: E2 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: E2 0E 00 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: E2 0E 00 56 05 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 86 [09:25:02]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:25:02]wFMCommunicate OK [09:25:02]SAM_PROTO_GetShiftState done [09:25:02]FM_GetShiftState done [09:25:02]opened in 1713226843 [09:25:02]opened+sec_in_day 1713313243 [09:25:02]quantity*price = 100051 [09:25:02]sum+1 = 100052 [09:25:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 47 16.04.2024 09:25 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29773 ФПД: 261241934396457 1/tax-web-control/client/api/v1/ticket?date=20240416T092503&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29773&fm=261241934396457&tin=02508201610067®Number=0000138879044617&sum=100000 [09:25:03]StoreToDocumentArchive [09:25:03]shift 118 fd 29773 [09:25:03]save to /storage/0118/doc_00029773 [09:25:03]save last doc name /storage/0118/doc_00029773 to /storage/kkm_last_doc_name [09:25:03]save OK [09:25:03]Clear old archive folders... [09:25:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:03]tlvbuf is 0017EF40 [09:25:03]SAM_PROTO_ClearQueue [09:25:03]wFMCommunicate request_size=4 [09:25:03]MH_SAM_APDU [09:25:03]CAPDU: 80 09 00 00 [09:25:03]Write to MH i2c: E2 08 00 63 05 80 09 00 00 00 00 00 00 DA [09:25:03]Write i2c OK [09:25:03]MH_I2C_Read... [09:25:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:03]Read from MH i2c: E2 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 03 00 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 03 00 63 05 00 90 00 DC [09:25:03]RAPDU: 90 00 [09:25:03]wFMCommunicate OK [09:25:03]SAM_PROTO_ClearQueue done [09:25:03]KKMCreateOFDPacket [09:25:03]OFDProtocolAddRootSTLVToBuf [09:25:03]FM_MakeSignedData [09:25:03]FM_MakeSignedData [09:25:03]SAM_PROTO_SignData [09:25:03]wFMCommunicate request_size=4 [09:25:03]MH_SAM_APDU [09:25:03]CAPDU: 80 0D 01 02 [09:25:03]Write to MH i2c: E2 08 00 64 05 80 0D 01 02 00 00 00 00 E2 [09:25:03]Write i2c OK [09:25:03]MH_I2C_Read... [09:25:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:03]Read from MH i2c: E2 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 03 00 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 03 00 64 05 00 90 00 DD [09:25:03]RAPDU: 90 00 [09:25:03]wFMCommunicate OK [09:25:03]wFMCommunicate request_size=255 [09:25:03]MH_SAM_APDU [09:25:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 EF 43 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 74 00 00 35 04 06 00 ED [09:25:03]Write to MH i2c: E2 02 01 65 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 EF 43 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 74 00 00 35 04 06 00 ED 00 00 D1 [09:25:03]Write i2c OK [09:25:03]MH_I2C_Read... [09:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:03]Read from MH i2c: E2 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 03 00 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 03 00 65 05 00 90 00 DE [09:25:03]RAPDU: 90 00 [09:25:03]wFMCommunicate OK [09:25:03]wFMCommunicate request_size=10 [09:25:03]MH_SAM_APDU [09:25:03]CAPDU: 80 0D 02 02 05 99 20 B3 3C 29 [09:25:03]Write to MH i2c: E2 0D 00 66 05 80 0D 02 02 05 00 99 20 B3 3C 29 00 00 C0 [09:25:03]Write i2c OK [09:25:03]MH_I2C_Read... [09:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:03]Read from MH i2c: E2 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 03 00 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 03 00 66 05 00 90 00 DF [09:25:03]RAPDU: 90 00 [09:25:03]wFMCommunicate OK [09:25:03]wFMCommunicate request_size=4 [09:25:03]MH_SAM_APDU [09:25:03]CAPDU: 80 0D 03 02 [09:25:03]Write to MH i2c: E2 08 00 67 05 80 0D 03 02 00 00 00 00 E7 [09:25:03]Write i2c OK [09:25:03]MH_I2C_Read... [09:25:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:03]Read from MH i2c: E2 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 0B 00 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 0B 00 67 05 00 57 72 39 C3 11 95 55 FB 90 00 A3 [09:25:03]RAPDU: 57 72 39 C3 11 95 55 FB 90 00 [09:25:03]wFMCommunicate OK [09:25:03]SAM_PROTO_SignData done [09:25:03]FM_MakeSignedData done [09:25:03]CreateOFDProtocolMessage [09:25:03]wFMCommunicate request_size=4 [09:25:03]MH_SAM_APDU [09:25:03]CAPDU: 80 11 00 00 [09:25:03]Write to MH i2c: E2 08 00 68 05 80 11 00 00 00 00 00 00 E7 [09:25:03]Write i2c OK [09:25:03]MH_I2C_Read... [09:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:03]Read from MH i2c: E2 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 17 00 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 17 00 68 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 36 [09:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:25:03]wFMCommunicate OK [09:25:03]CreateOFDProtocolMessage done [09:25:03]OFDSenderStorePacket 29773 [09:25:03]StoreOFDPacket docnum=29773 [09:25:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F1 4F 07 01 B0 50 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 EF 43 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 74 00 00 35 04 06 00 ED 99 20 B3 3C 29 57 72 39 C3 11 95 55 FB [09:25:03]CheckFolder [09:25:03]dirname=/storage/ofd_packets [09:25:03]CheckFolder done [09:25:03]ProducePacketName [09:25:03]name=ofd_packets/00029773 [09:25:03]NVStorageSaveData ofd_packets/00029773 [09:25:03]File name is /storage/ofd_packets/00029773 [09:25:03]Write 301 bytes [09:25:03]NVStorageSaveData done [09:25:03]OFDSenderStorePacket done [09:25:03]KKMCreateOFDPacket done [09:25:03]NVStorageSaveData kkm_last_timestamp [09:25:03]File name is /storage/kkm_last_timestamp [09:25:03]Write 4 bytes [09:25:03]NVStorageSaveData done [09:25:03]ExternCall_PrintAddStr [09:25:03]wPrintStart [09:25:03]Write to MH i2c: 01 00 00 69 05 6E [09:25:04]Write i2c OK [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: 01 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: 01 07 00 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: 01 07 00 69 05 00 00 00 00 00 FF 0F 83 [09:25:04]RasterBufferAndPrint [09:25:04]line Счет N : (1)348254 [09:25:04]line ИНН: 02508201610067 [09:25:04]line Контрольно-Кассовый Чек [09:25:04]line ПРОДАЖА [09:25:04]line ТРК (МРК, ГНК) : 42 [09:25:04]line Товар: 2710124130 [09:25:04]line Аи-92-К-5 [09:25:04]line 15.440 * 64.80 [09:25:04]line = 1000.51 [09:25:04]line НДС 12% НСП 1% [09:25:04]line > о реализуемом товаре [09:25:04]line ОКРУГЛЕНИЕ: -0.51 [09:25:04]line ИТОГО: 1000.00 [09:25:04]line Внесено: 1000.00 [09:25:04]line СДАЧА: 0.00 [09:25:04]line НСП 1% : 8.85 [09:25:04]line НДС 12% : 106.25 [09:25:04]line Наличными: 1000.00 [09:25:04]line Безнал.: 0.00 [09:25:04]line Место: АЗС № 108 "Партнер Нефть" [09:25:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:25:04]line СНО: Общий режим [09:25:04]line Чек 47 16.04.2024 09:25 [09:25:04]line Смена: 118 ФФД: 1.0 [09:25:04]line ЗНМ: 0300000027 [09:25:04]line РНМ: 0000138879044617 [09:25:04]line Версия ККМ: 001 [09:25:04]line ФМ: 0000000000963154 [09:25:04]line ФД: 29773 [09:25:04]line ФПД: 261241934396457 [09:25:04]line 1/tax-web-control/client/api/v1/ticket?date=20240416T092503&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29773&fm=261241934396457&tin=02508201610067®Number=0000138879044617&sum=100000 [09:25:04]OFD Sender: Processing packet 29773 [packets to send 8, broken 7] [09:25:04]ProducePacketName [09:25:04]name=ofd_packets/00029773 [09:25:04]OFD Sender: To server: pG, [09:25:04]CommunicateWithHost lk.salyk.kg:30040 [09:25:04]ConnectInit lk.salyk.kg [09:25:04]written 0, free lines is 4095 [09:25:04]Connected sock=10 [09:25:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F1 4F 07 01 B0 50 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 EF 43 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 74 00 00 35 04 06 00 ED 99 20 B3 3C 29 57 72 39 C3 11 95 55 FB [09:25:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8B BD 47 00 EE 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 74 00 00 F4 03 04 00 8D EE 1D 66 B6 04 01 00 00 B5 84 EA 82 2B E8 76 33 [09:25:04]CommunicateWithHost err = 0 [09:25:04]CheckOFDResponse [09:25:04]1017 (14) - 77093643461234 [09:25:04]1041 (16) - 0000000000963154 [09:25:04]1040 (4) - 29773 [09:25:04]1012 (4) - 16.04.2024 03:20 [09:25:04]1206 (1) - 0 [09:25:04]OFD Sender: Remove packet 29773 [09:25:04]ProducePacketName [09:25:04]name=ofd_packets/00029773 [09:25:04]NVStorageDeleteData [09:25:04]Write to MH i2c: 01 00 00 93 05 98 [09:25:04]Write i2c OK [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: 01 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: 01 07 00 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: 01 07 00 93 05 00 00 00 00 00 C2 0C 6D [09:25:04]RasterBufferAndPrint [09:25:04]line [09:25:04]line [09:25:04]line [09:25:04]line [09:25:04]line [09:25:04]written 0, free lines is 3272 [09:25:04]MH_Cut [09:25:04]Write to MH i2c: D1 01 00 9A 05 01 71 [09:25:04]Write i2c OK [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: D1 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: D1 01 00 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: D1 01 00 9A 05 00 70 [09:25:04]Write to MH i2c: 01 00 00 9B 05 A0 [09:25:04]Write i2c OK [09:25:04]MH_I2C_Read... [09:25:05]OFD Sender: No OFD packet to send [09:25:05]*** Cut start [09:25:05]*** Partial cut [09:25:05]*** CUTSNS_PIN = 1 [09:25:05]*** CUTSNS_PIN = 0 [09:25:05]*** Brake cut motor [09:25:06]Read from MH i2c: 01 [09:25:06]MH_I2C_Read... [09:25:06]*** Stop cut motor [09:25:06]*** Cut end [09:25:06]Read from MH i2c: 01 07 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: 01 07 00 9B 05 00 00 00 00 00 FF 0F B5 [09:25:06]process_action close_receipt done [09:25:06]requested_data is exist [09:25:06]produce_requested_data [09:25:06]requested_item fm.sn is exist - process it [09:25:06]wFMCommunicate request_size=4 [09:25:06]MH_SAM_APDU [09:25:06]CAPDU: 80 11 00 00 [09:25:06]Write to MH i2c: E2 08 00 9C 05 80 11 00 00 00 00 00 00 1B [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:06]Read from MH i2c: E2 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 17 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 17 00 9C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6A [09:25:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:25:06]wFMCommunicate OK [09:25:06]requested_item fd.num is exist - process it [09:25:06]SAM_PROTO_GetFieldsCounters [09:25:06]wFMCommunicate request_size=4 [09:25:06]MH_SAM_APDU [09:25:06]CAPDU: 80 13 00 00 [09:25:06]Write to MH i2c: E2 08 00 9D 05 80 13 00 00 00 00 00 00 1E [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:06]Read from MH i2c: E2 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 62 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 62 00 9D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4D 74 00 00 0E 04 04 00 76 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 20 [09:25:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4D 74 00 00 0E 04 04 00 76 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 [09:25:06]wFMCommunicate OK [09:25:06]SAM_PROTO_GetFieldsCounters done [09:25:06]requested_item shift.num is exist - process it [09:25:06]requested_item shift.opened is exist - process it [09:25:06]req_shift_opened [09:25:06]FM_GetShiftState [09:25:06]SAM_PROTO_GetShiftState [09:25:06]wFMCommunicate request_size=4 [09:25:06]MH_SAM_APDU [09:25:06]CAPDU: 80 13 01 00 [09:25:06]Write to MH i2c: E2 08 00 9E 05 80 13 01 00 00 00 00 00 20 [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 [09:25:06]MH_I2C_Read... [09:25:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:06]Read from MH i2c: E2 0E 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 0E 00 9E 05 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 CE [09:25:06]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:25:06]wFMCommunicate OK [09:25:06]SAM_PROTO_GetShiftState done [09:25:06]FM_GetShiftState done [09:25:06]req_shift_opened done [09:25:06]requested_item shift.open_date is exist - process it [09:25:06]req_shift_open_date [09:25:06]req_shift_open_date done [09:25:06]produce_requested_data done [09:25:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29773,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [09:25:06]process_action_free close_receipt [09:25:06]json_value_free [09:25:06]json_value_free done [09:25:06]process_json_proto returns [09:25:06]Send response to host [09:25:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29773,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [09:25:06]free response buf [09:25:06]execute_script done [09:25:06]execute_script returns [09:25:06]free content buf [09:25:06]Sock 7.Close socket [09:25:06]Sock 7.Thread stoped [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:48]accept exits with 9 [09:28:48]New connection [09:28:48]New thread 3067276644 created [09:28:48]Thread 3067133284 joined [09:28:48]Waiting for new connection... [09:28:48] Sock 9.Parse request [09:28:48]Sock 9.Check first char [09:28:48]Sock 9.First char is OK [09:28:48]request: POST /json_proto HTTP/1.0 [09:28:48]Method: POST [09:28:48]URL: /json_proto [09:28:48]Method is POST - this is cgi request [09:28:48]url: /json_proto [09:28:48]query_string will be loaded in cgi processing [09:28:48]execute_cgi json_proto POST (null) [09:28:48]execute_cgi path=json_proto method=POST [09:28:48]POST find Content-Length [09:28:48]Host: 172.17.33.3:8080 [09:28:48]Content-Length: 677 [09:28:48]Content-Type: application/json [09:28:48] [09:28:48]POST finish read [09:28:48]Found Content-Length = 677 [09:28:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:48]execute_script... [09:28: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 : (1)348255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:48]POST & json_proto [09:28:48]process_json_proto [09:28:48]json parsed OK: [09:28:48]protocol is kg_v1.0 [09:28:48]action value=close_receipt [09:28:48]process_action close_receipt [09:28:48]cmd_close_receipt [09:28:48]MH_GetDate [09:28:48]Write to MH i2c: F0 00 00 9F 05 93 [09:28:48]Write i2c OK [09:28:48]MH_I2C_Read... [09:28:48]Read from MH i2c: F0 [09:28:48]MH_I2C_Read... [09:28:48]Read from MH i2c: F0 09 00 [09:28:48]MH_I2C_Read... [09:28:48]Read from MH i2c: F0 09 00 9F 05 00 D1 44 1E 66 23 5B 8F 65 A7 [09:28:48]GetLastDocTimeStamp 1713259503 [09:28:48]current date 1713259729 [09:28:48]FM_GetShiftState [09:28:48]SAM_PROTO_GetShiftState [09:28:48]wFMCommunicate request_size=4 [09:28:48]MH_SAM_APDU [09:28:48]CAPDU: 80 13 01 00 [09:28:48]Write to MH i2c: E2 08 00 A0 05 80 13 01 00 00 00 00 00 22 [09:28:48]Write i2c OK [09:28:48]MH_I2C_Read... [09:28:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:48]Read from MH i2c: E2 [09:28:48]MH_I2C_Read... [09:28:48]Read from MH i2c: E2 0E 00 [09:28:48]MH_I2C_Read... [09:28:48]Read from MH i2c: E2 0E 00 A0 05 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 D0 [09:28:48]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:28:48]wFMCommunicate OK [09:28:48]SAM_PROTO_GetShiftState done [09:28:48]FM_GetShiftState done [09:28:48]opened in 1713226843 [09:28:48]opened+sec_in_day 1713313243 [09:28:48]quantity*price = 40046 [09:28:48]sum+1 = 40047 [09:28:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 48 16.04.2024 09:28 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29774 ФПД: 6949874442522 1/tax-web-control/client/api/v1/ticket?date=20240416T092849&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29774&fm=6949874442522&tin=02508201610067®Number=0000138879044617&sum=40000 [09:28:49]StoreToDocumentArchive [09:28:49]shift 118 fd 29774 [09:28:49]save to /storage/0118/doc_00029774 [09:28:49]save last doc name /storage/0118/doc_00029774 to /storage/kkm_last_doc_name [09:28:49]save OK [09:28:49]Clear old archive folders... [09:28:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:49]tlvbuf is 001791C0 [09:28:49]SAM_PROTO_ClearQueue [09:28:49]wFMCommunicate request_size=4 [09:28:49]MH_SAM_APDU [09:28:49]CAPDU: 80 09 00 00 [09:28:49]Write to MH i2c: E2 08 00 AD 05 80 09 00 00 00 00 00 00 24 [09:28:49]Write i2c OK [09:28:49]MH_I2C_Read... [09:28:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:49]Read from MH i2c: E2 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 03 00 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 03 00 AD 05 00 90 00 26 [09:28:49]RAPDU: 90 00 [09:28:49]wFMCommunicate OK [09:28:49]SAM_PROTO_ClearQueue done [09:28:49]KKMCreateOFDPacket [09:28:49]OFDProtocolAddRootSTLVToBuf [09:28:49]FM_MakeSignedData [09:28:49]FM_MakeSignedData [09:28:49]SAM_PROTO_SignData [09:28:49]wFMCommunicate request_size=4 [09:28:49]MH_SAM_APDU [09:28:49]CAPDU: 80 0D 01 02 [09:28:49]Write to MH i2c: E2 08 00 AE 05 80 0D 01 02 00 00 00 00 2C [09:28:49]Write i2c OK [09:28:49]MH_I2C_Read... [09:28:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:49]Read from MH i2c: E2 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 03 00 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 03 00 AE 05 00 90 00 27 [09:28:49]RAPDU: 90 00 [09:28:49]wFMCommunicate OK [09:28:49]wFMCommunicate request_size=255 [09:28:49]MH_SAM_APDU [09:28:49]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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 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 30 00 00 00 F4 03 04 00 D1 44 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 74 00 00 35 04 06 00 06 [09:28:49]Write to MH i2c: E2 02 01 AF 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 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 30 00 00 00 F4 03 04 00 D1 44 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 74 00 00 35 04 06 00 06 00 00 D1 [09:28:49]Write i2c OK [09:28:49]MH_I2C_Read... [09:28:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:49]Read from MH i2c: E2 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 03 00 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 03 00 AF 05 00 90 00 28 [09:28:49]RAPDU: 90 00 [09:28:49]wFMCommunicate OK [09:28:49]wFMCommunicate request_size=10 [09:28:49]MH_SAM_APDU [09:28:49]CAPDU: 80 0D 02 02 05 52 24 CC 21 1A [09:28:49]Write to MH i2c: E2 0D 00 B0 05 80 0D 02 02 05 00 52 24 CC 21 1A 00 00 B6 [09:28:49]Write i2c OK [09:28:49]MH_I2C_Read... [09:28:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:49]Read from MH i2c: E2 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 03 00 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 03 00 B0 05 00 90 00 29 [09:28:49]RAPDU: 90 00 [09:28:49]wFMCommunicate OK [09:28:49]wFMCommunicate request_size=4 [09:28:49]MH_SAM_APDU [09:28:49]CAPDU: 80 0D 03 02 [09:28:49]Write to MH i2c: E2 08 00 B1 05 80 0D 03 02 00 00 00 00 31 [09:28:49]Write i2c OK [09:28:49]MH_I2C_Read... [09:28:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:49]Read from MH i2c: E2 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 0B 00 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 0B 00 B1 05 00 9F BF E0 0D 81 D2 8B 5D 90 00 B8 [09:28:49]RAPDU: 9F BF E0 0D 81 D2 8B 5D 90 00 [09:28:49]wFMCommunicate OK [09:28:49]SAM_PROTO_SignData done [09:28:49]FM_MakeSignedData done [09:28:49]CreateOFDProtocolMessage [09:28:49]wFMCommunicate request_size=4 [09:28:49]MH_SAM_APDU [09:28:49]CAPDU: 80 11 00 00 [09:28:49]Write to MH i2c: E2 08 00 B2 05 80 11 00 00 00 00 00 00 31 [09:28:49]Write i2c OK [09:28:49]MH_I2C_Read... [09:28:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:49]Read from MH i2c: E2 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 17 00 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 17 00 B2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 80 [09:28:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:28:49]wFMCommunicate OK [09:28:49]CreateOFDProtocolMessage done [09:28:49]OFDSenderStorePacket 29774 [09:28:49]StoreOFDPacket docnum=29774 [09:28:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7D 5A 07 01 3A 8A 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 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 30 00 00 00 F4 03 04 00 D1 44 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 74 00 00 35 04 06 00 06 52 24 CC 21 1A 9F BF E0 0D 81 D2 8B 5D [09:28:49]CheckFolder [09:28:49]dirname=/storage/ofd_packets [09:28:49]CheckFolder done [09:28:49]ProducePacketName [09:28:49]name=ofd_packets/00029774 [09:28:49]NVStorageSaveData ofd_packets/00029774 [09:28:49]File name is /storage/ofd_packets/00029774 [09:28:49]Write 301 bytes [09:28:49]NVStorageSaveData done [09:28:49]OFDSenderStorePacket done [09:28:49]KKMCreateOFDPacket done [09:28:49]NVStorageSaveData kkm_last_timestamp [09:28:49]File name is /storage/kkm_last_timestamp [09:28:49]Write 4 bytes [09:28:49]NVStorageSaveData done [09:28:49]ExternCall_PrintAddStr [09:28:49]wPrintStart [09:28:49]Write to MH i2c: 01 00 00 B3 05 B8 [09:28:49]Write i2c OK [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: 01 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: 01 07 00 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: 01 07 00 B3 05 00 00 00 00 00 FF 0F CD [09:28:49]RasterBufferAndPrint [09:28:49]line Счет N : (1)348255 [09:28:49]line ИНН: 02508201610067 [09:28:49]line Контрольно-Кассовый Чек [09:28:49]line ПРОДАЖА [09:28:49]line ТРК (МРК, ГНК) : 13 [09:28:49]line Товар: 2710124130 [09:28:49]line Аи-92-К-5 [09:28:49]line 6.180 * 64.80 [09:28:49]line = 400.46 [09:28:49]line НДС 12% НСП 1% [09:28:49]line > о реализуемом товаре [09:28:49]line ОКРУГЛЕНИЕ: -0.46 [09:28:49]line ИТОГО: 400.00 [09:28:49]line Внесено: 400.00 [09:28:49]line СДАЧА: 0.00 [09:28:49]line НСП 1% : 3.54 [09:28:49]line НДС 12% : 42.53 [09:28:49]line Наличными: 400.00 [09:28:49]line Безнал.: 0.00 [09:28:49]line Место: АЗС № 108 "Партнер Нефть" [09:28:49]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:28:49]line СНО: Общий режим [09:28:49]line Чек 48 16.04.2024 09:28 [09:28:49]line Смена: 118 ФФД: 1.0 [09:28:49]line ЗНМ: 0300000027 [09:28:49]line РНМ: 0000138879044617 [09:28:49]line Версия ККМ: 001 [09:28:49]line ФМ: 0000000000963154 [09:28:49]line ФД: 29774 [09:28:49]line ФПД: 6949874442522 [09:28:49]line 1/tax-web-control/client/api/v1/ticket?date=20240416T092849&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29774&fm=6949874442522&tin=02508201610067®Number=0000138879044617&sum=40000 [09:28:50]OFD Sender: Processing packet 29774 [packets to send 8, broken 7] [09:28:50]ProducePacketName [09:28:50]name=ofd_packets/00029774 [09:28:50]OFD Sender: To server: pG, [09:28:50]CommunicateWithHost lk.salyk.kg:30040 [09:28:50]ConnectInit lk.salyk.kg [09:28:50]written 0, free lines is 4095 [09:28:50]Connected sock=10 [09:28:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7D 5A 07 01 3A 8A 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 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 30 00 00 00 F4 03 04 00 D1 44 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 74 00 00 35 04 06 00 06 52 24 CC 21 1A 9F BF E0 0D 81 D2 8B 5D [09:28:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2A 5B 47 00 1D 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 4E 74 00 00 F4 03 04 00 6F EF 1D 66 B6 04 01 00 00 E2 11 BD 53 4D F3 AC 92 [09:28:50]CommunicateWithHost err = 0 [09:28:50]CheckOFDResponse [09:28:50]1017 (14) - 77093643461234 [09:28:50]1041 (16) - 0000000000963154 [09:28:50]1040 (4) - 29774 [09:28:50]1012 (4) - 16.04.2024 03:24 [09:28:50]1206 (1) - 0 [09:28:50]OFD Sender: Remove packet 29774 [09:28:50]ProducePacketName [09:28:50]name=ofd_packets/00029774 [09:28:50]NVStorageDeleteData [09:28:50]Write to MH i2c: 01 00 00 DD 05 E2 [09:28:50]Write i2c OK [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: 01 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: 01 07 00 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: 01 07 00 DD 05 00 00 00 00 00 BB 0C B0 [09:28:50]RasterBufferAndPrint [09:28:50]line [09:28:50]line [09:28:50]line [09:28:50]line [09:28:50]line [09:28:50]written 0, free lines is 3265 [09:28:50]MH_Cut [09:28:50]Write to MH i2c: D1 01 00 E4 05 01 BB [09:28:50]Write i2c OK [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: D1 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: D1 01 00 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: D1 01 00 E4 05 00 BA [09:28:50]Write to MH i2c: 01 00 00 E5 05 EA [09:28:50]Write i2c OK [09:28:50]MH_I2C_Read... [09:28:51]OFD Sender: No OFD packet to send [09:28:51]*** Cut start [09:28:51]*** Partial cut [09:28:51]*** CUTSNS_PIN = 1 [09:28:51]*** CUTSNS_PIN = 0 [09:28:51]*** Brake cut motor [09:28:52]Read from MH i2c: 01 [09:28:52]MH_I2C_Read... [09:28:52]*** Stop cut motor [09:28:52]*** Cut end [09:28:52]Read from MH i2c: 01 07 00 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: 01 07 00 E5 05 00 00 00 00 00 FF 0F FF [09:28:52]process_action close_receipt done [09:28:52]requested_data is exist [09:28:52]produce_requested_data [09:28:52]requested_item fm.sn is exist - process it [09:28:52]wFMCommunicate request_size=4 [09:28:52]MH_SAM_APDU [09:28:52]CAPDU: 80 11 00 00 [09:28:52]Write to MH i2c: E2 08 00 E6 05 80 11 00 00 00 00 00 00 65 [09:28:52]Write i2c OK [09:28:52]MH_I2C_Read... [09:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:52]Read from MH i2c: E2 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 17 00 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 17 00 E6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B4 [09:28:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:28:52]wFMCommunicate OK [09:28:52]requested_item fd.num is exist - process it [09:28:52]SAM_PROTO_GetFieldsCounters [09:28:52]wFMCommunicate request_size=4 [09:28:52]MH_SAM_APDU [09:28:52]CAPDU: 80 13 00 00 [09:28:52]Write to MH i2c: E2 08 00 E7 05 80 13 00 00 00 00 00 00 68 [09:28:52]Write i2c OK [09:28:52]MH_I2C_Read... [09:28:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:52]Read from MH i2c: E2 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 62 00 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 62 00 E7 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4E 74 00 00 0E 04 04 00 76 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 6E [09:28:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4E 74 00 00 0E 04 04 00 76 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 [09:28:52]wFMCommunicate OK [09:28:52]SAM_PROTO_GetFieldsCounters done [09:28:52]requested_item shift.num is exist - process it [09:28:52]requested_item shift.opened is exist - process it [09:28:52]req_shift_opened [09:28:52]FM_GetShiftState [09:28:52]SAM_PROTO_GetShiftState [09:28:52]wFMCommunicate request_size=4 [09:28:52]MH_SAM_APDU [09:28:52]CAPDU: 80 13 01 00 [09:28:52]Write to MH i2c: E2 08 00 E8 05 80 13 01 00 00 00 00 00 6A [09:28:52]Write i2c OK [09:28:52]MH_I2C_Read... [09:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:52]Read from MH i2c: E2 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 0E 00 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 0E 00 E8 05 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 18 [09:28:52]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:28:52]wFMCommunicate OK [09:28:52]SAM_PROTO_GetShiftState done [09:28:52]FM_GetShiftState done [09:28:52]req_shift_opened done [09:28:52]requested_item shift.open_date is exist - process it [09:28:52]req_shift_open_date [09:28:52]req_shift_open_date done [09:28:52]produce_requested_data done [09:28:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29774,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [09:28:52]process_action_free close_receipt [09:28:52]json_value_free [09:28:52]json_value_free done [09:28:52]process_json_proto returns [09:28:52]Send response to host [09:28:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29774,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [09:28:52]free response buf [09:28:52]execute_script done [09:28:52]execute_script returns [09:28:52]free content buf [09:28:52]Sock 9.Close socket [09:28:52]Sock 9.Thread stoped [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:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:01]OFD Sender: No OFD packet to send [09:30:06]OFD Sender: No OFD packet to send [09:30:11]OFD Sender: No OFD packet to send [09:30:16]OFD Sender: No OFD packet to send [09:30:21]OFD Sender: No OFD packet to send [09:30:26]OFD Sender: No OFD packet to send [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:31]OFD Sender: No OFD packet to send [09:31:36]OFD Sender: No OFD packet to send [09:31:41]OFD Sender: No OFD packet to send [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]OFD Sender: No OFD packet to send [09:32:06]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:53]accept exits with 7 [09:32:53]New connection [09:32:53]New thread 3067133284 created [09:32:53]Thread 3067276644 joined [09:32:53]Waiting for new connection... [09:32:53] Sock 7.Parse request [09:32:53]Sock 7.Check first char [09:32:53]Sock 7.First char is OK [09:32:53]request: POST /json_proto HTTP/1.0 [09:32:53]Method: POST [09:32:53]URL: /json_proto [09:32:53]Method is POST - this is cgi request [09:32:53]url: /json_proto [09:32:53]query_string will be loaded in cgi processing [09:32:53]execute_cgi json_proto POST (null) [09:32:53]execute_cgi path=json_proto method=POST [09:32:53]POST find Content-Length [09:32:53]Host: 172.17.33.3:8080 [09:32:53]Content-Length: 678 [09:32:53]Content-Type: application/json [09:32:53] [09:32:53]POST finish read [09:32:53]Found Content-Length = 678 [09:32:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:53]execute_script... [09:32:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:53]POST & json_proto [09:32:53]process_json_proto [09:32:53]json parsed OK: [09:32:53]protocol is kg_v1.0 [09:32:53]action value=close_receipt [09:32:53]process_action close_receipt [09:32:53]cmd_close_receipt [09:32:53]MH_GetDate [09:32:53]Write to MH i2c: F0 00 00 E9 05 DD [09:32:53]Write i2c OK [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: F0 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: F0 09 00 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: F0 09 00 E9 05 00 C6 45 1E 66 23 5B 8F 65 E7 [09:32:53]GetLastDocTimeStamp 1713259729 [09:32:53]current date 1713259974 [09:32:53]FM_GetShiftState [09:32:53]SAM_PROTO_GetShiftState [09:32:53]wFMCommunicate request_size=4 [09:32:53]MH_SAM_APDU [09:32:53]CAPDU: 80 13 01 00 [09:32:53]Write to MH i2c: E2 08 00 EA 05 80 13 01 00 00 00 00 00 6C [09:32:53]Write i2c OK [09:32:53]MH_I2C_Read... [09:32:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:53]Read from MH i2c: E2 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 0E 00 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 0E 00 EA 05 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 1A [09:32:53]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:32:53]wFMCommunicate OK [09:32:53]SAM_PROTO_GetShiftState done [09:32:53]FM_GetShiftState done [09:32:53]opened in 1713226843 [09:32:53]opened+sec_in_day 1713313243 [09:32:53]quantity*price = 65059 [09:32:53]sum+1 = 65060 [09:32:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.09 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 49 16.04.2024 09:32 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29775 ФПД: 204982300614381 1/tax-web-control/client/api/v1/ticket?date=20240416T093254&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29775&fm=204982300614381&tin=02508201610067®Number=0000138879044617&sum=65000 [09:32:54]StoreToDocumentArchive [09:32:54]shift 118 fd 29775 [09:32:54]save to /storage/0118/doc_00029775 [09:32:54]save last doc name /storage/0118/doc_00029775 to /storage/kkm_last_doc_name [09:32:54]save OK [09:32:54]Clear old archive folders... [09:32:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:54]tlvbuf is 00166B40 [09:32:54]SAM_PROTO_ClearQueue [09:32:54]wFMCommunicate request_size=4 [09:32:54]MH_SAM_APDU [09:32:54]CAPDU: 80 09 00 00 [09:32:54]Write to MH i2c: E2 08 00 F7 05 80 09 00 00 00 00 00 00 6E [09:32:54]Write i2c OK [09:32:54]MH_I2C_Read... [09:32:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:54]Read from MH i2c: E2 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 03 00 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 03 00 F7 05 00 90 00 70 [09:32:54]RAPDU: 90 00 [09:32:54]wFMCommunicate OK [09:32:54]SAM_PROTO_ClearQueue done [09:32:54]KKMCreateOFDPacket [09:32:54]OFDProtocolAddRootSTLVToBuf [09:32:54]FM_MakeSignedData [09:32:54]FM_MakeSignedData [09:32:54]SAM_PROTO_SignData [09:32:54]wFMCommunicate request_size=4 [09:32:54]MH_SAM_APDU [09:32:54]CAPDU: 80 0D 01 02 [09:32:54]Write to MH i2c: E2 08 00 F8 05 80 0D 01 02 00 00 00 00 76 [09:32:54]Write i2c OK [09:32:54]MH_I2C_Read... [09:32:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:54]Read from MH i2c: E2 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 03 00 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 03 00 F8 05 00 90 00 71 [09:32:54]RAPDU: 90 00 [09:32:54]wFMCommunicate OK [09:32:54]wFMCommunicate request_size=255 [09:32:54]MH_SAM_APDU [09:32:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 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 C6 45 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 74 00 00 35 04 06 00 BA [09:32:54]Write to MH i2c: E2 02 01 F9 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 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 C6 45 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 74 00 00 35 04 06 00 BA 00 00 5C [09:32:54]Write i2c OK [09:32:54]MH_I2C_Read... [09:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:54]Read from MH i2c: E2 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 03 00 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 03 00 F9 05 00 90 00 72 [09:32:54]RAPDU: 90 00 [09:32:54]wFMCommunicate OK [09:32:54]wFMCommunicate request_size=10 [09:32:54]MH_SAM_APDU [09:32:54]CAPDU: 80 0D 02 02 05 6E 29 36 9E ED [09:32:54]Write to MH i2c: E2 0D 00 FA 05 80 0D 02 02 05 00 6E 29 36 9E ED 00 00 DB [09:32:54]Write i2c OK [09:32:54]MH_I2C_Read... [09:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:54]Read from MH i2c: E2 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 03 00 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 03 00 FA 05 00 90 00 73 [09:32:54]RAPDU: 90 00 [09:32:54]wFMCommunicate OK [09:32:54]wFMCommunicate request_size=4 [09:32:54]MH_SAM_APDU [09:32:54]CAPDU: 80 0D 03 02 [09:32:54]Write to MH i2c: E2 08 00 FB 05 80 0D 03 02 00 00 00 00 7B [09:32:54]Write i2c OK [09:32:54]MH_I2C_Read... [09:32:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:54]Read from MH i2c: E2 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 0B 00 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 0B 00 FB 05 00 B2 BD 13 95 2E DD A8 51 90 00 97 [09:32:54]RAPDU: B2 BD 13 95 2E DD A8 51 90 00 [09:32:54]wFMCommunicate OK [09:32:54]SAM_PROTO_SignData done [09:32:54]FM_MakeSignedData done [09:32:54]CreateOFDProtocolMessage [09:32:54]wFMCommunicate request_size=4 [09:32:54]MH_SAM_APDU [09:32:54]CAPDU: 80 11 00 00 [09:32:54]Write to MH i2c: E2 08 00 FC 05 80 11 00 00 00 00 00 00 7B [09:32:54]Write i2c OK [09:32:54]MH_I2C_Read... [09:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:54]Read from MH i2c: E2 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 17 00 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 17 00 FC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CA [09:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:32:54]wFMCommunicate OK [09:32:54]CreateOFDProtocolMessage done [09:32:54]OFDSenderStorePacket 29775 [09:32:54]StoreOFDPacket docnum=29775 [09:32:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E4 11 07 01 F1 1B 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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 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 C6 45 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 74 00 00 35 04 06 00 BA 6E 29 36 9E ED B2 BD 13 95 2E DD A8 51 [09:32:54]CheckFolder [09:32:54]dirname=/storage/ofd_packets [09:32:54]CheckFolder done [09:32:54]ProducePacketName [09:32:54]name=ofd_packets/00029775 [09:32:54]NVStorageSaveData ofd_packets/00029775 [09:32:54]File name is /storage/ofd_packets/00029775 [09:32:54]Write 301 bytes [09:32:54]NVStorageSaveData done [09:32:54]OFDSenderStorePacket done [09:32:54]KKMCreateOFDPacket done [09:32:54]NVStorageSaveData kkm_last_timestamp [09:32:54]File name is /storage/kkm_last_timestamp [09:32:54]Write 4 bytes [09:32:54]NVStorageSaveData done [09:32:54]ExternCall_PrintAddStr [09:32:54]wPrintStart [09:32:54]Write to MH i2c: 01 00 00 FD 05 02 [09:32:54]Write i2c OK [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: 01 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: 01 07 00 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: 01 07 00 FD 05 00 00 00 00 00 FF 0F 17 [09:32:54]RasterBufferAndPrint [09:32:54]line Счет N : (1)348256 [09:32:54]line ИНН: 02508201610067 [09:32:54]line Контрольно-Кассовый Чек [09:32:54]line ПРОДАЖА [09:32:54]line ТРК (МРК, ГНК) : 13 [09:32:54]line Товар: 2710124130 [09:32:54]line Аи-92-К-5 [09:32:54]line 10.040 * 64.80 [09:32:54]line = 650.59 [09:32:54]line НДС 12% НСП 1% [09:32:54]line > о реализуемом товаре [09:32:54]line ОКРУГЛЕНИЕ: -0.59 [09:32:54]line ИТОГО: 650.00 [09:32:54]line Внесено: 650.00 [09:32:54]line СДАЧА: 0.00 [09:32:54]line НСП 1% : 5.76 [09:32:54]line НДС 12% : 69.09 [09:32:54]line Наличными: 650.00 [09:32:54]line Безнал.: 0.00 [09:32:54]line Место: АЗС № 108 "Партнер Нефть" [09:32:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:32:54]line СНО: Общий режим [09:32:54]line Чек 49 16.04.2024 09:32 [09:32:54]line Смена: 118 ФФД: 1.0 [09:32:54]line ЗНМ: 0300000027 [09:32:54]line РНМ: 0000138879044617 [09:32:54]line Версия ККМ: 001 [09:32:54]line ФМ: 0000000000963154 [09:32:54]line ФД: 29775 [09:32:55]line ФПД: 204982300614381 [09:32:55]line 1/tax-web-control/client/api/v1/ticket?date=20240416T093254&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29775&fm=204982300614381&tin=02508201610067®Number=0000138879044617&sum=65000 [09:32:55]OFD Sender: Processing packet 29775 [packets to send 8, broken 7] [09:32:55]ProducePacketName [09:32:55]name=ofd_packets/00029775 [09:32:55]OFD Sender: To server: pG, [09:32:55]CommunicateWithHost lk.salyk.kg:30040 [09:32:55]ConnectInit lk.salyk.kg [09:32:55]written 0, free lines is 4095 [09:32:55]Connected sock=10 [09:32:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E4 11 07 01 F1 1B 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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 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 C6 45 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 74 00 00 35 04 06 00 BA 6E 29 36 9E ED B2 BD 13 95 2E DD A8 51 [09:32:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 13 61 47 00 E7 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 36 33 31 35 34 10 04 04 00 4F 74 00 00 F4 03 04 00 64 F0 1D 66 B6 04 01 00 00 61 32 2F 5C 45 D8 8A F5 [09:32:55]CommunicateWithHost err = 0 [09:32:55]CheckOFDResponse [09:32:55]1017 (14) - 77093643461234 [09:32:55]1041 (16) - 0000000000963154 [09:32:55]1040 (4) - 29775 [09:32:55]1012 (4) - 16.04.2024 03:28 [09:32:55]1206 (1) - 0 [09:32:55]OFD Sender: Remove packet 29775 [09:32:55]ProducePacketName [09:32:55]name=ofd_packets/00029775 [09:32:55]NVStorageDeleteData [09:32:55]Write to MH i2c: 01 00 00 27 06 2D [09:32:55]Write i2c OK [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: 01 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: 01 07 00 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: 01 07 00 27 06 00 00 00 00 00 C9 0C 09 [09:32:55]RasterBufferAndPrint [09:32:55]line [09:32:55]line [09:32:55]line [09:32:55]line [09:32:55]line [09:32:55]written 0, free lines is 3277 [09:32:55]MH_Cut [09:32:55]Write to MH i2c: D1 01 00 2E 06 01 06 [09:32:55]Write i2c OK [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: D1 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: D1 01 00 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: D1 01 00 2E 06 00 05 [09:32:55]Write to MH i2c: 01 00 00 2F 06 35 [09:32:55]Write i2c OK [09:32:55]MH_I2C_Read... [09:32:56]OFD Sender: No OFD packet to send [09:32:56]*** Cut start [09:32:56]*** Partial cut [09:32:56]*** CUTSNS_PIN = 1 [09:32:56]*** CUTSNS_PIN = 0 [09:32:56]*** Brake cut motor [09:32:57]Read from MH i2c: 01 [09:32:57]MH_I2C_Read... [09:32:57]*** Stop cut motor [09:32:57]*** Cut end [09:32:57]Read from MH i2c: 01 07 00 [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: 01 07 00 2F 06 00 00 00 00 00 FF 0F 4A [09:32:57]process_action close_receipt done [09:32:57]requested_data is exist [09:32:57]produce_requested_data [09:32:57]requested_item fm.sn is exist - process it [09:32:57]wFMCommunicate request_size=4 [09:32:57]MH_SAM_APDU [09:32:57]CAPDU: 80 11 00 00 [09:32:57]Write to MH i2c: E2 08 00 30 06 80 11 00 00 00 00 00 00 B0 [09:32:57]Write i2c OK [09:32:57]MH_I2C_Read... [09:32:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:57]Read from MH i2c: E2 [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: E2 17 00 [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: E2 17 00 30 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FF [09:32:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:32:57]wFMCommunicate OK [09:32:57]requested_item fd.num is exist - process it [09:32:57]SAM_PROTO_GetFieldsCounters [09:32:57]wFMCommunicate request_size=4 [09:32:57]MH_SAM_APDU [09:32:57]CAPDU: 80 13 00 00 [09:32:57]Write to MH i2c: E2 08 00 31 06 80 13 00 00 00 00 00 00 B3 [09:32:57]Write i2c OK [09:32:57]MH_I2C_Read... [09:32:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:57]Read from MH i2c: E2 [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: E2 62 00 [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: E2 62 00 31 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4F 74 00 00 0E 04 04 00 76 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 BD [09:32:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4F 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:57]wFMCommunicate OK [09:32:57]SAM_PROTO_GetFieldsCounters done [09:32:57]requested_item shift.num is exist - process it [09:32:57]requested_item shift.opened is exist - process it [09:32:57]req_shift_opened [09:32:57]FM_GetShiftState [09:32:57]SAM_PROTO_GetShiftState [09:32:57]wFMCommunicate request_size=4 [09:32:57]MH_SAM_APDU [09:32:57]CAPDU: 80 13 01 00 [09:32:57]Write to MH i2c: E2 08 00 32 06 80 13 01 00 00 00 00 00 B5 [09:32:57]Write i2c OK [09:32:57]MH_I2C_Read... [09:32:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:57]Read from MH i2c: E2 [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: E2 0E 00 [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: E2 0E 00 32 06 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 63 [09:32:57]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:32:57]wFMCommunicate OK [09:32:57]SAM_PROTO_GetShiftState done [09:32:57]FM_GetShiftState done [09:32:57]req_shift_opened done [09:32:57]requested_item shift.open_date is exist - process it [09:32:57]req_shift_open_date [09:32:57]req_shift_open_date done [09:32:57]produce_requested_data done [09:32:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29775,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [09:32:57]process_action_free close_receipt [09:32:57]json_value_free [09:32:57]json_value_free done [09:32:57]process_json_proto returns [09:32:57]Send response to host [09:32:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29775,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [09:32:57]free response buf [09:32:57]execute_script done [09:32:57]execute_script returns [09:32:57]free content buf [09:32:57]Sock 7.Close socket [09:32:57]Sock 7.Thread stoped [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:13]accept exits with 9 [09:38:13]New connection [09:38:13]New thread 3067276644 created [09:38:13]Thread 3067133284 joined [09:38:13]Waiting for new connection... [09:38:13] Sock 9.Parse request [09:38:13]Sock 9.Check first char [09:38:13]Sock 9.First char is OK [09:38:13]request: POST /json_proto HTTP/1.0 [09:38:13]Method: POST [09:38:13]URL: /json_proto [09:38:13]Method is POST - this is cgi request [09:38:13]url: /json_proto [09:38:13]query_string will be loaded in cgi processing [09:38:13]execute_cgi json_proto POST (null) [09:38:13]execute_cgi path=json_proto method=POST [09:38:13]POST find Content-Length [09:38:13]Host: 172.17.33.3:8080 [09:38:13]Content-Length: 801 [09:38:13]Content-Type: application/json [09:38:13] [09:38:13]POST finish read [09:38:13]Found Content-Length = 801 [09:38:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:13]execute_script... [09:38: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 : (1)348257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:13]POST & json_proto [09:38:13]process_json_proto [09:38:13]json parsed OK: [09:38:13]protocol is kg_v1.0 [09:38:13]action value=close_receipt [09:38:13]process_action close_receipt [09:38:13]cmd_close_receipt [09:38:13]MH_GetDate [09:38:13]Write to MH i2c: F0 00 00 33 06 28 [09:38:13]Write i2c OK [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: F0 [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: F0 09 00 [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: F0 09 00 33 06 00 06 47 1E 66 23 5B 8F 65 74 [09:38:13]GetLastDocTimeStamp 1713259974 [09:38:13]current date 1713260294 [09:38:13]FM_GetShiftState [09:38:13]SAM_PROTO_GetShiftState [09:38:13]wFMCommunicate request_size=4 [09:38:13]MH_SAM_APDU [09:38:13]CAPDU: 80 13 01 00 [09:38:13]Write to MH i2c: E2 08 00 34 06 80 13 01 00 00 00 00 00 B7 [09:38:13]Write i2c OK [09:38:13]MH_I2C_Read... [09:38:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:13]Read from MH i2c: E2 [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: E2 0E 00 [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: E2 0E 00 34 06 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 65 [09:38:13]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:38:13]wFMCommunicate OK [09:38:13]SAM_PROTO_GetShiftState done [09:38:13]FM_GetShiftState done [09:38:13]opened in 1713226843 [09:38:13]opened+sec_in_day 1713313243 [09:38:13]quantity*price = 100016 [09:38:13]sum+1 = 100017 [09:38:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 50 16.04.2024 09:38 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29776 ФПД: 111373175866192 1/tax-web-control/client/api/v1/ticket?date=20240416T093814&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29776&fm=111373175866192&tin=02508201610067®Number=0000138879044617&sum=100016 [09:38:14]StoreToDocumentArchive [09:38:14]shift 118 fd 29776 [09:38:14]save to /storage/0118/doc_00029776 [09:38:14]save last doc name /storage/0118/doc_00029776 to /storage/kkm_last_doc_name [09:38:14]save OK [09:38:14]Clear old archive folders... [09:38:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:38:14]tlvbuf is 001668B0 [09:38:14]SAM_PROTO_ClearQueue [09:38:14]wFMCommunicate request_size=4 [09:38:14]MH_SAM_APDU [09:38:14]CAPDU: 80 09 00 00 [09:38:14]Write to MH i2c: E2 08 00 41 06 80 09 00 00 00 00 00 00 B9 [09:38:14]Write i2c OK [09:38:14]MH_I2C_Read... [09:38:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:14]Read from MH i2c: E2 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 03 00 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 03 00 41 06 00 90 00 BB [09:38:14]RAPDU: 90 00 [09:38:14]wFMCommunicate OK [09:38:14]SAM_PROTO_ClearQueue done [09:38:14]KKMCreateOFDPacket [09:38:14]OFDProtocolAddRootSTLVToBuf [09:38:14]FM_MakeSignedData [09:38:14]FM_MakeSignedData [09:38:14]SAM_PROTO_SignData [09:38:14]wFMCommunicate request_size=4 [09:38:14]MH_SAM_APDU [09:38:14]CAPDU: 80 0D 01 02 [09:38:14]Write to MH i2c: E2 08 00 42 06 80 0D 01 02 00 00 00 00 C1 [09:38:14]Write i2c OK [09:38:14]MH_I2C_Read... [09:38:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:14]Read from MH i2c: E2 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 03 00 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 03 00 42 06 00 90 00 BC [09:38:14]RAPDU: 90 00 [09:38:14]wFMCommunicate OK [09:38:14]wFMCommunicate request_size=255 [09:38:14]MH_SAM_APDU [09:38:14]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 06 47 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 74 00 00 35 04 06 00 [09:38:14]Write to MH i2c: E2 02 01 43 06 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 06 47 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 74 00 00 35 04 06 00 00 00 FA [09:38:14]Write i2c OK [09:38:14]MH_I2C_Read... [09:38:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:14]Read from MH i2c: E2 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 03 00 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 03 00 43 06 00 90 00 BD [09:38:14]RAPDU: 90 00 [09:38:14]wFMCommunicate OK [09:38:14]wFMCommunicate request_size=11 [09:38:14]MH_SAM_APDU [09:38:14]CAPDU: 80 0D 02 02 06 65 4B 16 95 C3 50 [09:38:14]Write to MH i2c: E2 0E 00 44 06 80 0D 02 02 06 00 65 4B 16 95 C3 50 00 00 3E [09:38:14]Write i2c OK [09:38:14]MH_I2C_Read... [09:38:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:14]Read from MH i2c: E2 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 03 00 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 03 00 44 06 00 90 00 BE [09:38:14]RAPDU: 90 00 [09:38:14]wFMCommunicate OK [09:38:14]wFMCommunicate request_size=4 [09:38:14]MH_SAM_APDU [09:38:14]CAPDU: 80 0D 03 02 [09:38:14]Write to MH i2c: E2 08 00 45 06 80 0D 03 02 00 00 00 00 C6 [09:38:14]Write i2c OK [09:38:14]MH_I2C_Read... [09:38:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:14]Read from MH i2c: E2 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 0B 00 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 0B 00 45 06 00 9B A4 C3 8F F0 6F D7 15 90 00 A3 [09:38:14]RAPDU: 9B A4 C3 8F F0 6F D7 15 90 00 [09:38:14]wFMCommunicate OK [09:38:14]SAM_PROTO_SignData done [09:38:14]FM_MakeSignedData done [09:38:14]CreateOFDProtocolMessage [09:38:14]wFMCommunicate request_size=4 [09:38:14]MH_SAM_APDU [09:38:14]CAPDU: 80 11 00 00 [09:38:14]Write to MH i2c: E2 08 00 46 06 80 11 00 00 00 00 00 00 C6 [09:38:14]Write i2c OK [09:38:14]MH_I2C_Read... [09:38:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:14]Read from MH i2c: E2 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 17 00 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: E2 17 00 46 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 15 [09:38:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:38:14]wFMCommunicate OK [09:38:14]CreateOFDProtocolMessage done [09:38:14]OFDSenderStorePacket 29776 [09:38:14]StoreOFDPacket docnum=29776 [09:38:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 7A 17 08 01 5E 73 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 06 47 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 74 00 00 35 04 06 00 65 4B 16 95 C3 50 9B A4 C3 8F F0 6F D7 15 [09:38:14]CheckFolder [09:38:14]dirname=/storage/ofd_packets [09:38:14]CheckFolder done [09:38:14]ProducePacketName [09:38:14]name=ofd_packets/00029776 [09:38:14]NVStorageSaveData ofd_packets/00029776 [09:38:14]File name is /storage/ofd_packets/00029776 [09:38:14]Write 302 bytes [09:38:14]NVStorageSaveData done [09:38:14]OFDSenderStorePacket done [09:38:14]KKMCreateOFDPacket done [09:38:14]NVStorageSaveData kkm_last_timestamp [09:38:14]File name is /storage/kkm_last_timestamp [09:38:14]Write 4 bytes [09:38:14]NVStorageSaveData done [09:38:14]ExternCall_PrintAddStr [09:38:14]wPrintStart [09:38:14]Write to MH i2c: 01 00 00 47 06 4D [09:38:14]Write i2c OK [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: 01 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: 01 07 00 [09:38:14]MH_I2C_Read... [09:38:14]Read from MH i2c: 01 07 00 47 06 00 00 00 00 00 FF 0F 62 [09:38:14]RasterBufferAndPrint [09:38:14]line Счет N : (1)348257 [09:38:14]line ИНН: 02508201610067 [09:38:14]line Контрольно-Кассовый Чек [09:38:14]line ПРОДАЖА [09:38:14]line ТРК (МРК, ГНК) : 12 [09:38:14]line Товар: 2710124130 [09:38:14]line SUPER-92-К-5 [09:38:14]line 15.200 * 65.80 [09:38:14]line = 1000.16 [09:38:14]line НДС 12% НСП 1% [09:38:14]line > о реализуемом товаре [09:38:14]line ИТОГО: 1000.16 [09:38:14]line НСП 1% : 8.85 [09:38:14]line НДС 12% : 106.21 [09:38:14]line Наличными: 0.00 [09:38:14]line Безнал.: 1000.16 [09:38:14]line Место: АЗС № 108 "Партнер Нефть" [09:38:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:38:14]line СНО: Общий режим [09:38:14]line Чек 50 16.04.2024 09:38 [09:38:14]line Смена: 118 ФФД: 1.0 [09:38:14]line ЗНМ: 0300000027 [09:38:14]line РНМ: 0000138879044617 [09:38:15]line Версия ККМ: 001 [09:38:15]line Платежная система: О! деньги [09:38:15]line ФМ: 0000000000963154 [09:38:15]line ФД: 29776 [09:38:15]line ФПД: 111373175866192 [09:38:15]line 1/tax-web-control/client/api/v1/ticket?date=20240416T093814&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29776&fm=111373175866192&tin=02508201610067®Number=0000138879044617&sum=100016 [09:38:15]OFD Sender: Processing packet 29776 [packets to send 8, broken 7] [09:38:15]ProducePacketName [09:38:15]name=ofd_packets/00029776 [09:38:15]OFD Sender: To server: pG, [09:38:15]CommunicateWithHost lk.salyk.kg:30040 [09:38:15]ConnectInit lk.salyk.kg [09:38:15]written 0, free lines is 4095 [09:38:15]Connected sock=10 [09:38:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 7A 17 08 01 5E 73 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 06 47 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 74 00 00 35 04 06 00 65 4B 16 95 C3 50 9B A4 C3 8F F0 6F D7 15 [09:38:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5F AF 47 00 28 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 50 74 00 00 F4 03 04 00 A4 F1 1D 66 B6 04 01 00 00 77 06 8B 87 D3 25 B3 3D [09:38:15]CommunicateWithHost err = 0 [09:38:15]CheckOFDResponse [09:38:15]1017 (14) - 77093643461234 [09:38:15]1041 (16) - 0000000000963154 [09:38:15]1040 (4) - 29776 [09:38:15]1012 (4) - 16.04.2024 03:33 [09:38:15]1206 (1) - 0 [09:38:15]OFD Sender: Remove packet 29776 [09:38:15]ProducePacketName [09:38:15]name=ofd_packets/00029776 [09:38:15]NVStorageDeleteData [09:38:15]Write to MH i2c: 01 00 00 70 06 76 [09:38:15]Write i2c OK [09:38:15]MH_I2C_Read... [09:38:15]Read from MH i2c: 01 [09:38:15]MH_I2C_Read... [09:38:15]Read from MH i2c: 01 07 00 [09:38:15]MH_I2C_Read... [09:38:15]Read from MH i2c: 01 07 00 70 06 00 00 00 00 00 DB 0C 64 [09:38:15]RasterBufferAndPrint [09:38:15]line [09:38:15]line [09:38:15]line [09:38:15]line [09:38:15]line [09:38:15]written 0, free lines is 3296 [09:38:15]MH_Cut [09:38:15]Write to MH i2c: D1 01 00 77 06 01 4F [09:38:15]Write i2c OK [09:38:15]MH_I2C_Read... [09:38:15]Read from MH i2c: D1 [09:38:15]MH_I2C_Read... [09:38:15]Read from MH i2c: D1 01 00 [09:38:15]MH_I2C_Read... [09:38:15]Read from MH i2c: D1 01 00 77 06 00 4E [09:38:15]Write to MH i2c: 01 00 00 78 06 7E [09:38:15]Write i2c OK [09:38:15]MH_I2C_Read... [09:38:16]OFD Sender: No OFD packet to send [09:38:16]*** Cut start [09:38:16]*** Partial cut [09:38:16]*** CUTSNS_PIN = 1 [09:38:16]*** CUTSNS_PIN = 0 [09:38:16]*** Brake cut motor [09:38:17]Read from MH i2c: 01 [09:38:17]MH_I2C_Read... [09:38:17]*** Stop cut motor [09:38:17]*** Cut end [09:38:17]Read from MH i2c: 01 07 00 [09:38:17]MH_I2C_Read... [09:38:17]Read from MH i2c: 01 07 00 78 06 00 00 00 00 00 FF 0F 93 [09:38:17]process_action close_receipt done [09:38:17]requested_data is exist [09:38:17]produce_requested_data [09:38:17]requested_item fm.sn is exist - process it [09:38:17]wFMCommunicate request_size=4 [09:38:17]MH_SAM_APDU [09:38:17]CAPDU: 80 11 00 00 [09:38:17]Write to MH i2c: E2 08 00 79 06 80 11 00 00 00 00 00 00 F9 [09:38:17]Write i2c OK [09:38:17]MH_I2C_Read... [09:38:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:17]Read from MH i2c: E2 [09:38:17]MH_I2C_Read... [09:38:17]Read from MH i2c: E2 17 00 [09:38:17]MH_I2C_Read... [09:38:17]Read from MH i2c: E2 17 00 79 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 48 [09:38:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:38:17]wFMCommunicate OK [09:38:17]requested_item fd.num is exist - process it [09:38:17]SAM_PROTO_GetFieldsCounters [09:38:17]wFMCommunicate request_size=4 [09:38:17]MH_SAM_APDU [09:38:17]CAPDU: 80 13 00 00 [09:38:17]Write to MH i2c: E2 08 00 7A 06 80 13 00 00 00 00 00 00 FC [09:38:17]Write i2c OK [09:38:17]MH_I2C_Read... [09:38:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:17]Read from MH i2c: E2 [09:38:17]MH_I2C_Read... [09:38:17]Read from MH i2c: E2 62 00 [09:38:17]MH_I2C_Read... [09:38:17]Read from MH i2c: E2 62 00 7A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 50 74 00 00 0E 04 04 00 76 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 0A [09:38:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 50 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:38:17]wFMCommunicate OK [09:38:17]SAM_PROTO_GetFieldsCounters done [09:38:17]requested_item shift.num is exist - process it [09:38:17]requested_item shift.opened is exist - process it [09:38:17]req_shift_opened [09:38:17]FM_GetShiftState [09:38:17]SAM_PROTO_GetShiftState [09:38:17]wFMCommunicate request_size=4 [09:38:17]MH_SAM_APDU [09:38:17]CAPDU: 80 13 01 00 [09:38:17]Write to MH i2c: E2 08 00 7B 06 80 13 01 00 00 00 00 00 FE [09:38:17]Write i2c OK [09:38:17]MH_I2C_Read... [09:38:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:17]Read from MH i2c: E2 [09:38:17]MH_I2C_Read... [09:38:17]Read from MH i2c: E2 0E 00 [09:38:17]MH_I2C_Read... [09:38:17]Read from MH i2c: E2 0E 00 7B 06 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 AC [09:38:17]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:38:17]wFMCommunicate OK [09:38:17]SAM_PROTO_GetShiftState done [09:38:17]FM_GetShiftState done [09:38:17]req_shift_opened done [09:38:17]requested_item shift.open_date is exist - process it [09:38:17]req_shift_open_date [09:38:17]req_shift_open_date done [09:38:17]produce_requested_data done [09:38:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29776,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [09:38:17]process_action_free close_receipt [09:38:17]json_value_free [09:38:17]json_value_free done [09:38:17]process_json_proto returns [09:38:17]Send response to host [09:38:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29776,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [09:38:17]free response buf [09:38:17]execute_script done [09:38:17]execute_script returns [09:38:17]free content buf [09:38:17]Sock 9.Close socket [09:38:17]Sock 9.Thread stoped [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:36]OFD Sender: No OFD packet to send [09:47:41]OFD Sender: No OFD packet to send [09:47:46]OFD Sender: No OFD packet to send [09:47:51]OFD Sender: No OFD packet to send [09:47:56]OFD Sender: No OFD packet to send [09:48:01]OFD Sender: No OFD packet to send [09:48:06]OFD Sender: No OFD packet to send [09:48:11]OFD Sender: No OFD packet to send [09:48:16]OFD Sender: No OFD packet to send [09:48:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]OFD Sender: No OFD packet to send [09:48:46]OFD Sender: No OFD packet to send [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:06]OFD Sender: No OFD packet to send [09:49:11]OFD Sender: No OFD packet to send [09:49:16]OFD Sender: No OFD packet to send [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:32]accept exits with 7 [09:53:32]New connection [09:53:32]New thread 3067133284 created [09:53:32] Sock 7.Parse request [09:53:32]Thread 3067276644 joined [09:53:32]Sock 7.Check first char [09:53:32]Waiting for new connection... [09:53:32]Sock 7.First char is OK [09:53:32]request: POST /json_proto HTTP/1.0 [09:53:32]Method: POST [09:53:32]URL: /json_proto [09:53:32]Method is POST - this is cgi request [09:53:32]url: /json_proto [09:53:32]query_string will be loaded in cgi processing [09:53:32]execute_cgi json_proto POST (null) [09:53:32]execute_cgi path=json_proto method=POST [09:53:32]POST find Content-Length [09:53:32]Host: 172.17.33.3:8080 [09:53:32]Content-Length: 678 [09:53:32]Content-Type: application/json [09:53:32] [09:53:32]POST finish read [09:53:32]Found Content-Length = 678 [09:53:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:32]execute_script... [09:53:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:32]POST & json_proto [09:53:32]process_json_proto [09:53:32]json parsed OK: [09:53:32]protocol is kg_v1.0 [09:53:32]action value=close_receipt [09:53:32]process_action close_receipt [09:53:32]cmd_close_receipt [09:53:32]MH_GetDate [09:53:32]Write to MH i2c: F0 00 00 7C 06 71 [09:53:32]Write i2c OK [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: F0 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: F0 09 00 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: F0 09 00 7C 06 00 9D 4A 1E 66 23 5B 8F 65 57 [09:53:32]GetLastDocTimeStamp 1713260294 [09:53:32]current date 1713261213 [09:53:32]FM_GetShiftState [09:53:32]SAM_PROTO_GetShiftState [09:53:32]wFMCommunicate request_size=4 [09:53:32]MH_SAM_APDU [09:53:32]CAPDU: 80 13 01 00 [09:53:32]Write to MH i2c: E2 08 00 7D 06 80 13 01 00 00 00 00 00 00 [09:53:32]Write i2c OK [09:53:32]MH_I2C_Read... [09:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:32]Read from MH i2c: E2 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 0E 00 [09:53:32]MH_I2C_Read... [09:53:32]Read from MH i2c: E2 0E 00 7D 06 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 AE [09:53:32]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:53:32]wFMCommunicate OK [09:53:32]SAM_PROTO_GetShiftState done [09:53:32]FM_GetShiftState done [09:53:32]opened in 1713226843 [09:53:32]opened+sec_in_day 1713313243 [09:53:32]quantity*price = 65059 [09:53:32]sum+1 = 65060 [09:53:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.09 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 51 16.04.2024 09:53 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29777 ФПД: 13843914529861 1/tax-web-control/client/api/v1/ticket?date=20240416T095333&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29777&fm=13843914529861&tin=02508201610067®Number=0000138879044617&sum=65000 [09:53:33]StoreToDocumentArchive [09:53:33]shift 118 fd 29777 [09:53:33]save to /storage/0118/doc_00029777 [09:53:33]save last doc name /storage/0118/doc_00029777 to /storage/kkm_last_doc_name [09:53:33]save OK [09:53:33]Clear old archive folders... [09:53:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:33]tlvbuf is 00179FA0 [09:53:33]SAM_PROTO_ClearQueue [09:53:33]wFMCommunicate request_size=4 [09:53:33]MH_SAM_APDU [09:53:33]CAPDU: 80 09 00 00 [09:53:33]Write to MH i2c: E2 08 00 8A 06 80 09 00 00 00 00 00 00 02 [09:53:33]Write i2c OK [09:53:33]MH_I2C_Read... [09:53:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:33]Read from MH i2c: E2 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 03 00 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 03 00 8A 06 00 90 00 04 [09:53:33]RAPDU: 90 00 [09:53:33]wFMCommunicate OK [09:53:33]SAM_PROTO_ClearQueue done [09:53:33]KKMCreateOFDPacket [09:53:33]OFDProtocolAddRootSTLVToBuf [09:53:33]FM_MakeSignedData [09:53:33]FM_MakeSignedData [09:53:33]SAM_PROTO_SignData [09:53:33]wFMCommunicate request_size=4 [09:53:33]MH_SAM_APDU [09:53:33]CAPDU: 80 0D 01 02 [09:53:33]Write to MH i2c: E2 08 00 8B 06 80 0D 01 02 00 00 00 00 0A [09:53:33]Write i2c OK [09:53:33]MH_I2C_Read... [09:53:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:33]Read from MH i2c: E2 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 03 00 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 03 00 8B 06 00 90 00 05 [09:53:33]RAPDU: 90 00 [09:53:33]wFMCommunicate OK [09:53:33]wFMCommunicate request_size=255 [09:53:33]MH_SAM_APDU [09:53:33]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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 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 9D 4A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 74 00 00 35 04 06 00 0C [09:53:33]Write to MH i2c: E2 02 01 8C 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 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 9D 4A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 74 00 00 35 04 06 00 0C 00 00 22 [09:53:33]Write i2c OK [09:53:33]MH_I2C_Read... [09:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:33]Read from MH i2c: E2 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 03 00 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 03 00 8C 06 00 90 00 06 [09:53:33]RAPDU: 90 00 [09:53:33]wFMCommunicate OK [09:53:33]wFMCommunicate request_size=10 [09:53:33]MH_SAM_APDU [09:53:33]CAPDU: 80 0D 02 02 05 97 49 9B 9C 45 [09:53:33]Write to MH i2c: E2 0D 00 8D 06 80 0D 02 02 05 00 97 49 9B 9C 45 00 00 73 [09:53:33]Write i2c OK [09:53:33]MH_I2C_Read... [09:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:33]Read from MH i2c: E2 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 03 00 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 03 00 8D 06 00 90 00 07 [09:53:33]RAPDU: 90 00 [09:53:33]wFMCommunicate OK [09:53:33]wFMCommunicate request_size=4 [09:53:33]MH_SAM_APDU [09:53:33]CAPDU: 80 0D 03 02 [09:53:33]Write to MH i2c: E2 08 00 8E 06 80 0D 03 02 00 00 00 00 0F [09:53:33]Write i2c OK [09:53:33]MH_I2C_Read... [09:53:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:33]Read from MH i2c: E2 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 0B 00 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 0B 00 8E 06 00 D2 BA 81 23 8A 50 5B 9F 90 00 14 [09:53:33]RAPDU: D2 BA 81 23 8A 50 5B 9F 90 00 [09:53:33]wFMCommunicate OK [09:53:33]SAM_PROTO_SignData done [09:53:33]FM_MakeSignedData done [09:53:33]CreateOFDProtocolMessage [09:53:33]wFMCommunicate request_size=4 [09:53:33]MH_SAM_APDU [09:53:33]CAPDU: 80 11 00 00 [09:53:33]Write to MH i2c: E2 08 00 8F 06 80 11 00 00 00 00 00 00 0F [09:53:33]Write i2c OK [09:53:33]MH_I2C_Read... [09:53:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:33]Read from MH i2c: E2 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 17 00 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 17 00 8F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5E [09:53:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:53:33]wFMCommunicate OK [09:53:33]CreateOFDProtocolMessage done [09:53:33]OFDSenderStorePacket 29777 [09:53:33]StoreOFDPacket docnum=29777 [09:53:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8B 3A 07 01 9E 64 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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 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 9D 4A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 74 00 00 35 04 06 00 0C 97 49 9B 9C 45 D2 BA 81 23 8A 50 5B 9F [09:53:33]CheckFolder [09:53:33]dirname=/storage/ofd_packets [09:53:33]CheckFolder done [09:53:33]ProducePacketName [09:53:33]name=ofd_packets/00029777 [09:53:33]NVStorageSaveData ofd_packets/00029777 [09:53:33]File name is /storage/ofd_packets/00029777 [09:53:33]Write 301 bytes [09:53:33]NVStorageSaveData done [09:53:33]OFDSenderStorePacket done [09:53:33]KKMCreateOFDPacket done [09:53:33]NVStorageSaveData kkm_last_timestamp [09:53:33]File name is /storage/kkm_last_timestamp [09:53:33]Write 4 bytes [09:53:33]NVStorageSaveData done [09:53:33]ExternCall_PrintAddStr [09:53:33]wPrintStart [09:53:33]Write to MH i2c: 01 00 00 90 06 96 [09:53:33]Write i2c OK [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: 01 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: 01 07 00 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: 01 07 00 90 06 00 00 00 00 00 FF 0F AB [09:53:33]RasterBufferAndPrint [09:53:33]line Счет N : (1)348258 [09:53:33]line ИНН: 02508201610067 [09:53:33]line Контрольно-Кассовый Чек [09:53:33]line ПРОДАЖА [09:53:33]line ТРК (МРК, ГНК) : 23 [09:53:33]line Товар: 2710124130 [09:53:33]line Аи-92-К-5 [09:53:33]line 10.040 * 64.80 [09:53:33]line = 650.59 [09:53:33]line НДС 12% НСП 1% [09:53:33]line > о реализуемом товаре [09:53:33]line ОКРУГЛЕНИЕ: -0.59 [09:53:33]line ИТОГО: 650.00 [09:53:33]line Внесено: 650.00 [09:53:33]line СДАЧА: 0.00 [09:53:33]line НСП 1% : 5.76 [09:53:33]line НДС 12% : 69.09 [09:53:33]line Наличными: 650.00 [09:53:33]line Безнал.: 0.00 [09:53:33]line Место: АЗС № 108 "Партнер Нефть" [09:53:33]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:53:33]line СНО: Общий режим [09:53:33]line Чек 51 16.04.2024 09:53 [09:53:33]line Смена: 118 ФФД: 1.0 [09:53:33]line ЗНМ: 0300000027 [09:53:33]line РНМ: 0000138879044617 [09:53:33]line Версия ККМ: 001 [09:53:33]line ФМ: 0000000000963154 [09:53:33]line ФД: 29777 [09:53:33]line ФПД: 13843914529861 [09:53:33]line 1/tax-web-control/client/api/v1/ticket?date=20240416T095333&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29777&fm=13843914529861&tin=02508201610067®Number=0000138879044617&sum=65000 [09:53:34]OFD Sender: Processing packet 29777 [packets to send 8, broken 7] [09:53:34]ProducePacketName [09:53:34]name=ofd_packets/00029777 [09:53:34]OFD Sender: To server: pG, [09:53:34]CommunicateWithHost lk.salyk.kg:30040 [09:53:34]ConnectInit lk.salyk.kg [09:53:34]written 0, free lines is 4095 [09:53:34]Connected sock=10 [09:53:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8B 3A 07 01 9E 64 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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 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 9D 4A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 74 00 00 35 04 06 00 0C 97 49 9B 9C 45 D2 BA 81 23 8A 50 5B 9F [09:53:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C6 F3 47 00 24 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 74 00 00 F4 03 04 00 3B F5 1D 66 B6 04 01 00 00 94 B3 5F DB 0B 0F D0 C2 [09:53:34]CommunicateWithHost err = 0 [09:53:34]CheckOFDResponse [09:53:34]1017 (14) - 77093643461234 [09:53:34]1041 (16) - 0000000000963154 [09:53:34]1040 (4) - 29777 [09:53:34]1012 (4) - 16.04.2024 03:49 [09:53:34]1206 (1) - 0 [09:53:34]OFD Sender: Remove packet 29777 [09:53:34]ProducePacketName [09:53:34]name=ofd_packets/00029777 [09:53:34]NVStorageDeleteData [09:53:34]Write to MH i2c: 01 00 00 BA 06 C0 [09:53:34]Write i2c OK [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: 01 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: 01 07 00 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: 01 07 00 BA 06 00 00 00 00 00 C0 0C 93 [09:53:34]RasterBufferAndPrint [09:53:34]line [09:53:34]line [09:53:34]line [09:53:34]line [09:53:34]line [09:53:34]written 0, free lines is 3270 [09:53:34]MH_Cut [09:53:34]Write to MH i2c: D1 01 00 C1 06 01 99 [09:53:34]Write i2c OK [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: D1 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: D1 01 00 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: D1 01 00 C1 06 00 98 [09:53:34]Write to MH i2c: 01 00 00 C2 06 C8 [09:53:34]Write i2c OK [09:53:34]MH_I2C_Read... [09:53:34]OFD Sender: No OFD packet to send [09:53:35]*** Cut start [09:53:35]*** Partial cut [09:53:35]*** CUTSNS_PIN = 1 [09:53:35]*** CUTSNS_PIN = 0 [09:53:35]*** Brake cut motor [09:53:36]Read from MH i2c: 01 [09:53:36]MH_I2C_Read... [09:53:36]*** Stop cut motor [09:53:36]*** Cut end [09:53:36]Read from MH i2c: 01 07 00 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: 01 07 00 C2 06 00 00 00 00 00 FF 0F DD [09:53:36]process_action close_receipt done [09:53:36]requested_data is exist [09:53:36]produce_requested_data [09:53:36]requested_item fm.sn is exist - process it [09:53:36]wFMCommunicate request_size=4 [09:53:36]MH_SAM_APDU [09:53:36]CAPDU: 80 11 00 00 [09:53:36]Write to MH i2c: E2 08 00 C3 06 80 11 00 00 00 00 00 00 43 [09:53:36]Write i2c OK [09:53:36]MH_I2C_Read... [09:53:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:36]Read from MH i2c: E2 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 17 00 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 17 00 C3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 92 [09:53:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:53:36]wFMCommunicate OK [09:53:36]requested_item fd.num is exist - process it [09:53:36]SAM_PROTO_GetFieldsCounters [09:53:36]wFMCommunicate request_size=4 [09:53:36]MH_SAM_APDU [09:53:36]CAPDU: 80 13 00 00 [09:53:36]Write to MH i2c: E2 08 00 C4 06 80 13 00 00 00 00 00 00 46 [09:53:36]Write i2c OK [09:53:36]MH_I2C_Read... [09:53:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:36]Read from MH i2c: E2 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 62 00 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 62 00 C4 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 51 74 00 00 0E 04 04 00 76 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 58 [09:53:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 51 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:36]wFMCommunicate OK [09:53:36]SAM_PROTO_GetFieldsCounters done [09:53:36]requested_item shift.num is exist - process it [09:53:36]requested_item shift.opened is exist - process it [09:53:36]req_shift_opened [09:53:36]FM_GetShiftState [09:53:36]SAM_PROTO_GetShiftState [09:53:36]wFMCommunicate request_size=4 [09:53:36]MH_SAM_APDU [09:53:36]CAPDU: 80 13 01 00 [09:53:36]Write to MH i2c: E2 08 00 C5 06 80 13 01 00 00 00 00 00 48 [09:53:36]Write i2c OK [09:53:36]MH_I2C_Read... [09:53:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:36]Read from MH i2c: E2 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 0E 00 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 0E 00 C5 06 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 F6 [09:53:36]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:53:36]wFMCommunicate OK [09:53:36]SAM_PROTO_GetShiftState done [09:53:36]FM_GetShiftState done [09:53:36]req_shift_opened done [09:53:36]requested_item shift.open_date is exist - process it [09:53:36]req_shift_open_date [09:53:36]req_shift_open_date done [09:53:36]produce_requested_data done [09:53:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29777,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [09:53:36]process_action_free close_receipt [09:53:36]json_value_free [09:53:36]json_value_free done [09:53:36]process_json_proto returns [09:53:36]Send response to host [09:53:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29777,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [09:53:36]free response buf [09:53:36]execute_script done [09:53:36]execute_script returns [09:53:36]free content buf [09:53:36]Sock 7.Close socket [09:53:36]Sock 7.Thread stoped [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54: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:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:20]OFD Sender: No OFD packet to send [09:56:25]OFD Sender: No OFD packet to send [09:56:30]OFD Sender: No OFD packet to send [09:56:35]OFD Sender: No OFD packet to send [09:56:40]OFD Sender: No OFD packet to send [09:56:45]OFD Sender: No OFD packet to send [09:56:50]OFD Sender: No OFD packet to send [09:56:55]OFD Sender: No OFD packet to send [09:57:00]OFD Sender: No OFD packet to send [09:57:05]OFD Sender: No OFD packet to send [09:57:06]accept exits with 9 [09:57:06]New connection [09:57:06]New thread 3067276644 created [09:57:06]Thread 3067133284 joined [09:57:06]Waiting for new connection... [09:57:06] Sock 9.Parse request [09:57:06]Sock 9.Check first char [09:57:06]Sock 9.First char is OK [09:57:06]request: POST /json_proto HTTP/1.0 [09:57:06]Method: POST [09:57:06]URL: /json_proto [09:57:06]Method is POST - this is cgi request [09:57:06]url: /json_proto [09:57:06]query_string will be loaded in cgi processing [09:57:06]execute_cgi json_proto POST (null) [09:57:06]execute_cgi path=json_proto method=POST [09:57:06]POST find Content-Length [09:57:06]Host: 172.17.33.3:8080 [09:57:06]Content-Length: 846 [09:57:06]Content-Type: application/json [09:57:06] [09:57:06]POST finish read [09:57:06]Found Content-Length = 846 [09:57:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 29.950, "sum" : 1000.33, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:06]execute_script... [09:57: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)348259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 29.950, "sum" : 1000.33, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:06]POST & json_proto [09:57:06]process_json_proto [09:57:06]json parsed OK: [09:57:06]protocol is kg_v1.0 [09:57:06]action value=close_receipt [09:57:06]process_action close_receipt [09:57:06]cmd_close_receipt [09:57:06]MH_GetDate [09:57:06]Write to MH i2c: F0 00 00 C6 06 BB [09:57:06]Write i2c OK [09:57:06]MH_I2C_Read... [09:57:06]Read from MH i2c: F0 [09:57:06]MH_I2C_Read... [09:57:06]Read from MH i2c: F0 09 00 [09:57:06]MH_I2C_Read... [09:57:06]Read from MH i2c: F0 09 00 C6 06 00 73 4B 1E 66 23 5B 8F 65 78 [09:57:06]GetLastDocTimeStamp 1713261213 [09:57:06]current date 1713261427 [09:57:06]FM_GetShiftState [09:57:06]SAM_PROTO_GetShiftState [09:57:06]wFMCommunicate request_size=4 [09:57:06]MH_SAM_APDU [09:57:06]CAPDU: 80 13 01 00 [09:57:06]Write to MH i2c: E2 08 00 C7 06 80 13 01 00 00 00 00 00 4A [09:57:06]Write i2c OK [09:57:06]MH_I2C_Read... [09:57:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:06]Read from MH i2c: E2 [09:57:06]MH_I2C_Read... [09:57:06]Read from MH i2c: E2 0E 00 [09:57:06]MH_I2C_Read... [09:57:06]Read from MH i2c: E2 0E 00 C7 06 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 F8 [09:57:06]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:57:06]wFMCommunicate OK [09:57:06]SAM_PROTO_GetShiftState done [09:57:06]FM_GetShiftState done [09:57:06]opened in 1713226843 [09:57:06]opened+sec_in_day 1713313243 [09:57:06]quantity*price = 100033 [09:57:06]sum+1 = 100034 [09:57:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.33 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.33 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 52 16.04.2024 09:57 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29778 ФПД: 164126993036156 1/tax-web-control/client/api/v1/ticket?date=20240416T095707&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29778&fm=164126993036156&tin=02508201610067®Number=0000138879044617&sum=100033 [09:57:07]StoreToDocumentArchive [09:57:07]shift 118 fd 29778 [09:57:07]save to /storage/0118/doc_00029778 [09:57:07]save last doc name /storage/0118/doc_00029778 to /storage/kkm_last_doc_name [09:57:07]save OK [09:57:07]Clear old archive folders... [09:57:07]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:57:07]tlvbuf is 0018B7D0 [09:57:07]SAM_PROTO_ClearQueue [09:57:07]wFMCommunicate request_size=4 [09:57:07]MH_SAM_APDU [09:57:07]CAPDU: 80 09 00 00 [09:57:07]Write to MH i2c: E2 08 00 D4 06 80 09 00 00 00 00 00 00 4C [09:57:07]Write i2c OK [09:57:07]MH_I2C_Read... [09:57:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:07]Read from MH i2c: E2 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 03 00 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 03 00 D4 06 00 90 00 4E [09:57:07]RAPDU: 90 00 [09:57:07]wFMCommunicate OK [09:57:07]SAM_PROTO_ClearQueue done [09:57:07]KKMCreateOFDPacket [09:57:07]OFDProtocolAddRootSTLVToBuf [09:57:07]FM_MakeSignedData [09:57:07]FM_MakeSignedData [09:57:07]SAM_PROTO_SignData [09:57:07]wFMCommunicate request_size=4 [09:57:07]MH_SAM_APDU [09:57:07]CAPDU: 80 0D 01 02 [09:57:07]Write to MH i2c: E2 08 00 D5 06 80 0D 01 02 00 00 00 00 54 [09:57:07]Write i2c OK [09:57:07]MH_I2C_Read... [09:57:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:07]Read from MH i2c: E2 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 03 00 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 03 00 D5 06 00 90 00 4F [09:57:07]RAPDU: 90 00 [09:57:07]wFMCommunicate OK [09:57:07]wFMCommunicate request_size=255 [09:57:07]MH_SAM_APDU [09:57:07]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 73 4B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 74 00 00 35 04 06 00 95 45 [09:57:07]Write to MH i2c: E2 02 01 D6 06 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 73 4B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 74 00 00 35 04 06 00 95 45 00 00 3A [09:57:07]Write i2c OK [09:57:07]MH_I2C_Read... [09:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:07]Read from MH i2c: E2 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 03 00 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 03 00 D6 06 00 90 00 50 [09:57:07]RAPDU: 90 00 [09:57:07]wFMCommunicate OK [09:57:07]wFMCommunicate request_size=9 [09:57:07]MH_SAM_APDU [09:57:07]CAPDU: 80 0D 02 02 04 CB 1E 33 7C [09:57:07]Write to MH i2c: E2 0C 00 D7 06 80 0D 02 02 04 00 CB 1E 33 7C 00 00 F7 [09:57:07]Write i2c OK [09:57:07]MH_I2C_Read... [09:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:07]Read from MH i2c: E2 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 03 00 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 03 00 D7 06 00 90 00 51 [09:57:07]RAPDU: 90 00 [09:57:07]wFMCommunicate OK [09:57:07]wFMCommunicate request_size=4 [09:57:07]MH_SAM_APDU [09:57:07]CAPDU: 80 0D 03 02 [09:57:07]Write to MH i2c: E2 08 00 D8 06 80 0D 03 02 00 00 00 00 59 [09:57:07]Write i2c OK [09:57:07]MH_I2C_Read... [09:57:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:07]Read from MH i2c: E2 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 0B 00 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 0B 00 D8 06 00 BC E8 C9 F1 D7 4F 88 F9 90 00 5F [09:57:07]RAPDU: BC E8 C9 F1 D7 4F 88 F9 90 00 [09:57:07]wFMCommunicate OK [09:57:07]SAM_PROTO_SignData done [09:57:07]FM_MakeSignedData done [09:57:07]CreateOFDProtocolMessage [09:57:07]wFMCommunicate request_size=4 [09:57:07]MH_SAM_APDU [09:57:07]CAPDU: 80 11 00 00 [09:57:07]Write to MH i2c: E2 08 00 D9 06 80 11 00 00 00 00 00 00 59 [09:57:07]Write i2c OK [09:57:07]MH_I2C_Read... [09:57:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:08]Read from MH i2c: E2 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: E2 17 00 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: E2 17 00 D9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A8 [09:57:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:57:08]wFMCommunicate OK [09:57:08]CreateOFDProtocolMessage done [09:57:08]OFDSenderStorePacket 29778 [09:57:08]StoreOFDPacket docnum=29778 [09:57:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 D1 BF 06 01 54 6A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 73 4B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 74 00 00 35 04 06 00 95 45 CB 1E 33 7C BC E8 C9 F1 D7 4F 88 F9 [09:57:08]CheckFolder [09:57:08]dirname=/storage/ofd_packets [09:57:08]CheckFolder done [09:57:08]ProducePacketName [09:57:08]name=ofd_packets/00029778 [09:57:08]NVStorageSaveData ofd_packets/00029778 [09:57:08]File name is /storage/ofd_packets/00029778 [09:57:08]Write 300 bytes [09:57:08]NVStorageSaveData done [09:57:08]OFDSenderStorePacket done [09:57:08]KKMCreateOFDPacket done [09:57:08]NVStorageSaveData kkm_last_timestamp [09:57:08]File name is /storage/kkm_last_timestamp [09:57:08]Write 4 bytes [09:57:08]NVStorageSaveData done [09:57:08]ExternCall_PrintAddStr [09:57:08]wPrintStart [09:57:08]Write to MH i2c: 01 00 00 DA 06 E0 [09:57:08]Write i2c OK [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 07 00 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 07 00 DA 06 00 00 00 00 00 FF 0F F5 [09:57:08]RasterBufferAndPrint [09:57:08]line Счет N : (1)348259 [09:57:08]line ИНН: 02508201610067 [09:57:08]line Контрольно-Кассовый Чек [09:57:08]line ПРОДАЖА [09:57:08]line ТРК (МРК, ГНК) : 71 [09:57:08]line Товар: 2711129700 [09:57:08]line ГАЗ-К-5 [09:57:08]line 29.950 * 33.40 [09:57:08]line = 1000.33 [09:57:08]line НДС 12% НСП 1% [09:57:08]line > о реализуемом товаре [09:57:08]line ИТОГО: 1000.33 [09:57:08]line НСП 1% : 8.85 [09:57:08]line НДС 12% : 106.23 [09:57:08]line Наличными: 0.00 [09:57:08]line Безнал.: 1000.33 [09:57:08]line Место: АЗС № 108 "Партнер Нефть" [09:57:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:57:08]line СНО: Общий режим [09:57:08]line Чек 52 16.04.2024 09:57 [09:57:08]line Смена: 118 ФФД: 1.0 [09:57:08]line ЗНМ: 0300000027 [09:57:08]line РНМ: 0000138879044617 [09:57:08]line Версия ККМ: 001 [09:57:08]line Платежная система: АКБ Кыргызстан [09:57:08]line ФМ: 0000000000963154 [09:57:08]line ФД: 29778 [09:57:08]line ФПД: 164126993036156 [09:57:08]line 1/tax-web-control/client/api/v1/ticket?date=20240416T095707&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29778&fm=164126993036156&tin=02508201610067®Number=0000138879044617&sum=100033 [09:57:08]OFD Sender: Processing packet 29778 [packets to send 8, broken 7] [09:57:08]ProducePacketName [09:57:08]name=ofd_packets/00029778 [09:57:08]OFD Sender: To server: pG, [09:57:08]CommunicateWithHost lk.salyk.kg:30040 [09:57:08]ConnectInit lk.salyk.kg [09:57:08]written 0, free lines is 4095 [09:57:08]Connected sock=10 [09:57:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 D1 BF 06 01 54 6A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 73 4B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 74 00 00 35 04 06 00 95 45 CB 1E 33 7C BC E8 C9 F1 D7 4F 88 F9 [09:57:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 42 A5 47 00 98 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 74 00 00 F4 03 04 00 11 F6 1D 66 B6 04 01 00 00 F0 1E FF 36 8F 9C 32 6D [09:57:08]CommunicateWithHost err = 0 [09:57:08]CheckOFDResponse [09:57:08]1017 (14) - 77093643461234 [09:57:08]1041 (16) - 0000000000963154 [09:57:08]1040 (4) - 29778 [09:57:08]1012 (4) - 16.04.2024 03:52 [09:57:08]1206 (1) - 0 [09:57:08]OFD Sender: Remove packet 29778 [09:57:08]ProducePacketName [09:57:08]name=ofd_packets/00029778 [09:57:08]NVStorageDeleteData [09:57:08]Write to MH i2c: 01 00 00 03 07 0A [09:57:08]Write i2c OK [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 07 00 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: 01 07 00 03 07 00 00 00 00 00 D9 0C F6 [09:57:08]RasterBufferAndPrint [09:57:08]line [09:57:08]line [09:57:08]line [09:57:08]line [09:57:08]line [09:57:08]written 0, free lines is 3295 [09:57:08]MH_Cut [09:57:08]Write to MH i2c: D1 01 00 0A 07 01 E3 [09:57:08]Write i2c OK [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: D1 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: D1 01 00 [09:57:08]MH_I2C_Read... [09:57:08]Read from MH i2c: D1 01 00 0A 07 00 E2 [09:57:08]Write to MH i2c: 01 00 00 0B 07 12 [09:57:08]Write i2c OK [09:57:08]MH_I2C_Read... [09:57:09]OFD Sender: No OFD packet to send [09:57:09]*** Cut start [09:57:09]*** Partial cut [09:57:09]*** CUTSNS_PIN = 1 [09:57:09]*** CUTSNS_PIN = 0 [09:57:09]*** Brake cut motor [09:57:10]Read from MH i2c: 01 [09:57:10]MH_I2C_Read... [09:57:10]*** Stop cut motor [09:57:10]*** Cut end [09:57:10]Read from MH i2c: 01 07 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: 01 07 00 0B 07 00 00 00 00 00 FF 0F 27 [09:57:10]process_action close_receipt done [09:57:10]requested_data is exist [09:57:10]produce_requested_data [09:57:10]requested_item fm.sn is exist - process it [09:57:10]wFMCommunicate request_size=4 [09:57:10]MH_SAM_APDU [09:57:10]CAPDU: 80 11 00 00 [09:57:10]Write to MH i2c: E2 08 00 0C 07 80 11 00 00 00 00 00 00 8D [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:10]Read from MH i2c: E2 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 17 00 [09:57:10]MH_I2C_Read... [09:57:10]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 36 33 31 35 34 90 00 DC [09:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:57:10]wFMCommunicate OK [09:57:10]requested_item fd.num is exist - process it [09:57:10]SAM_PROTO_GetFieldsCounters [09:57:10]wFMCommunicate request_size=4 [09:57:10]MH_SAM_APDU [09:57:10]CAPDU: 80 13 00 00 [09:57:10]Write to MH i2c: E2 08 00 0D 07 80 13 00 00 00 00 00 00 90 [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:10]Read from MH i2c: E2 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 62 00 [09:57:10]MH_I2C_Read... [09:57:10]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 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 52 74 00 00 0E 04 04 00 76 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 A6 [09:57:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 52 74 00 00 0E 04 04 00 76 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 [09:57:10]wFMCommunicate OK [09:57:10]SAM_PROTO_GetFieldsCounters done [09:57:10]requested_item shift.num is exist - process it [09:57:10]requested_item shift.opened is exist - process it [09:57:10]req_shift_opened [09:57:10]FM_GetShiftState [09:57:10]SAM_PROTO_GetShiftState [09:57:10]wFMCommunicate request_size=4 [09:57:10]MH_SAM_APDU [09:57:10]CAPDU: 80 13 01 00 [09:57:10]Write to MH i2c: E2 08 00 0E 07 80 13 01 00 00 00 00 00 92 [09:57:10]Write i2c OK [09:57:10]MH_I2C_Read... [09:57:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:10]Read from MH i2c: E2 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 0E 00 [09:57:10]MH_I2C_Read... [09:57:10]Read from MH i2c: E2 0E 00 0E 07 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 40 [09:57:10]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:57:10]wFMCommunicate OK [09:57:10]SAM_PROTO_GetShiftState done [09:57:10]FM_GetShiftState done [09:57:10]req_shift_opened done [09:57:10]requested_item shift.open_date is exist - process it [09:57:10]req_shift_open_date [09:57:10]req_shift_open_date done [09:57:10]produce_requested_data done [09:57:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29778,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [09:57:10]process_action_free close_receipt [09:57:10]json_value_free [09:57:10]json_value_free done [09:57:10]process_json_proto returns [09:57:10]Send response to host [09:57:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29778,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [09:57:10]free response buf [09:57:10]execute_script done [09:57:10]execute_script returns [09:57:10]free content buf [09:57:10]Sock 9.Close socket [09:57:10]Sock 9.Thread stoped [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:49]accept exits with 7 [09:58:49]New connection [09:58:49]New thread 3067133284 created [09:58:49]Thread 3067276644 joined [09:58:49]Waiting for new connection... [09:58:49] Sock 7.Parse request [09:58:49]Sock 7.Check first char [09:58:49]Sock 7.First char is OK [09:58:49]request: POST /json_proto HTTP/1.0 [09:58:49]Method: POST [09:58:49]URL: /json_proto [09:58:49]Method is POST - this is cgi request [09:58:49]url: /json_proto [09:58:49]query_string will be loaded in cgi processing [09:58:49]execute_cgi json_proto POST (null) [09:58:49]execute_cgi path=json_proto method=POST [09:58:49]POST find Content-Length [09:58:49]Host: 172.17.33.3:8080 [09:58:49]Content-Length: 1204 [09:58:49]Content-Type: application/json [09:58:49] [09:58:49]POST finish read [09:58:49]Found Content-Length = 1204 [09:58:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348260\u000A16.04.2024 09:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 27.430 x 72.90\u000A\u0418\u0422\u041E\u0413: 1999.65\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:49]execute_script... [09:58:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348260\u000A16.04.2024 09:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 27.430 x 72.90\u000A\u0418\u0422\u041E\u0413: 1999.65\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:49]POST & json_proto [09:58:49]process_json_proto [09:58:49]json parsed OK: [09:58:49]protocol is kg_v1.0 [09:58:49]action value=print_text [09:58:49]process_action print_text [09:58:49]cmd_print_text [09:58:49]ExternCall_PrintAddStr [09:58:49]wPrintStart [09:58:49]Write to MH i2c: 01 00 00 0F 07 16 [09:58:49]Write i2c OK [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: 01 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: 01 07 00 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: 01 07 00 0F 07 00 00 00 00 00 FF 0F 2B [09:58:49]RasterBufferAndPrint [09:58:49]line *****ТОВАРНЫЙ ЧЕК***** [09:58:49]line АЗС 108 [09:58:49]line Партнер нефть [09:58:49]line 02508201610067 [09:58:49]line Кассир : Шадыканова Ж. [09:58:49]line Счет N : (1)348260 [09:58:49]line 16.04.2024 09:40 [09:58:49]line ПРОДАЖА [09:58:49]line ТРК (МРК, ГНК): 61 [09:58:49]line Вид ГСМ : 2710194210 [09:58:49]line ДТ-К-5 [09:58:49]line 27.430 x 72.90 [09:58:49]line ИТОГ: 1999.65 [09:58:49]line Тип оплаты: Талоны: Топливная Карта [09:58:49]line 65563 [09:58:49]line ______________________ [09:58:49]line (подпись) [09:58:49]written 0, free lines is 4095 [09:58:50]Write to MH i2c: 01 00 00 24 07 2B [09:58:50]Write i2c OK [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: 01 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: 01 07 00 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: 01 07 00 24 07 00 00 00 00 00 F5 0D 34 [09:58:50]RasterBufferAndPrint [09:58:50]line [09:58:50]line [09:58:50]line [09:58:50]line [09:58:50]line [09:58:50]written 0, free lines is 3574 [09:58:50]MH_Cut [09:58:50]Write to MH i2c: D1 01 00 2B 07 01 04 [09:58:50]Write i2c OK [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: D1 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: D1 01 00 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: D1 01 00 2B 07 00 03 [09:58:50]Write to MH i2c: 01 00 00 2C 07 33 [09:58:50]Write i2c OK [09:58:50]MH_I2C_Read... [09:58:50]*** Cut start [09:58:50]*** Partial cut [09:58:50]*** CUTSNS_PIN = 1 [09:58:50]*** CUTSNS_PIN = 0 [09:58:50]*** Brake cut motor [09:58:51]Read from MH i2c: 01 [09:58:51]MH_I2C_Read... [09:58:51]*** Stop cut motor [09:58:51]*** Cut end [09:58:51]Read from MH i2c: 01 07 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: 01 07 00 2C 07 00 00 00 00 00 FF 0F 48 [09:58:51]process_action print_text done [09:58:51]requested_data is exist [09:58:51]produce_requested_data [09:58:51]requested_item fm.sn is exist - process it [09:58:51]wFMCommunicate request_size=4 [09:58:51]MH_SAM_APDU [09:58:51]CAPDU: 80 11 00 00 [09:58:51]Write to MH i2c: E2 08 00 2D 07 80 11 00 00 00 00 00 00 AE [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:51]Read from MH i2c: E2 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 17 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 17 00 2D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FD [09:58:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:58:51]wFMCommunicate OK [09:58:51]requested_item fd.num is exist - process it [09:58:51]SAM_PROTO_GetFieldsCounters [09:58:51]wFMCommunicate request_size=4 [09:58:51]MH_SAM_APDU [09:58:51]CAPDU: 80 13 00 00 [09:58:51]Write to MH i2c: E2 08 00 2E 07 80 13 00 00 00 00 00 00 B1 [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:51]Read from MH i2c: E2 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 62 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 62 00 2E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 52 74 00 00 0E 04 04 00 76 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 C7 [09:58:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 52 74 00 00 0E 04 04 00 76 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 [09:58:51]wFMCommunicate OK [09:58:51]SAM_PROTO_GetFieldsCounters done [09:58:51]requested_item shift.num is exist - process it [09:58:51]requested_item shift.opened is exist - process it [09:58:51]req_shift_opened [09:58:51]FM_GetShiftState [09:58:51]SAM_PROTO_GetShiftState [09:58:51]wFMCommunicate request_size=4 [09:58:51]MH_SAM_APDU [09:58:51]CAPDU: 80 13 01 00 [09:58:51]Write to MH i2c: E2 08 00 2F 07 80 13 01 00 00 00 00 00 B3 [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:51]Read from MH i2c: E2 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 0E 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 0E 00 2F 07 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 61 [09:58:51]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [09:58:51]wFMCommunicate OK [09:58:51]SAM_PROTO_GetShiftState done [09:58:51]FM_GetShiftState done [09:58:51]req_shift_opened done [09:58:51]requested_item shift.open_date is exist - process it [09:58:51]req_shift_open_date [09:58:51]req_shift_open_date done [09:58:51]produce_requested_data done [09:58:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29778,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [09:58:51]process_action_free print_text [09:58:51]json_value_free [09:58:51]json_value_free done [09:58:51]process_json_proto returns [09:58:51]Send response to host [09:58:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29778,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [09:58:51]free response buf [09:58:51]execute_script done [09:58:51]execute_script returns [09:58:51]free content buf [09:58:51]Sock 7.Close socket [09:58:51]Sock 7.Thread stoped [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:29]OFD Sender: No OFD packet to send [10:05:34]OFD Sender: No OFD packet to send [10:05:39]OFD Sender: No OFD packet to send [10:05:44]OFD Sender: No OFD packet to send [10:05:46]accept exits with 9 [10:05:46]New connection [10:05:46]New thread 3067276644 created [10:05:46]Thread 3067133284 joined [10:05:46]Waiting for new connection... [10:05:46] Sock 9.Parse request [10:05:46]Sock 9.Check first char [10:05:46]Sock 9.First char is OK [10:05:46]request: POST /json_proto HTTP/1.0 [10:05:46]Method: POST [10:05:46]URL: /json_proto [10:05:46]Method is POST - this is cgi request [10:05:46]url: /json_proto [10:05:46]query_string will be loaded in cgi processing [10:05:46]execute_cgi json_proto POST (null) [10:05:46]execute_cgi path=json_proto method=POST [10:05:46]POST find Content-Length [10:05:46]Host: 172.17.33.3:8080 [10:05:46]Content-Length: 805 [10:05:46]Content-Type: application/json [10:05:46] [10:05:46]POST finish read [10:05:46]Found Content-Length = 805 [10:05:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:46]execute_script... [10:05: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 : (1)348262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:46]POST & json_proto [10:05:46]process_json_proto [10:05:46]json parsed OK: [10:05:46]protocol is kg_v1.0 [10:05:46]action value=close_receipt [10:05:46]process_action close_receipt [10:05:46]cmd_close_receipt [10:05:46]MH_GetDate [10:05:46]Write to MH i2c: F0 00 00 30 07 26 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: F0 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: F0 09 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: F0 09 00 30 07 00 7C 4D 1E 66 23 5B 8F 65 EE [10:05:46]GetLastDocTimeStamp 1713261427 [10:05:46]current date 1713261948 [10:05:46]FM_GetShiftState [10:05:46]SAM_PROTO_GetShiftState [10:05:46]wFMCommunicate request_size=4 [10:05:46]MH_SAM_APDU [10:05:46]CAPDU: 80 13 01 00 [10:05:46]Write to MH i2c: E2 08 00 31 07 80 13 01 00 00 00 00 00 B5 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:46]Read from MH i2c: E2 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 0E 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 0E 00 31 07 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 63 [10:05:46]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:05:46]wFMCommunicate OK [10:05:46]SAM_PROTO_GetShiftState done [10:05:46]FM_GetShiftState done [10:05:46]opened in 1713226843 [10:05:46]opened+sec_in_day 1713313243 [10:05:46]quantity*price = 40046 [10:05:46]sum+1 = 40047 [10:05:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.46 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.46 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 53 16.04.2024 10:05 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29779 ФПД: 73643315280116 1/tax-web-control/client/api/v1/ticket?date=20240416T100548&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29779&fm=73643315280116&tin=02508201610067®Number=0000138879044617&sum=40046 [10:05:48]StoreToDocumentArchive [10:05:48]shift 118 fd 29779 [10:05:48]save to /storage/0118/doc_00029779 [10:05:48]save last doc name /storage/0118/doc_00029779 to /storage/kkm_last_doc_name [10:05:48]save OK [10:05:48]Clear old archive folders... [10:05:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:48]tlvbuf is 0018B3E0 [10:05:48]SAM_PROTO_ClearQueue [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 09 00 00 [10:05:48]Write to MH i2c: E2 08 00 3E 07 80 09 00 00 00 00 00 00 B7 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 03 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 03 00 3E 07 00 90 00 B9 [10:05:48]RAPDU: 90 00 [10:05:48]wFMCommunicate OK [10:05:48]SAM_PROTO_ClearQueue done [10:05:48]KKMCreateOFDPacket [10:05:48]OFDProtocolAddRootSTLVToBuf [10:05:48]FM_MakeSignedData [10:05:48]FM_MakeSignedData [10:05:48]SAM_PROTO_SignData [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 0D 01 02 [10:05:48]Write to MH i2c: E2 08 00 3F 07 80 0D 01 02 00 00 00 00 BF [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 03 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 03 00 3F 07 00 90 00 BA [10:05:48]RAPDU: 90 00 [10:05:48]wFMCommunicate OK [10:05:48]wFMCommunicate request_size=255 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 7C 4D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 74 00 00 35 04 06 00 42 [10:05:48]Write to MH i2c: E2 02 01 40 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 7C 4D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 74 00 00 35 04 06 00 42 00 00 BA [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 03 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 03 00 40 07 00 90 00 BB [10:05:48]RAPDU: 90 00 [10:05:48]wFMCommunicate OK [10:05:48]wFMCommunicate request_size=10 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 0D 02 02 05 FA 6B A5 B8 F4 [10:05:48]Write to MH i2c: E2 0D 00 41 07 80 0D 02 02 05 00 FA 6B A5 B8 F4 00 00 82 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 03 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 03 00 41 07 00 90 00 BC [10:05:48]RAPDU: 90 00 [10:05:48]wFMCommunicate OK [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 0D 03 02 [10:05:48]Write to MH i2c: E2 08 00 42 07 80 0D 03 02 00 00 00 00 C4 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 0B 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 0B 00 42 07 00 FB 51 AE 34 B0 D7 EB 29 90 00 8E [10:05:48]RAPDU: FB 51 AE 34 B0 D7 EB 29 90 00 [10:05:48]wFMCommunicate OK [10:05:48]SAM_PROTO_SignData done [10:05:48]FM_MakeSignedData done [10:05:48]CreateOFDProtocolMessage [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 11 00 00 [10:05:48]Write to MH i2c: E2 08 00 43 07 80 11 00 00 00 00 00 00 C4 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 17 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 17 00 43 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 13 [10:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:05:48]wFMCommunicate OK [10:05:48]CreateOFDProtocolMessage done [10:05:48]OFDSenderStorePacket 29779 [10:05:48]StoreOFDPacket docnum=29779 [10:05:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 18 8E 07 01 D9 EA 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 7C 4D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 74 00 00 35 04 06 00 42 FA 6B A5 B8 F4 FB 51 AE 34 B0 D7 EB 29 [10:05:48]CheckFolder [10:05:48]dirname=/storage/ofd_packets [10:05:48]CheckFolder done [10:05:48]ProducePacketName [10:05:48]name=ofd_packets/00029779 [10:05:48]NVStorageSaveData ofd_packets/00029779 [10:05:48]File name is /storage/ofd_packets/00029779 [10:05:48]Write 301 bytes [10:05:48]NVStorageSaveData done [10:05:48]OFDSenderStorePacket done [10:05:48]KKMCreateOFDPacket done [10:05:48]NVStorageSaveData kkm_last_timestamp [10:05:48]File name is /storage/kkm_last_timestamp [10:05:48]Write 4 bytes [10:05:48]NVStorageSaveData done [10:05:48]ExternCall_PrintAddStr [10:05:48]wPrintStart [10:05:48]Write to MH i2c: 01 00 00 44 07 4B [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: 01 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: 01 07 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: 01 07 00 44 07 00 00 00 00 00 FF 0F 60 [10:05:48]RasterBufferAndPrint [10:05:48]line Счет N : (1)348262 [10:05:48]line ИНН: 02508201610067 [10:05:48]line Контрольно-Кассовый Чек [10:05:48]line ПРОДАЖА [10:05:48]line ТРК (МРК, ГНК) : 13 [10:05:48]line Товар: 2710124130 [10:05:48]line Аи-92-К-5 [10:05:48]line 6.180 * 64.80 [10:05:48]line = 400.46 [10:05:48]line НДС 12% НСП 1% [10:05:48]line > о реализуемом товаре [10:05:48]line ИТОГО: 400.46 [10:05:48]line НСП 1% : 3.54 [10:05:48]line НДС 12% : 42.53 [10:05:48]line Наличными: 0.00 [10:05:48]line Безнал.: 400.46 [10:05:48]line Место: АЗС № 108 "Партнер Нефть" [10:05:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:05:48]line СНО: Общий режим [10:05:48]line Чек 53 16.04.2024 10:05 [10:05:48]line Смена: 118 ФФД: 1.0 [10:05:48]line ЗНМ: 0300000027 [10:05:48]line РНМ: 0000138879044617 [10:05:48]line Версия ККМ: 001 [10:05:48]line Платежная система: О! деньги [10:05:48]line ФМ: 0000000000963154 [10:05:48]line ФД: 29779 [10:05:48]line ФПД: 73643315280116 [10:05:48]line 1/tax-web-control/client/api/v1/ticket?date=20240416T100548&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29779&fm=73643315280116&tin=02508201610067®Number=0000138879044617&sum=40046 [10:05:48]OFD Sender: Processing packet 29779 [packets to send 8, broken 7] [10:05:48]ProducePacketName [10:05:48]name=ofd_packets/00029779 [10:05:48]OFD Sender: To server: pG, [10:05:48]CommunicateWithHost lk.salyk.kg:30040 [10:05:48]ConnectInit lk.salyk.kg [10:05:48]written 0, free lines is 4095 [10:05:48]Connected sock=7 [10:05:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 18 8E 07 01 D9 EA 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 7C 4D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 74 00 00 35 04 06 00 42 FA 6B A5 B8 F4 FB 51 AE 34 B0 D7 EB 29 [10:05:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DF 68 47 00 4C 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 36 33 31 35 34 10 04 04 00 53 74 00 00 F4 03 04 00 1A F8 1D 66 B6 04 01 00 00 0A 9B 1D B7 BA 7D C9 CF [10:05:49]CommunicateWithHost err = 0 [10:05:49]CheckOFDResponse [10:05:49]1017 (14) - 77093643461234 [10:05:49]1041 (16) - 0000000000963154 [10:05:49]1040 (4) - 29779 [10:05:49]1012 (4) - 16.04.2024 04:01 [10:05:49]1206 (1) - 0 [10:05:49]OFD Sender: Remove packet 29779 [10:05:49]ProducePacketName [10:05:49]name=ofd_packets/00029779 [10:05:49]NVStorageDeleteData [10:05:49]Write to MH i2c: 01 00 00 6D 07 74 [10:05:49]Write i2c OK [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: 01 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: 01 07 00 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: 01 07 00 6D 07 00 00 00 00 00 D7 0C 5E [10:05:49]RasterBufferAndPrint [10:05:49]line [10:05:49]line [10:05:49]line [10:05:49]line [10:05:49]line [10:05:49]written 0, free lines is 3294 [10:05:49]MH_Cut [10:05:49]Write to MH i2c: D1 01 00 74 07 01 4D [10:05:49]Write i2c OK [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: D1 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: D1 01 00 [10:05:49]MH_I2C_Read... [10:05:49]Read from MH i2c: D1 01 00 74 07 00 4C [10:05:49]Write to MH i2c: 01 00 00 75 07 7C [10:05:49]Write i2c OK [10:05:49]MH_I2C_Read... [10:05:49]OFD Sender: No OFD packet to send [10:05:50]*** Cut start [10:05:50]*** Partial cut [10:05:50]*** CUTSNS_PIN = 1 [10:05:50]*** CUTSNS_PIN = 0 [10:05:50]*** Brake cut motor [10:05:50]Read from MH i2c: 01 [10:05:50]MH_I2C_Read... [10:05:50]*** Stop cut motor [10:05:50]*** Cut end [10:05:50]Read from MH i2c: 01 07 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: 01 07 00 75 07 00 00 00 00 00 FF 0F 91 [10:05:50]process_action close_receipt done [10:05:50]requested_data is exist [10:05:50]produce_requested_data [10:05:50]requested_item fm.sn is exist - process it [10:05:50]wFMCommunicate request_size=4 [10:05:50]MH_SAM_APDU [10:05:50]CAPDU: 80 11 00 00 [10:05:50]Write to MH i2c: E2 08 00 76 07 80 11 00 00 00 00 00 00 F7 [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:50]Read from MH i2c: E2 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 17 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 17 00 76 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 46 [10:05:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:05:50]wFMCommunicate OK [10:05:50]requested_item fd.num is exist - process it [10:05:50]SAM_PROTO_GetFieldsCounters [10:05:50]wFMCommunicate request_size=4 [10:05:50]MH_SAM_APDU [10:05:50]CAPDU: 80 13 00 00 [10:05:50]Write to MH i2c: E2 08 00 77 07 80 13 00 00 00 00 00 00 FA [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:50]Read from MH i2c: E2 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 62 00 [10:05:50]MH_I2C_Read... [10:05:50]Read from MH i2c: E2 62 00 77 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 53 74 00 00 0E 04 04 00 76 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 14 [10:05:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 53 74 00 00 0E 04 04 00 76 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 [10:05:50]wFMCommunicate OK [10:05:50]SAM_PROTO_GetFieldsCounters done [10:05:50]requested_item shift.num is exist - process it [10:05:50]requested_item shift.opened is exist - process it [10:05:50]req_shift_opened [10:05:50]FM_GetShiftState [10:05:50]SAM_PROTO_GetShiftState [10:05:50]wFMCommunicate request_size=4 [10:05:50]MH_SAM_APDU [10:05:50]CAPDU: 80 13 01 00 [10:05:50]Write to MH i2c: E2 08 00 78 07 80 13 01 00 00 00 00 00 FC [10:05:50]Write i2c OK [10:05:50]MH_I2C_Read... [10:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:51]Read from MH i2c: E2 [10:05:51]MH_I2C_Read... [10:05:51]Read from MH i2c: E2 0E 00 [10:05:51]MH_I2C_Read... [10:05:51]Read from MH i2c: E2 0E 00 78 07 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 AA [10:05:51]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:05:51]wFMCommunicate OK [10:05:51]SAM_PROTO_GetShiftState done [10:05:51]FM_GetShiftState done [10:05:51]req_shift_opened done [10:05:51]requested_item shift.open_date is exist - process it [10:05:51]req_shift_open_date [10:05:51]req_shift_open_date done [10:05:51]produce_requested_data done [10:05:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29779,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:05:51]process_action_free close_receipt [10:05:51]json_value_free [10:05:51]json_value_free done [10:05:51]process_json_proto returns [10:05:51]Send response to host [10:05:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29779,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:05:51]free response buf [10:05:51]execute_script done [10:05:51]execute_script returns [10:05:51]free content buf [10:05:51]Sock 9.Close socket [10:05:51]Sock 9.Thread stoped [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:25]accept exits with 10 [10:06:25]New connection [10:06:25]New thread 3067133284 created [10:06:25]Thread 3067276644 joined [10:06:25]Waiting for new connection... [10:06:25] Sock 10.Parse request [10:06:25]Sock 10.Check first char [10:06:25]Sock 10.First char is OK [10:06:25]request: POST /json_proto HTTP/1.0 [10:06:25]Method: POST [10:06:25]URL: /json_proto [10:06:25]Method is POST - this is cgi request [10:06:25]url: /json_proto [10:06:25]query_string will be loaded in cgi processing [10:06:25]execute_cgi json_proto POST (null) [10:06:25]execute_cgi path=json_proto method=POST [10:06:25]POST find Content-Length [10:06:25]Host: 172.17.33.3:8080 [10:06:25]Content-Length: 685 [10:06:25]Content-Type: application/json [10:06:25] [10:06:25]POST finish read [10:06:25]Found Content-Length = 685 [10:06:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 29.950, "sum" : 1000.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:25]execute_script... [10:06:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 29.950, "sum" : 1000.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:25]POST & json_proto [10:06:25]process_json_proto [10:06:25]json parsed OK: [10:06:25]protocol is kg_v1.0 [10:06:25]action value=close_receipt [10:06:25]process_action close_receipt [10:06:25]cmd_close_receipt [10:06:25]MH_GetDate [10:06:25]Write to MH i2c: F0 00 00 79 07 6F [10:06:25]Write i2c OK [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: F0 [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: F0 09 00 [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: F0 09 00 79 07 00 A2 4D 1E 66 23 5B 8F 65 5D [10:06:25]GetLastDocTimeStamp 1713261948 [10:06:25]current date 1713261986 [10:06:25]FM_GetShiftState [10:06:25]SAM_PROTO_GetShiftState [10:06:25]wFMCommunicate request_size=4 [10:06:25]MH_SAM_APDU [10:06:25]CAPDU: 80 13 01 00 [10:06:25]Write to MH i2c: E2 08 00 7A 07 80 13 01 00 00 00 00 00 FE [10:06:25]Write i2c OK [10:06:25]MH_I2C_Read... [10:06:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:25]Read from MH i2c: E2 [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: E2 0E 00 [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: E2 0E 00 7A 07 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 AC [10:06:25]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:06:25]wFMCommunicate OK [10:06:25]SAM_PROTO_GetShiftState done [10:06:25]FM_GetShiftState done [10:06:25]opened in 1713226843 [10:06:25]opened+sec_in_day 1713313243 [10:06:25]quantity*price = 100033 [10:06:25]sum+1 = 100034 [10:06:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 54 16.04.2024 10:06 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29780 ФПД: 26773024026148 1/tax-web-control/client/api/v1/ticket?date=20240416T100626&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29780&fm=26773024026148&tin=02508201610067®Number=0000138879044617&sum=100000 [10:06:26]StoreToDocumentArchive [10:06:26]shift 118 fd 29780 [10:06:26]save to /storage/0118/doc_00029780 [10:06:26]save last doc name /storage/0118/doc_00029780 to /storage/kkm_last_doc_name [10:06:26]save OK [10:06:26]Clear old archive folders... [10:06:26]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:06:26]tlvbuf is 001753B0 [10:06:26]SAM_PROTO_ClearQueue [10:06:26]wFMCommunicate request_size=4 [10:06:26]MH_SAM_APDU [10:06:26]CAPDU: 80 09 00 00 [10:06:26]Write to MH i2c: E2 08 00 87 07 80 09 00 00 00 00 00 00 00 [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:26]Read from MH i2c: E2 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 87 07 00 90 00 02 [10:06:26]RAPDU: 90 00 [10:06:26]wFMCommunicate OK [10:06:26]SAM_PROTO_ClearQueue done [10:06:26]KKMCreateOFDPacket [10:06:26]OFDProtocolAddRootSTLVToBuf [10:06:26]FM_MakeSignedData [10:06:26]FM_MakeSignedData [10:06:26]SAM_PROTO_SignData [10:06:26]wFMCommunicate request_size=4 [10:06:26]MH_SAM_APDU [10:06:26]CAPDU: 80 0D 01 02 [10:06:26]Write to MH i2c: E2 08 00 88 07 80 0D 01 02 00 00 00 00 08 [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:26]Read from MH i2c: E2 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 88 07 00 90 00 03 [10:06:26]RAPDU: 90 00 [10:06:26]wFMCommunicate OK [10:06:26]wFMCommunicate request_size=255 [10:06:26]MH_SAM_APDU [10:06:26]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A2 4D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 74 00 00 35 04 06 00 18 59 [10:06:26]Write to MH i2c: E2 02 01 89 07 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A2 4D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 74 00 00 35 04 06 00 18 59 00 00 78 [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:26]Read from MH i2c: E2 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 89 07 00 90 00 04 [10:06:26]RAPDU: 90 00 [10:06:26]wFMCommunicate OK [10:06:26]wFMCommunicate request_size=9 [10:06:26]MH_SAM_APDU [10:06:26]CAPDU: 80 0D 02 02 04 94 96 2E 24 [10:06:26]Write to MH i2c: E2 0C 00 8A 07 80 0D 02 02 04 00 94 96 2E 24 00 00 8F [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:26]Read from MH i2c: E2 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 8A 07 00 90 00 05 [10:06:26]RAPDU: 90 00 [10:06:26]wFMCommunicate OK [10:06:26]wFMCommunicate request_size=4 [10:06:26]MH_SAM_APDU [10:06:26]CAPDU: 80 0D 03 02 [10:06:26]Write to MH i2c: E2 08 00 8B 07 80 0D 03 02 00 00 00 00 0D [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:26]Read from MH i2c: E2 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 0B 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 0B 00 8B 07 00 78 D1 B9 85 99 04 6F 1A 90 00 BB [10:06:26]RAPDU: 78 D1 B9 85 99 04 6F 1A 90 00 [10:06:26]wFMCommunicate OK [10:06:26]SAM_PROTO_SignData done [10:06:26]FM_MakeSignedData done [10:06:26]CreateOFDProtocolMessage [10:06:26]wFMCommunicate request_size=4 [10:06:26]MH_SAM_APDU [10:06:26]CAPDU: 80 11 00 00 [10:06:26]Write to MH i2c: E2 08 00 8C 07 80 11 00 00 00 00 00 00 0D [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:27]Read from MH i2c: E2 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 17 00 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 17 00 8C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5C [10:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:06:27]wFMCommunicate OK [10:06:27]CreateOFDProtocolMessage done [10:06:27]OFDSenderStorePacket 29780 [10:06:27]StoreOFDPacket docnum=29780 [10:06:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 BA EB 06 01 3A 4A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A2 4D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 74 00 00 35 04 06 00 18 59 94 96 2E 24 78 D1 B9 85 99 04 6F 1A [10:06:27]CheckFolder [10:06:27]dirname=/storage/ofd_packets [10:06:27]CheckFolder done [10:06:27]ProducePacketName [10:06:27]name=ofd_packets/00029780 [10:06:27]NVStorageSaveData ofd_packets/00029780 [10:06:27]File name is /storage/ofd_packets/00029780 [10:06:27]Write 300 bytes [10:06:27]NVStorageSaveData done [10:06:27]OFDSenderStorePacket done [10:06:27]KKMCreateOFDPacket done [10:06:27]NVStorageSaveData kkm_last_timestamp [10:06:27]File name is /storage/kkm_last_timestamp [10:06:27]Write 4 bytes [10:06:27]NVStorageSaveData done [10:06:27]ExternCall_PrintAddStr [10:06:27]wPrintStart [10:06:27]Write to MH i2c: 01 00 00 8D 07 94 [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: 01 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: 01 07 00 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: 01 07 00 8D 07 00 00 00 00 00 FF 0F A9 [10:06:27]RasterBufferAndPrint [10:06:27]line Счет N : (1)348261 [10:06:27]line ИНН: 02508201610067 [10:06:27]line Контрольно-Кассовый Чек [10:06:27]line ПРОДАЖА [10:06:27]line ТРК (МРК, ГНК) : 71 [10:06:27]line Товар: 2711129700 [10:06:27]line ГАЗ-К-5 [10:06:27]line 29.950 * 33.40 [10:06:27]line = 1000.33 [10:06:27]line НДС 12% НСП 1% [10:06:27]line > о реализуемом товаре [10:06:27]line ОКРУГЛЕНИЕ: -0.33 [10:06:27]line ИТОГО: 1000.00 [10:06:27]line Внесено: 1000.00 [10:06:27]line СДАЧА: 0.00 [10:06:27]line НСП 1% : 8.85 [10:06:27]line НДС 12% : 106.23 [10:06:27]line Наличными: 1000.00 [10:06:27]line Безнал.: 0.00 [10:06:27]line Место: АЗС № 108 "Партнер Нефть" [10:06:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:06:27]line СНО: Общий режим [10:06:27]line Чек 54 16.04.2024 10:06 [10:06:27]line Смена: 118 ФФД: 1.0 [10:06:27]line ЗНМ: 0300000027 [10:06:27]line РНМ: 0000138879044617 [10:06:27]line Версия ККМ: 001 [10:06:27]line ФМ: 0000000000963154 [10:06:27]line ФД: 29780 [10:06:27]line ФПД: 26773024026148 [10:06:27]line 1/tax-web-control/client/api/v1/ticket?date=20240416T100626&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29780&fm=26773024026148&tin=02508201610067®Number=0000138879044617&sum=100000 [10:06:27]OFD Sender: Processing packet 29780 [packets to send 8, broken 7] [10:06:27]ProducePacketName [10:06:27]name=ofd_packets/00029780 [10:06:27]OFD Sender: To server: pG, [10:06:27]CommunicateWithHost lk.salyk.kg:30040 [10:06:27]ConnectInit lk.salyk.kg [10:06:27]written 0, free lines is 4095 [10:06:27]Connected sock=9 [10:06:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 BA EB 06 01 3A 4A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 C1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A2 4D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 74 00 00 35 04 06 00 18 59 94 96 2E 24 78 D1 B9 85 99 04 6F 1A [10:06:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 32 4F 47 00 9F 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 54 74 00 00 F4 03 04 00 40 F8 1D 66 B6 04 01 00 00 70 2C 46 E5 AC BF 77 EE [10:06:27]CommunicateWithHost err = 0 [10:06:27]CheckOFDResponse [10:06:27]1017 (14) - 77093643461234 [10:06:27]1041 (16) - 0000000000963154 [10:06:27]1040 (4) - 29780 [10:06:27]1012 (4) - 16.04.2024 04:02 [10:06:27]1206 (1) - 0 [10:06:27]OFD Sender: Remove packet 29780 [10:06:27]ProducePacketName [10:06:27]name=ofd_packets/00029780 [10:06:27]NVStorageDeleteData [10:06:27]Write to MH i2c: 01 00 00 B7 07 BE [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: 01 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: 01 07 00 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: 01 07 00 B7 07 00 00 00 00 00 C0 0C 91 [10:06:27]RasterBufferAndPrint [10:06:27]line [10:06:27]line [10:06:27]line [10:06:27]line [10:06:27]line [10:06:27]written 0, free lines is 3269 [10:06:27]MH_Cut [10:06:27]Write to MH i2c: D1 01 00 BE 07 01 97 [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: D1 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: D1 01 00 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: D1 01 00 BE 07 00 96 [10:06:27]Write to MH i2c: 01 00 00 BF 07 C6 [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:28]OFD Sender: No OFD packet to send [10:06:28]*** Cut start [10:06:28]*** Partial cut [10:06:28]*** CUTSNS_PIN = 1 [10:06:28]*** CUTSNS_PIN = 0 [10:06:28]*** Brake cut motor [10:06:29]Read from MH i2c: 01 [10:06:29]MH_I2C_Read... [10:06:29]*** Stop cut motor [10:06:29]*** Cut end [10:06:29]Read from MH i2c: 01 07 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: 01 07 00 BF 07 00 00 00 00 00 FF 0F DB [10:06:29]process_action close_receipt done [10:06:29]requested_data is exist [10:06:29]produce_requested_data [10:06:29]requested_item fm.sn is exist - process it [10:06:29]wFMCommunicate request_size=4 [10:06:29]MH_SAM_APDU [10:06:29]CAPDU: 80 11 00 00 [10:06:29]Write to MH i2c: E2 08 00 C0 07 80 11 00 00 00 00 00 00 41 [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:29]Read from MH i2c: E2 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 17 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 17 00 C0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 90 [10:06:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:06:29]wFMCommunicate OK [10:06:29]requested_item fd.num is exist - process it [10:06:29]SAM_PROTO_GetFieldsCounters [10:06:29]wFMCommunicate request_size=4 [10:06:29]MH_SAM_APDU [10:06:29]CAPDU: 80 13 00 00 [10:06:29]Write to MH i2c: E2 08 00 C1 07 80 13 00 00 00 00 00 00 44 [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:29]Read from MH i2c: E2 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 62 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 62 00 C1 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 54 74 00 00 0E 04 04 00 76 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 62 [10:06:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 54 74 00 00 0E 04 04 00 76 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 [10:06:29]wFMCommunicate OK [10:06:29]SAM_PROTO_GetFieldsCounters done [10:06:29]requested_item shift.num is exist - process it [10:06:29]requested_item shift.opened is exist - process it [10:06:29]req_shift_opened [10:06:29]FM_GetShiftState [10:06:29]SAM_PROTO_GetShiftState [10:06:29]wFMCommunicate request_size=4 [10:06:29]MH_SAM_APDU [10:06:29]CAPDU: 80 13 01 00 [10:06:29]Write to MH i2c: E2 08 00 C2 07 80 13 01 00 00 00 00 00 46 [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:29]Read from MH i2c: E2 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 0E 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 0E 00 C2 07 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 F4 [10:06:29]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:06:29]wFMCommunicate OK [10:06:29]SAM_PROTO_GetShiftState done [10:06:29]FM_GetShiftState done [10:06:29]req_shift_opened done [10:06:29]requested_item shift.open_date is exist - process it [10:06:29]req_shift_open_date [10:06:29]req_shift_open_date done [10:06:29]produce_requested_data done [10:06:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29780,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:06:29]process_action_free close_receipt [10:06:29]json_value_free [10:06:29]json_value_free done [10:06:29]process_json_proto returns [10:06:29]Send response to host [10:06:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29780,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:06:29]free response buf [10:06:29]execute_script done [10:06:29]execute_script returns [10:06:29]free content buf [10:06:29]Sock 10.Close socket [10:06:29]Sock 10.Thread stoped [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:18]OFD Sender: No OFD packet to send [10:08:23]OFD Sender: No OFD packet to send [10:08:28]OFD Sender: No OFD packet to send [10:08:33]OFD Sender: No OFD packet to send [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:48]accept exits with 7 [10:08:48]New connection [10:08:48]New thread 3067276644 created [10:08:48]Thread 3067133284 joined [10:08:48]Waiting for new connection... [10:08:48] Sock 7.Parse request [10:08:48]Sock 7.Check first char [10:08:48]Sock 7.First char is OK [10:08:48]request: POST /json_proto HTTP/1.0 [10:08:48]Method: POST [10:08:48]URL: /json_proto [10:08:48]Method is POST - this is cgi request [10:08:48]url: /json_proto [10:08:48]query_string will be loaded in cgi processing [10:08:48]execute_cgi json_proto POST (null) [10:08:48]execute_cgi path=json_proto method=POST [10:08:48]POST find Content-Length [10:08:48]Host: 172.17.33.3:8080 [10:08:48]Content-Length: 810 [10:08:48]Content-Type: application/json [10:08:48] [10:08:48]POST finish read [10:08:48]Found Content-Length = 810 [10:08:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:48]execute_script... [10:08: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 : (1)348263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:48]POST & json_proto [10:08:48]process_json_proto [10:08:48]json parsed OK: [10:08:48]protocol is kg_v1.0 [10:08:48]action value=close_receipt [10:08:48]process_action close_receipt [10:08:48]cmd_close_receipt [10:08:48]MH_GetDate [10:08:48]Write to MH i2c: F0 00 00 C3 07 B9 [10:08:48]Write i2c OK [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: F0 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: F0 09 00 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: F0 09 00 C3 07 00 31 4E 1E 66 23 5B 8F 65 37 [10:08:48]GetLastDocTimeStamp 1713261986 [10:08:48]current date 1713262129 [10:08:48]FM_GetShiftState [10:08:48]SAM_PROTO_GetShiftState [10:08:48]wFMCommunicate request_size=4 [10:08:48]MH_SAM_APDU [10:08:48]CAPDU: 80 13 01 00 [10:08:48]Write to MH i2c: E2 08 00 C4 07 80 13 01 00 00 00 00 00 48 [10:08:48]Write i2c OK [10:08:48]MH_I2C_Read... [10:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:48]Read from MH i2c: E2 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: E2 0E 00 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: E2 0E 00 C4 07 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 F6 [10:08:48]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:08:48]wFMCommunicate OK [10:08:48]SAM_PROTO_GetShiftState done [10:08:48]FM_GetShiftState done [10:08:48]opened in 1713226843 [10:08:48]opened+sec_in_day 1713313243 [10:08:48]quantity*price = 70011 [10:08:48]sum+1 = 70012 [10:08:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.11 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 0.00 Безнал.: 700.11 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 55 16.04.2024 10:08 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29781 ФПД: 223467288264258 1/tax-web-control/client/api/v1/ticket?date=20240416T100849&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29781&fm=223467288264258&tin=02508201610067®Number=0000138879044617&sum=70011 [10:08:49]StoreToDocumentArchive [10:08:49]shift 118 fd 29781 [10:08:49]save to /storage/0118/doc_00029781 [10:08:49]save last doc name /storage/0118/doc_00029781 to /storage/kkm_last_doc_name [10:08:49]save OK [10:08:49]Clear old archive folders... [10:08:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:08:49]tlvbuf is 00174FE0 [10:08:49]SAM_PROTO_ClearQueue [10:08:49]wFMCommunicate request_size=4 [10:08:49]MH_SAM_APDU [10:08:49]CAPDU: 80 09 00 00 [10:08:49]Write to MH i2c: E2 08 00 D1 07 80 09 00 00 00 00 00 00 4A [10:08:49]Write i2c OK [10:08:49]MH_I2C_Read... [10:08:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:49]Read from MH i2c: E2 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 03 00 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 03 00 D1 07 00 90 00 4C [10:08:49]RAPDU: 90 00 [10:08:49]wFMCommunicate OK [10:08:49]SAM_PROTO_ClearQueue done [10:08:49]KKMCreateOFDPacket [10:08:49]OFDProtocolAddRootSTLVToBuf [10:08:49]FM_MakeSignedData [10:08:49]FM_MakeSignedData [10:08:49]SAM_PROTO_SignData [10:08:49]wFMCommunicate request_size=4 [10:08:49]MH_SAM_APDU [10:08:49]CAPDU: 80 0D 01 02 [10:08:49]Write to MH i2c: E2 08 00 D2 07 80 0D 01 02 00 00 00 00 52 [10:08:49]Write i2c OK [10:08:49]MH_I2C_Read... [10:08:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:49]Read from MH i2c: E2 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 03 00 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 03 00 D2 07 00 90 00 4D [10:08:49]RAPDU: 90 00 [10:08:49]wFMCommunicate OK [10:08:49]wFMCommunicate request_size=255 [10:08:49]MH_SAM_APDU [10:08:49]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 0B 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 31 4E 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 74 00 00 35 04 06 00 [10:08:49]Write to MH i2c: E2 02 01 D3 07 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 0B 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 31 4E 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 74 00 00 35 04 06 00 00 00 5F [10:08:49]Write i2c OK [10:08:49]MH_I2C_Read... [10:08:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:49]Read from MH i2c: E2 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 03 00 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 03 00 D3 07 00 90 00 4E [10:08:49]RAPDU: 90 00 [10:08:49]wFMCommunicate OK [10:08:49]wFMCommunicate request_size=11 [10:08:49]MH_SAM_APDU [10:08:49]CAPDU: 80 0D 02 02 06 CB 3E 08 55 FE 42 [10:08:49]Write to MH i2c: E2 0E 00 D4 07 80 0D 02 02 06 00 CB 3E 08 55 FE 42 00 00 07 [10:08:49]Write i2c OK [10:08:49]MH_I2C_Read... [10:08:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:49]Read from MH i2c: E2 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 03 00 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 03 00 D4 07 00 90 00 4F [10:08:49]RAPDU: 90 00 [10:08:49]wFMCommunicate OK [10:08:49]wFMCommunicate request_size=4 [10:08:49]MH_SAM_APDU [10:08:49]CAPDU: 80 0D 03 02 [10:08:49]Write to MH i2c: E2 08 00 D5 07 80 0D 03 02 00 00 00 00 57 [10:08:49]Write i2c OK [10:08:49]MH_I2C_Read... [10:08:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:49]Read from MH i2c: E2 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 0B 00 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 0B 00 D5 07 00 6F CC 1F 27 3F 0B B7 16 90 00 F0 [10:08:49]RAPDU: 6F CC 1F 27 3F 0B B7 16 90 00 [10:08:49]wFMCommunicate OK [10:08:49]SAM_PROTO_SignData done [10:08:49]FM_MakeSignedData done [10:08:49]CreateOFDProtocolMessage [10:08:49]wFMCommunicate request_size=4 [10:08:49]MH_SAM_APDU [10:08:49]CAPDU: 80 11 00 00 [10:08:49]Write to MH i2c: E2 08 00 D6 07 80 11 00 00 00 00 00 00 57 [10:08:49]Write i2c OK [10:08:49]MH_I2C_Read... [10:08:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:49]Read from MH i2c: E2 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 17 00 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: E2 17 00 D6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A6 [10:08:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:08:49]wFMCommunicate OK [10:08:49]CreateOFDProtocolMessage done [10:08:49]OFDSenderStorePacket 29781 [10:08:49]StoreOFDPacket docnum=29781 [10:08:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 E5 DB 08 01 0D 99 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 0B 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 31 4E 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 74 00 00 35 04 06 00 CB 3E 08 55 FE 42 6F CC 1F 27 3F 0B B7 16 [10:08:49]CheckFolder [10:08:49]dirname=/storage/ofd_packets [10:08:49]CheckFolder done [10:08:49]ProducePacketName [10:08:49]name=ofd_packets/00029781 [10:08:49]NVStorageSaveData ofd_packets/00029781 [10:08:49]File name is /storage/ofd_packets/00029781 [10:08:49]Write 302 bytes [10:08:49]NVStorageSaveData done [10:08:49]OFDSenderStorePacket done [10:08:49]KKMCreateOFDPacket done [10:08:49]NVStorageSaveData kkm_last_timestamp [10:08:49]File name is /storage/kkm_last_timestamp [10:08:49]Write 4 bytes [10:08:49]NVStorageSaveData done [10:08:49]ExternCall_PrintAddStr [10:08:49]wPrintStart [10:08:49]Write to MH i2c: 01 00 00 D7 07 DE [10:08:49]Write i2c OK [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: 01 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: 01 07 00 [10:08:49]MH_I2C_Read... [10:08:49]Read from MH i2c: 01 07 00 D7 07 00 00 00 00 00 FF 0F F3 [10:08:49]RasterBufferAndPrint [10:08:49]line Счет N : (1)348263 [10:08:49]line ИНН: 02508201610067 [10:08:49]line Контрольно-Кассовый Чек [10:08:49]line ПРОДАЖА [10:08:49]line ТРК (МРК, ГНК) : 31 [10:08:49]line Товар: 2710124130 [10:08:49]line SUPER-92-К-5 [10:08:49]line 10.640 * 65.80 [10:08:49]line = 700.11 [10:08:49]line НДС 12% НСП 1% [10:08:49]line > о реализуемом товаре [10:08:49]line ИТОГО: 700.11 [10:08:49]line НСП 1% : 6.20 [10:08:49]line НДС 12% : 74.35 [10:08:49]line Наличными: 0.00 [10:08:49]line Безнал.: 700.11 [10:08:49]line Место: АЗС № 108 "Партнер Нефть" [10:08:49]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:08:49]line СНО: Общий режим [10:08:49]line Чек 55 16.04.2024 10:08 [10:08:49]line Смена: 118 ФФД: 1.0 [10:08:49]line ЗНМ: 0300000027 [10:08:49]line РНМ: 0000138879044617 [10:08:49]line Версия ККМ: 001 [10:08:49]line Платежная система: Бакай Банк [10:08:49]line ФМ: 0000000000963154 [10:08:49]line ФД: 29781 [10:08:49]line ФПД: 223467288264258 [10:08:49]line 1/tax-web-control/client/api/v1/ticket?date=20240416T100849&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29781&fm=223467288264258&tin=02508201610067®Number=0000138879044617&sum=70011 [10:08:50]OFD Sender: Processing packet 29781 [packets to send 8, broken 7] [10:08:50]ProducePacketName [10:08:50]name=ofd_packets/00029781 [10:08:50]OFD Sender: To server: pG, [10:08:50]CommunicateWithHost lk.salyk.kg:30040 [10:08:50]ConnectInit lk.salyk.kg [10:08:50]written 0, free lines is 4095 [10:08:50]Connected sock=10 [10:08:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 E5 DB 08 01 0D 99 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 0B 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 31 4E 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 74 00 00 35 04 06 00 CB 3E 08 55 FE 42 6F CC 1F 27 3F 0B B7 16 [10:08:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EF 98 47 00 ED F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 74 00 00 F4 03 04 00 CF F8 1D 66 B6 04 01 00 00 5E 35 44 53 B5 55 5F 82 [10:08:50]CommunicateWithHost err = 0 [10:08:50]CheckOFDResponse [10:08:50]1017 (14) - 77093643461234 [10:08:50]1041 (16) - 0000000000963154 [10:08:50]1040 (4) - 29781 [10:08:50]1012 (4) - 16.04.2024 04:04 [10:08:50]1206 (1) - 0 [10:08:50]OFD Sender: Remove packet 29781 [10:08:50]ProducePacketName [10:08:50]name=ofd_packets/00029781 [10:08:50]NVStorageDeleteData [10:08:50]Write to MH i2c: 01 00 00 00 08 08 [10:08:50]Write i2c OK [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: 01 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: 01 07 00 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: 01 07 00 00 08 00 00 00 00 00 E3 0C FE [10:08:50]RasterBufferAndPrint [10:08:50]line [10:08:50]line [10:08:50]line [10:08:50]line [10:08:50]line [10:08:50]written 0, free lines is 3305 [10:08:50]MH_Cut [10:08:50]Write to MH i2c: D1 01 00 07 08 01 E1 [10:08:50]Write i2c OK [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: D1 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: D1 01 00 [10:08:50]MH_I2C_Read... [10:08:50]Read from MH i2c: D1 01 00 07 08 00 E0 [10:08:50]Write to MH i2c: 01 00 00 08 08 10 [10:08:50]Write i2c OK [10:08:50]MH_I2C_Read... [10:08:51]OFD Sender: No OFD packet to send [10:08:51]*** Cut start [10:08:51]*** Partial cut [10:08:51]*** CUTSNS_PIN = 1 [10:08:51]*** CUTSNS_PIN = 0 [10:08:51]*** Brake cut motor [10:08:52]Read from MH i2c: 01 [10:08:52]MH_I2C_Read... [10:08:52]*** Stop cut motor [10:08:52]*** Cut end [10:08:52]Read from MH i2c: 01 07 00 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: 01 07 00 08 08 00 00 00 00 00 FF 0F 25 [10:08:52]process_action close_receipt done [10:08:52]requested_data is exist [10:08:52]produce_requested_data [10:08:52]requested_item fm.sn is exist - process it [10:08:52]wFMCommunicate request_size=4 [10:08:52]MH_SAM_APDU [10:08:52]CAPDU: 80 11 00 00 [10:08:52]Write to MH i2c: E2 08 00 09 08 80 11 00 00 00 00 00 00 8B [10:08:52]Write i2c OK [10:08:52]MH_I2C_Read... [10:08:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:52]Read from MH i2c: E2 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 17 00 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 17 00 09 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DA [10:08:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:08:52]wFMCommunicate OK [10:08:52]requested_item fd.num is exist - process it [10:08:52]SAM_PROTO_GetFieldsCounters [10:08:52]wFMCommunicate request_size=4 [10:08:52]MH_SAM_APDU [10:08:52]CAPDU: 80 13 00 00 [10:08:52]Write to MH i2c: E2 08 00 0A 08 80 13 00 00 00 00 00 00 8E [10:08:52]Write i2c OK [10:08:52]MH_I2C_Read... [10:08:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:52]Read from MH i2c: E2 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 62 00 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 62 00 0A 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 55 74 00 00 0E 04 04 00 76 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 B0 [10:08:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 55 74 00 00 0E 04 04 00 76 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 [10:08:52]wFMCommunicate OK [10:08:52]SAM_PROTO_GetFieldsCounters done [10:08:52]requested_item shift.num is exist - process it [10:08:52]requested_item shift.opened is exist - process it [10:08:52]req_shift_opened [10:08:52]FM_GetShiftState [10:08:52]SAM_PROTO_GetShiftState [10:08:52]wFMCommunicate request_size=4 [10:08:52]MH_SAM_APDU [10:08:52]CAPDU: 80 13 01 00 [10:08:52]Write to MH i2c: E2 08 00 0B 08 80 13 01 00 00 00 00 00 90 [10:08:52]Write i2c OK [10:08:52]MH_I2C_Read... [10:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:52]Read from MH i2c: E2 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 0E 00 [10:08:52]MH_I2C_Read... [10:08:52]Read from MH i2c: E2 0E 00 0B 08 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 3E [10:08:52]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:08:52]wFMCommunicate OK [10:08:52]SAM_PROTO_GetShiftState done [10:08:52]FM_GetShiftState done [10:08:52]req_shift_opened done [10:08:52]requested_item shift.open_date is exist - process it [10:08:52]req_shift_open_date [10:08:52]req_shift_open_date done [10:08:52]produce_requested_data done [10:08:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29781,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:08:52]process_action_free close_receipt [10:08:52]json_value_free [10:08:52]json_value_free done [10:08:52]process_json_proto returns [10:08:52]Send response to host [10:08:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29781,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:08:52]free response buf [10:08:52]execute_script done [10:08:52]execute_script returns [10:08:52]free content buf [10:08:52]Sock 7.Close socket [10:08:52]Sock 7.Thread stoped [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:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:14]accept exits with 9 [10:13:14]New connection [10:13:14]New thread 3067133284 created [10:13:14]Thread 3067276644 joined [10:13:14]Waiting for new connection... [10:13:14] Sock 9.Parse request [10:13:14]Sock 9.Check first char [10:13:14]Sock 9.First char is OK [10:13:14]request: POST /json_proto HTTP/1.0 [10:13:14]Method: POST [10:13:14]URL: /json_proto [10:13:14]Method is POST - this is cgi request [10:13:14]url: /json_proto [10:13:14]query_string will be loaded in cgi processing [10:13:14]execute_cgi json_proto POST (null) [10:13:14]execute_cgi path=json_proto method=POST [10:13:14]POST find Content-Length [10:13:14]Host: 172.17.33.3:8080 [10:13:14]Content-Length: 1204 [10:13:14]Content-Type: application/json [10:13:14] [10:13:14]POST finish read [10:13:14]Found Content-Length = 1204 [10:13:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348264\u000A16.04.2024 09:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.580 x 72.90\u000A\u0418\u0422\u041E\u0413: 1500.28\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:14]execute_script... [10:13:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348264\u000A16.04.2024 09:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.580 x 72.90\u000A\u0418\u0422\u041E\u0413: 1500.28\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:14]POST & json_proto [10:13:14]process_json_proto [10:13:14]json parsed OK: [10:13:14]protocol is kg_v1.0 [10:13:14]action value=print_text [10:13:14]process_action print_text [10:13:14]cmd_print_text [10:13:14]ExternCall_PrintAddStr [10:13:14]wPrintStart [10:13:14]Write to MH i2c: 01 00 00 0C 08 14 [10:13:14]Write i2c OK [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: 01 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: 01 07 00 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: 01 07 00 0C 08 00 00 00 00 00 FF 0F 29 [10:13:14]RasterBufferAndPrint [10:13:14]line *****ТОВАРНЫЙ ЧЕК***** [10:13:14]line АЗС 108 [10:13:14]line Партнер нефть [10:13:14]line 02508201610067 [10:13:14]line Кассир : Шадыканова Ж. [10:13:14]line Счет N : (1)348264 [10:13:14]line 16.04.2024 09:54 [10:13:14]line ПРОДАЖА [10:13:14]line ТРК (МРК, ГНК): 51 [10:13:14]line Вид ГСМ : 2710194210 [10:13:14]line ДТ-К-5 [10:13:14]line 20.580 x 72.90 [10:13:14]line ИТОГ: 1500.28 [10:13:14]line Тип оплаты: Талоны: Топливная Карта [10:13:14]line 65563 [10:13:14]line ______________________ [10:13:14]line (подпись) [10:13:14]written 0, free lines is 4095 [10:13:14]Write to MH i2c: 01 00 00 21 08 29 [10:13:14]Write i2c OK [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: 01 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: 01 07 00 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: 01 07 00 21 08 00 00 00 00 00 F5 0D 32 [10:13:14]RasterBufferAndPrint [10:13:14]line [10:13:14]line [10:13:14]line [10:13:14]line [10:13:14]line [10:13:14]written 0, free lines is 3575 [10:13:14]MH_Cut [10:13:14]Write to MH i2c: D1 01 00 28 08 01 02 [10:13:14]Write i2c OK [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: D1 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: D1 01 00 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: D1 01 00 28 08 00 01 [10:13:14]Write to MH i2c: 01 00 00 29 08 31 [10:13:14]Write i2c OK [10:13:14]MH_I2C_Read... [10:13:15]*** Cut start [10:13:15]*** Partial cut [10:13:15]*** CUTSNS_PIN = 1 [10:13:15]*** CUTSNS_PIN = 0 [10:13:15]*** Brake cut motor [10:13:15]Read from MH i2c: 01 [10:13:15]MH_I2C_Read... [10:13:15]*** Stop cut motor [10:13:15]*** Cut end [10:13:15]Read from MH i2c: 01 07 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: 01 07 00 29 08 00 00 00 00 00 FF 0F 46 [10:13:15]process_action print_text done [10:13:15]requested_data is exist [10:13:15]produce_requested_data [10:13:15]requested_item fm.sn is exist - process it [10:13:15]wFMCommunicate request_size=4 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 11 00 00 [10:13:15]Write to MH i2c: E2 08 00 2A 08 80 11 00 00 00 00 00 00 AC [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 17 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 17 00 2A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FB [10:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:13:15]wFMCommunicate OK [10:13:15]requested_item fd.num is exist - process it [10:13:15]SAM_PROTO_GetFieldsCounters [10:13:15]wFMCommunicate request_size=4 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 13 00 00 [10:13:15]Write to MH i2c: E2 08 00 2B 08 80 13 00 00 00 00 00 00 AF [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 62 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 62 00 2B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 55 74 00 00 0E 04 04 00 76 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 D1 [10:13:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 55 74 00 00 0E 04 04 00 76 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 [10:13:15]wFMCommunicate OK [10:13:15]SAM_PROTO_GetFieldsCounters done [10:13:15]requested_item shift.num is exist - process it [10:13:15]requested_item shift.opened is exist - process it [10:13:15]req_shift_opened [10:13:15]FM_GetShiftState [10:13:15]SAM_PROTO_GetShiftState [10:13:15]wFMCommunicate request_size=4 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 13 01 00 [10:13:15]Write to MH i2c: E2 08 00 2C 08 80 13 01 00 00 00 00 00 B1 [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 0E 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 0E 00 2C 08 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 5F [10:13:15]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:13:15]wFMCommunicate OK [10:13:15]SAM_PROTO_GetShiftState done [10:13:15]FM_GetShiftState done [10:13:15]req_shift_opened done [10:13:15]requested_item shift.open_date is exist - process it [10:13:15]req_shift_open_date [10:13:15]req_shift_open_date done [10:13:15]produce_requested_data done [10:13:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29781,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:13:15]process_action_free print_text [10:13:15]json_value_free [10:13:15]json_value_free done [10:13:15]process_json_proto returns [10:13:15]Send response to host [10:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29781,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:13:15]free response buf [10:13:15]execute_script done [10:13:15]execute_script returns [10:13:15]free content buf [10:13:15]Sock 9.Close socket [10:13:15]Sock 9.Thread stoped [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:06]OFD Sender: No OFD packet to send [10:16:11]OFD Sender: No OFD packet to send [10:16:16]OFD Sender: No OFD packet to send [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:31]OFD Sender: No OFD packet to send [10:16:36]OFD Sender: No OFD packet to send [10:16:41]OFD Sender: No OFD packet to send [10:16:46]OFD Sender: No OFD packet to send [10:16:51]OFD Sender: No OFD packet to send [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:06]OFD Sender: No OFD packet to send [10:17:11]OFD Sender: No OFD packet to send [10:17:16]OFD Sender: No OFD packet to send [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:38]accept exits with 7 [10:21:38]New connection [10:21:38]New thread 3067276644 created [10:21:38]Thread 3067133284 joined [10:21:38]Waiting for new connection... [10:21:38] Sock 7.Parse request [10:21:38]Sock 7.Check first char [10:21:38]Sock 7.First char is OK [10:21:38]request: POST /json_proto HTTP/1.0 [10:21:38]Method: POST [10:21:38]URL: /json_proto [10:21:38]Method is POST - this is cgi request [10:21:38]url: /json_proto [10:21:38]query_string will be loaded in cgi processing [10:21:38]execute_cgi json_proto POST (null) [10:21:38]execute_cgi path=json_proto method=POST [10:21:38]POST find Content-Length [10:21:38]Host: 172.17.33.3:8080 [10:21:38]Content-Length: 677 [10:21:38]Content-Type: application/json [10:21:38] [10:21:38]POST finish read [10:21:38]Found Content-Length = 677 [10:21:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.880, "sum" : 510.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:38]execute_script... [10:21: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)348265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.880, "sum" : 510.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:38]POST & json_proto [10:21:38]process_json_proto [10:21:38]json parsed OK: [10:21:38]protocol is kg_v1.0 [10:21:38]action value=close_receipt [10:21:38]process_action close_receipt [10:21:38]cmd_close_receipt [10:21:38]MH_GetDate [10:21:38]Write to MH i2c: F0 00 00 2D 08 24 [10:21:38]Write i2c OK [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: F0 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: F0 09 00 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: F0 09 00 2D 08 00 33 51 1E 66 23 5B 8F 65 A7 [10:21:38]GetLastDocTimeStamp 1713262129 [10:21:38]current date 1713262899 [10:21:38]FM_GetShiftState [10:21:38]SAM_PROTO_GetShiftState [10:21:38]wFMCommunicate request_size=4 [10:21:38]MH_SAM_APDU [10:21:38]CAPDU: 80 13 01 00 [10:21:38]Write to MH i2c: E2 08 00 2E 08 80 13 01 00 00 00 00 00 B3 [10:21:38]Write i2c OK [10:21:38]MH_I2C_Read... [10:21:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:38]Read from MH i2c: E2 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: E2 0E 00 [10:21:38]MH_I2C_Read... [10:21:38]Read from MH i2c: E2 0E 00 2E 08 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 61 [10:21:38]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:21:38]wFMCommunicate OK [10:21:38]SAM_PROTO_GetShiftState done [10:21:38]FM_GetShiftState done [10:21:38]opened in 1713226843 [10:21:38]opened+sec_in_day 1713313243 [10:21:38]quantity*price = 51062 [10:21:38]sum+1 = 51063 [10:21:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 510.00 Внесено: 510.00 СДАЧА: 0.00 НСП 1% : 4.52 НДС 12% : 54.22 Наличными: 510.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 56 16.04.2024 10:21 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29782 ФПД: 95439002977362 1/tax-web-control/client/api/v1/ticket?date=20240416T102139&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29782&fm=95439002977362&tin=02508201610067®Number=0000138879044617&sum=51000 [10:21:39]StoreToDocumentArchive [10:21:39]shift 118 fd 29782 [10:21:39]save to /storage/0118/doc_00029782 [10:21:39]save last doc name /storage/0118/doc_00029782 to /storage/kkm_last_doc_name [10:21:39]save OK [10:21:39]Clear old archive folders... [10:21:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:39]tlvbuf is 001682B0 [10:21:39]SAM_PROTO_ClearQueue [10:21:39]wFMCommunicate request_size=4 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 09 00 00 [10:21:39]Write to MH i2c: E2 08 00 3B 08 80 09 00 00 00 00 00 00 B5 [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 3B 08 00 90 00 B7 [10:21:39]RAPDU: 90 00 [10:21:39]wFMCommunicate OK [10:21:39]SAM_PROTO_ClearQueue done [10:21:39]KKMCreateOFDPacket [10:21:39]OFDProtocolAddRootSTLVToBuf [10:21:39]FM_MakeSignedData [10:21:39]FM_MakeSignedData [10:21:39]SAM_PROTO_SignData [10:21:39]wFMCommunicate request_size=4 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 0D 01 02 [10:21:39]Write to MH i2c: E2 08 00 3C 08 80 0D 01 02 00 00 00 00 BD [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 3C 08 00 90 00 B8 [10:21:39]RAPDU: 90 00 [10:21:39]wFMCommunicate OK [10:21:39]wFMCommunicate request_size=255 [10:21:39]MH_SAM_APDU [10:21:39]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 C8 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 76 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 15 00 00 00 00 07 04 06 00 38 C7 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 33 51 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 74 00 00 35 04 06 00 56 [10:21:39]Write to MH i2c: E2 02 01 3D 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 76 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 15 00 00 00 00 07 04 06 00 38 C7 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 33 51 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 74 00 00 35 04 06 00 56 00 00 4C [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 3D 08 00 90 00 B9 [10:21:39]RAPDU: 90 00 [10:21:39]wFMCommunicate OK [10:21:39]wFMCommunicate request_size=10 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 0D 02 02 05 CD 1F DE C4 52 [10:21:39]Write to MH i2c: E2 0D 00 3E 08 80 0D 02 02 05 00 CD 1F DE C4 52 00 00 AA [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 03 00 3E 08 00 90 00 BA [10:21:39]RAPDU: 90 00 [10:21:39]wFMCommunicate OK [10:21:39]wFMCommunicate request_size=4 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 0D 03 02 [10:21:39]Write to MH i2c: E2 08 00 3F 08 80 0D 03 02 00 00 00 00 C2 [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:39]Read from MH i2c: E2 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 0B 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: E2 0B 00 3F 08 00 DA 69 A0 98 82 8A 23 51 90 00 BE [10:21:39]RAPDU: DA 69 A0 98 82 8A 23 51 90 00 [10:21:39]wFMCommunicate OK [10:21:39]SAM_PROTO_SignData done [10:21:39]FM_MakeSignedData done [10:21:39]CreateOFDProtocolMessage [10:21:39]wFMCommunicate request_size=4 [10:21:39]MH_SAM_APDU [10:21:39]CAPDU: 80 11 00 00 [10:21:39]Write to MH i2c: E2 08 00 40 08 80 11 00 00 00 00 00 00 C2 [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:40]Read from MH i2c: E2 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 17 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: E2 17 00 40 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 11 [10:21:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:21:40]wFMCommunicate OK [10:21:40]CreateOFDProtocolMessage done [10:21:40]OFDSenderStorePacket 29782 [10:21:40]StoreOFDPacket docnum=29782 [10:21:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 94 BF 07 01 5A 62 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 C8 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 76 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 15 00 00 00 00 07 04 06 00 38 C7 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 33 51 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 74 00 00 35 04 06 00 56 CD 1F DE C4 52 DA 69 A0 98 82 8A 23 51 [10:21:40]CheckFolder [10:21:40]dirname=/storage/ofd_packets [10:21:40]CheckFolder done [10:21:40]ProducePacketName [10:21:40]name=ofd_packets/00029782 [10:21:40]NVStorageSaveData ofd_packets/00029782 [10:21:40]File name is /storage/ofd_packets/00029782 [10:21:40]Write 301 bytes [10:21:40]NVStorageSaveData done [10:21:40]OFDSenderStorePacket done [10:21:40]KKMCreateOFDPacket done [10:21:40]NVStorageSaveData kkm_last_timestamp [10:21:40]File name is /storage/kkm_last_timestamp [10:21:40]Write 4 bytes [10:21:40]NVStorageSaveData done [10:21:40]ExternCall_PrintAddStr [10:21:40]wPrintStart [10:21:40]Write to MH i2c: 01 00 00 41 08 49 [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: 01 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: 01 07 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: 01 07 00 41 08 00 00 00 00 00 FF 0F 5E [10:21:40]RasterBufferAndPrint [10:21:40]line Счет N : (1)348265 [10:21:40]line ИНН: 02508201610067 [10:21:40]line Контрольно-Кассовый Чек [10:21:40]line ПРОДАЖА [10:21:40]line ТРК (МРК, ГНК) : 32 [10:21:40]line Товар: 2710124130 [10:21:40]line Аи-92-К-5 [10:21:40]line 7.880 * 64.80 [10:21:40]line = 510.62 [10:21:40]line НДС 12% НСП 1% [10:21:40]line > о реализуемом товаре [10:21:40]line ОКРУГЛЕНИЕ: -0.62 [10:21:40]line ИТОГО: 510.00 [10:21:40]line Внесено: 510.00 [10:21:40]line СДАЧА: 0.00 [10:21:40]line НСП 1% : 4.52 [10:21:40]line НДС 12% : 54.22 [10:21:40]line Наличными: 510.00 [10:21:40]line Безнал.: 0.00 [10:21:40]line Место: АЗС № 108 "Партнер Нефть" [10:21:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:21:40]line СНО: Общий режим [10:21:40]line Чек 56 16.04.2024 10:21 [10:21:40]line Смена: 118 ФФД: 1.0 [10:21:40]line ЗНМ: 0300000027 [10:21:40]line РНМ: 0000138879044617 [10:21:40]line Версия ККМ: 001 [10:21:40]line ФМ: 0000000000963154 [10:21:40]line ФД: 29782 [10:21:40]line ФПД: 95439002977362 [10:21:40]line 1/tax-web-control/client/api/v1/ticket?date=20240416T102139&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29782&fm=95439002977362&tin=02508201610067®Number=0000138879044617&sum=51000 [10:21:40]OFD Sender: Processing packet 29782 [packets to send 8, broken 7] [10:21:40]ProducePacketName [10:21:40]name=ofd_packets/00029782 [10:21:40]OFD Sender: To server: pG, [10:21:40]CommunicateWithHost lk.salyk.kg:30040 [10:21:40]ConnectInit lk.salyk.kg [10:21:40]written 0, free lines is 4095 [10:21:40]Connected sock=10 [10:21:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 94 BF 07 01 5A 62 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 C8 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 76 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 15 00 00 00 00 07 04 06 00 38 C7 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 33 51 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 74 00 00 35 04 06 00 56 CD 1F DE C4 52 DA 69 A0 98 82 8A 23 51 [10:21:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4A EF 47 00 E5 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 74 00 00 F4 03 04 00 D1 FB 1D 66 B6 04 01 00 00 35 75 2A 51 0F 27 8F F7 [10:21:40]CommunicateWithHost err = 0 [10:21:40]CheckOFDResponse [10:21:40]1017 (14) - 77093643461234 [10:21:40]1041 (16) - 0000000000963154 [10:21:40]1040 (4) - 29782 [10:21:40]1012 (4) - 16.04.2024 04:17 [10:21:40]1206 (1) - 0 [10:21:40]OFD Sender: Remove packet 29782 [10:21:40]ProducePacketName [10:21:40]name=ofd_packets/00029782 [10:21:40]NVStorageDeleteData [10:21:40]Write to MH i2c: 01 00 00 6B 08 73 [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: 01 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: 01 07 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: 01 07 00 6B 08 00 00 00 00 00 D5 0C 5B [10:21:40]RasterBufferAndPrint [10:21:40]line [10:21:40]line [10:21:40]line [10:21:40]line [10:21:40]line [10:21:40]written 0, free lines is 3292 [10:21:40]MH_Cut [10:21:40]Write to MH i2c: D1 01 00 72 08 01 4C [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: D1 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: D1 01 00 [10:21:40]MH_I2C_Read... [10:21:40]Read from MH i2c: D1 01 00 72 08 00 4B [10:21:40]Write to MH i2c: 01 00 00 73 08 7B [10:21:40]Write i2c OK [10:21:40]MH_I2C_Read... [10:21:41]OFD Sender: No OFD packet to send [10:21:41]*** Cut start [10:21:41]*** Partial cut [10:21:41]*** CUTSNS_PIN = 1 [10:21:41]*** CUTSNS_PIN = 0 [10:21:41]*** Brake cut motor [10:21:42]Read from MH i2c: 01 [10:21:42]MH_I2C_Read... [10:21:42]*** Stop cut motor [10:21:42]*** Cut end [10:21:42]Read from MH i2c: 01 07 00 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: 01 07 00 73 08 00 00 00 00 00 FF 0F 90 [10:21:42]process_action close_receipt done [10:21:42]requested_data is exist [10:21:42]produce_requested_data [10:21:42]requested_item fm.sn is exist - process it [10:21:42]wFMCommunicate request_size=4 [10:21:42]MH_SAM_APDU [10:21:42]CAPDU: 80 11 00 00 [10:21:42]Write to MH i2c: E2 08 00 74 08 80 11 00 00 00 00 00 00 F6 [10:21:42]Write i2c OK [10:21:42]MH_I2C_Read... [10:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:42]Read from MH i2c: E2 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 17 00 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 17 00 74 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 45 [10:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:21:42]wFMCommunicate OK [10:21:42]requested_item fd.num is exist - process it [10:21:42]SAM_PROTO_GetFieldsCounters [10:21:42]wFMCommunicate request_size=4 [10:21:42]MH_SAM_APDU [10:21:42]CAPDU: 80 13 00 00 [10:21:42]Write to MH i2c: E2 08 00 75 08 80 13 00 00 00 00 00 00 F9 [10:21:42]Write i2c OK [10:21:42]MH_I2C_Read... [10:21:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:42]Read from MH i2c: E2 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 62 00 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 62 00 75 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 56 74 00 00 0E 04 04 00 76 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 1F [10:21:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 56 74 00 00 0E 04 04 00 76 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 [10:21:42]wFMCommunicate OK [10:21:42]SAM_PROTO_GetFieldsCounters done [10:21:42]requested_item shift.num is exist - process it [10:21:42]requested_item shift.opened is exist - process it [10:21:42]req_shift_opened [10:21:42]FM_GetShiftState [10:21:42]SAM_PROTO_GetShiftState [10:21:42]wFMCommunicate request_size=4 [10:21:42]MH_SAM_APDU [10:21:42]CAPDU: 80 13 01 00 [10:21:42]Write to MH i2c: E2 08 00 76 08 80 13 01 00 00 00 00 00 FB [10:21:42]Write i2c OK [10:21:42]MH_I2C_Read... [10:21:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:42]Read from MH i2c: E2 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 0E 00 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 0E 00 76 08 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 A9 [10:21:42]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:21:42]wFMCommunicate OK [10:21:42]SAM_PROTO_GetShiftState done [10:21:42]FM_GetShiftState done [10:21:42]req_shift_opened done [10:21:42]requested_item shift.open_date is exist - process it [10:21:42]req_shift_open_date [10:21:42]req_shift_open_date done [10:21:42]produce_requested_data done [10:21:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29782,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:21:42]process_action_free close_receipt [10:21:42]json_value_free [10:21:42]json_value_free done [10:21:42]process_json_proto returns [10:21:42]Send response to host [10:21:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29782,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:21:42]free response buf [10:21:42]execute_script done [10:21:42]execute_script returns [10:21:42]free content buf [10:21:42]Sock 7.Close socket [10:21:42]Sock 7.Thread stoped [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:16]OFD Sender: No OFD packet to send [10:25:21]OFD Sender: No OFD packet to send [10:25:24]accept exits with 9 [10:25:24]New connection [10:25:24]New thread 3067133284 created [10:25:24]Thread 3067276644 joined [10:25:24]Waiting for new connection... [10:25:24] Sock 9.Parse request [10:25:24]Sock 9.Check first char [10:25:24]Sock 9.First char is OK [10:25:24]request: POST /json_proto HTTP/1.0 [10:25:24]Method: POST [10:25:24]URL: /json_proto [10:25:24]Method is POST - this is cgi request [10:25:24]url: /json_proto [10:25:24]query_string will be loaded in cgi processing [10:25:24]execute_cgi json_proto POST (null) [10:25:24]execute_cgi path=json_proto method=POST [10:25:24]POST find Content-Length [10:25:24]Host: 172.17.33.3:8080 [10:25:24]Content-Length: 1169 [10:25:24]Content-Type: application/json [10:25:24] [10:25:24]POST finish read [10:25:24]Found Content-Length = 1169 [10:25:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348266\u000A16.04.2024 10:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 45.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3280.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30088845\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:24]execute_script... [10:25:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348266\u000A16.04.2024 10:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 45.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3280.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30088845\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:24]POST & json_proto [10:25:24]process_json_proto [10:25:24]json parsed OK: [10:25:24]protocol is kg_v1.0 [10:25:24]action value=print_text [10:25:24]process_action print_text [10:25:24]cmd_print_text [10:25:24]ExternCall_PrintAddStr [10:25:24]wPrintStart [10:25:24]Write to MH i2c: 01 00 00 77 08 7F [10:25:24]Write i2c OK [10:25:24]MH_I2C_Read... [10:25:24]Read from MH i2c: 01 [10:25:24]MH_I2C_Read... [10:25:24]Read from MH i2c: 01 07 00 [10:25:24]MH_I2C_Read... [10:25:24]Read from MH i2c: 01 07 00 77 08 00 00 00 00 00 FF 0F 94 [10:25:24]RasterBufferAndPrint [10:25:24]line *****ТОВАРНЫЙ ЧЕК***** [10:25:24]line АЗС 108 [10:25:24]line Партнер нефть [10:25:24]line 02508201610067 [10:25:24]line Кассир : Шадыканова Ж. [10:25:24]line Счет N : (1)348266 [10:25:24]line 16.04.2024 10:06 [10:25:24]line ПРОДАЖА [10:25:24]line ТРК (МРК, ГНК): 33 [10:25:24]line Вид ГСМ : 2710124500 [10:25:24]line Аи-95-К-5 [10:25:24]line 45.000 x 72.90 [10:25:24]line ИТОГ: 3280.50 [10:25:24]line Тип оплаты: Талоны: ТК ГПНА Online [10:25:24]line 30088845 [10:25:24]line ______________________ [10:25:24]line (подпись) [10:25:24]written 0, free lines is 4095 [10:25:25]Write to MH i2c: 01 00 00 8C 08 94 [10:25:25]Write i2c OK [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: 01 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: 01 07 00 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: 01 07 00 8C 08 00 00 00 00 00 F7 0D 9F [10:25:25]RasterBufferAndPrint [10:25:25]line [10:25:25]line [10:25:25]line [10:25:25]line [10:25:25]line [10:25:25]written 0, free lines is 3577 [10:25:25]MH_Cut [10:25:25]Write to MH i2c: D1 01 00 93 08 01 6D [10:25:25]Write i2c OK [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: D1 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: D1 01 00 [10:25:25]MH_I2C_Read... [10:25:25]Read from MH i2c: D1 01 00 93 08 00 6C [10:25:25]Write to MH i2c: 01 00 00 94 08 9C [10:25:25]Write i2c OK [10:25:25]MH_I2C_Read... [10:25:25]*** Cut start [10:25:25]*** Partial cut [10:25:25]*** CUTSNS_PIN = 1 [10:25:25]*** CUTSNS_PIN = 0 [10:25:25]*** Brake cut motor [10:25:26]Read from MH i2c: 01 [10:25:26]MH_I2C_Read... [10:25:26]*** Stop cut motor [10:25:26]*** Cut end [10:25:26]Read from MH i2c: 01 07 00 [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: 01 07 00 94 08 00 00 00 00 00 FF 0F B1 [10:25:26]process_action print_text done [10:25:26]requested_data is exist [10:25:26]produce_requested_data [10:25:26]requested_item fm.sn is exist - process it [10:25:26]wFMCommunicate request_size=4 [10:25:26]MH_SAM_APDU [10:25:26]CAPDU: 80 11 00 00 [10:25:26]Write to MH i2c: E2 08 00 95 08 80 11 00 00 00 00 00 00 17 [10:25:26]Write i2c OK [10:25:26]MH_I2C_Read... [10:25:26]OFD Sender: No OFD packet to send [10:25:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:26]Read from MH i2c: E2 [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: E2 17 00 [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: E2 17 00 95 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 66 [10:25:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:25:26]wFMCommunicate OK [10:25:26]requested_item fd.num is exist - process it [10:25:26]SAM_PROTO_GetFieldsCounters [10:25:26]wFMCommunicate request_size=4 [10:25:26]MH_SAM_APDU [10:25:26]CAPDU: 80 13 00 00 [10:25:26]Write to MH i2c: E2 08 00 96 08 80 13 00 00 00 00 00 00 1A [10:25:26]Write i2c OK [10:25:26]MH_I2C_Read... [10:25:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:26]Read from MH i2c: E2 [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: E2 62 00 [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: E2 62 00 96 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 56 74 00 00 0E 04 04 00 76 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 40 [10:25:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 56 74 00 00 0E 04 04 00 76 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 [10:25:26]wFMCommunicate OK [10:25:26]SAM_PROTO_GetFieldsCounters done [10:25:26]requested_item shift.num is exist - process it [10:25:26]requested_item shift.opened is exist - process it [10:25:26]req_shift_opened [10:25:26]FM_GetShiftState [10:25:26]SAM_PROTO_GetShiftState [10:25:26]wFMCommunicate request_size=4 [10:25:26]MH_SAM_APDU [10:25:26]CAPDU: 80 13 01 00 [10:25:26]Write to MH i2c: E2 08 00 97 08 80 13 01 00 00 00 00 00 1C [10:25:26]Write i2c OK [10:25:26]MH_I2C_Read... [10:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:26]Read from MH i2c: E2 [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: E2 0E 00 [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: E2 0E 00 97 08 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 CA [10:25:26]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:25:26]wFMCommunicate OK [10:25:26]SAM_PROTO_GetShiftState done [10:25:26]FM_GetShiftState done [10:25:26]req_shift_opened done [10:25:26]requested_item shift.open_date is exist - process it [10:25:26]req_shift_open_date [10:25:26]req_shift_open_date done [10:25:26]produce_requested_data done [10:25:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29782,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:25:26]process_action_free print_text [10:25:26]json_value_free [10:25:26]json_value_free done [10:25:26]process_json_proto returns [10:25:26]Send response to host [10:25:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29782,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:25:26]free response buf [10:25:26]execute_script done [10:25:26]execute_script returns [10:25:26]free content buf [10:25:26]Sock 9.Close socket [10:25:26]Sock 9.Thread stoped [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:47]accept exits with 7 [10:25:47]New connection [10:25:47]New thread 3067276644 created [10:25:47]Thread 3067133284 joined [10:25:47]Waiting for new connection... [10:25:47] Sock 7.Parse request [10:25:47]Sock 7.Check first char [10:25:47]Sock 7.First char is OK [10:25:47]request: POST /json_proto HTTP/1.0 [10:25:47]Method: POST [10:25:47]URL: /json_proto [10:25:47]Method is POST - this is cgi request [10:25:47]url: /json_proto [10:25:47]query_string will be loaded in cgi processing [10:25:47]execute_cgi json_proto POST (null) [10:25:47]execute_cgi path=json_proto method=POST [10:25:47]POST find Content-Length [10:25:47]Host: 172.17.33.3:8080 [10:25:47]Content-Length: 1206 [10:25:47]Content-Type: application/json [10:25:47] [10:25:47]POST finish read [10:25:47]Found Content-Length = 1206 [10:25:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348267\u000A16.04.2024 10:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 648.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74635\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:47]execute_script... [10:25:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348267\u000A16.04.2024 10:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 648.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74635\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:47]POST & json_proto [10:25:47]process_json_proto [10:25:47]json parsed OK: [10:25:47]protocol is kg_v1.0 [10:25:47]action value=print_text [10:25:47]process_action print_text [10:25:47]cmd_print_text [10:25:47]ExternCall_PrintAddStr [10:25:47]wPrintStart [10:25:47]Write to MH i2c: 01 00 00 98 08 A0 [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: 01 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: 01 07 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: 01 07 00 98 08 00 00 00 00 00 FF 0F B5 [10:25:47]RasterBufferAndPrint [10:25:47]line *****ТОВАРНЫЙ ЧЕК***** [10:25:47]line АЗС 108 [10:25:47]line Партнер нефть [10:25:47]line 02508201610067 [10:25:47]line Кассир : Шадыканова Ж. [10:25:47]line Счет N : (1)348267 [10:25:47]line 16.04.2024 10:07 [10:25:47]line ПРОДАЖА [10:25:47]line ТРК (МРК, ГНК): 13 [10:25:47]line Вид ГСМ : 2710124130 [10:25:47]line Аи-92-К-5 [10:25:47]line 10.000 x 64.80 [10:25:47]line ИТОГ: 648.00 [10:25:47]line Тип оплаты: Талоны: Топливная Карта [10:25:47]line 74635 [10:25:47]line ______________________ [10:25:47]line (подпись) [10:25:47]written 0, free lines is 4095 [10:25:47]Write to MH i2c: 01 00 00 AD 08 B5 [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: 01 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: 01 07 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: 01 07 00 AD 08 00 00 00 00 00 F5 0D BE [10:25:47]RasterBufferAndPrint [10:25:47]line [10:25:47]line [10:25:47]line [10:25:47]line [10:25:47]line [10:25:47]written 0, free lines is 3575 [10:25:47]MH_Cut [10:25:47]Write to MH i2c: D1 01 00 B4 08 01 8E [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: D1 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: D1 01 00 [10:25:47]MH_I2C_Read... [10:25:47]Read from MH i2c: D1 01 00 B4 08 00 8D [10:25:47]Write to MH i2c: 01 00 00 B5 08 BD [10:25:47]Write i2c OK [10:25:47]MH_I2C_Read... [10:25:48]*** Cut start [10:25:48]*** Partial cut [10:25:48]*** CUTSNS_PIN = 1 [10:25:48]*** CUTSNS_PIN = 0 [10:25:48]*** Brake cut motor [10:25:49]Read from MH i2c: 01 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: 01 07 00 [10:25:49]MH_I2C_Read... [10:25:49]*** Stop cut motor [10:25:49]*** Cut end [10:25:49]Read from MH i2c: 01 07 00 B5 08 00 00 00 00 00 FF 0F D2 [10:25:49]process_action print_text done [10:25:49]requested_data is exist [10:25:49]produce_requested_data [10:25:49]requested_item fm.sn is exist - process it [10:25:49]wFMCommunicate request_size=4 [10:25:49]MH_SAM_APDU [10:25:49]CAPDU: 80 11 00 00 [10:25:49]Write to MH i2c: E2 08 00 B6 08 80 11 00 00 00 00 00 00 38 [10:25:49]Write i2c OK [10:25:49]MH_I2C_Read... [10:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:49]Read from MH i2c: E2 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: E2 17 00 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: E2 17 00 B6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [10:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:25:49]wFMCommunicate OK [10:25:49]requested_item fd.num is exist - process it [10:25:49]SAM_PROTO_GetFieldsCounters [10:25:49]wFMCommunicate request_size=4 [10:25:49]MH_SAM_APDU [10:25:49]CAPDU: 80 13 00 00 [10:25:49]Write to MH i2c: E2 08 00 B7 08 80 13 00 00 00 00 00 00 3B [10:25:49]Write i2c OK [10:25:49]MH_I2C_Read... [10:25:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:49]Read from MH i2c: E2 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: E2 62 00 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: E2 62 00 B7 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 56 74 00 00 0E 04 04 00 76 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 61 [10:25:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 56 74 00 00 0E 04 04 00 76 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 [10:25:49]wFMCommunicate OK [10:25:49]SAM_PROTO_GetFieldsCounters done [10:25:49]requested_item shift.num is exist - process it [10:25:49]requested_item shift.opened is exist - process it [10:25:49]req_shift_opened [10:25:49]FM_GetShiftState [10:25:49]SAM_PROTO_GetShiftState [10:25:49]wFMCommunicate request_size=4 [10:25:49]MH_SAM_APDU [10:25:49]CAPDU: 80 13 01 00 [10:25:49]Write to MH i2c: E2 08 00 B8 08 80 13 01 00 00 00 00 00 3D [10:25:49]Write i2c OK [10:25:49]MH_I2C_Read... [10:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:49]Read from MH i2c: E2 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: E2 0E 00 [10:25:49]MH_I2C_Read... [10:25:49]Read from MH i2c: E2 0E 00 B8 08 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 EB [10:25:49]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:25:49]wFMCommunicate OK [10:25:49]SAM_PROTO_GetShiftState done [10:25:49]FM_GetShiftState done [10:25:49]req_shift_opened done [10:25:49]requested_item shift.open_date is exist - process it [10:25:49]req_shift_open_date [10:25:49]req_shift_open_date done [10:25:49]produce_requested_data done [10:25:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29782,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:25:49]process_action_free print_text [10:25:49]json_value_free [10:25:49]json_value_free done [10:25:49]process_json_proto returns [10:25:49]Send response to host [10:25:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29782,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:25:49]free response buf [10:25:49]execute_script done [10:25:49]execute_script returns [10:25:49]free content buf [10:25:49]Sock 7.Close socket [10:25:49]Sock 7.Thread stoped [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:19]accept exits with 9 [10:27:19]New connection [10:27:19]New thread 3067133284 created [10:27:19]Thread 3067276644 joined [10:27:19]Waiting for new connection... [10:27:19] Sock 9.Parse request [10:27:19]Sock 9.Check first char [10:27:19]Sock 9.First char is OK [10:27:19]request: POST /json_proto HTTP/1.0 [10:27:19]Method: POST [10:27:19]URL: /json_proto [10:27:19]Method is POST - this is cgi request [10:27:19]url: /json_proto [10:27:19]query_string will be loaded in cgi processing [10:27:19]execute_cgi json_proto POST (null) [10:27:19]execute_cgi path=json_proto method=POST [10:27:19]POST find Content-Length [10:27:19]Host: 172.17.33.3:8080 [10:27:19]Content-Length: 816 [10:27:19]Content-Type: application/json [10:27:19] [10:27:19]POST finish read [10:27:19]Found Content-Length = 816 [10:27:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:19]execute_script... [10:27:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:19]POST & json_proto [10:27:19]process_json_proto [10:27:19]json parsed OK: [10:27:19]protocol is kg_v1.0 [10:27:19]action value=close_receipt [10:27:19]process_action close_receipt [10:27:19]cmd_close_receipt [10:27:19]MH_GetDate [10:27:19]Write to MH i2c: F0 00 00 B9 08 B0 [10:27:19]Write i2c OK [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: F0 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: F0 09 00 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: F0 09 00 B9 08 00 89 52 1E 66 23 5B 8F 65 8A [10:27:19]GetLastDocTimeStamp 1713262899 [10:27:19]current date 1713263241 [10:27:19]FM_GetShiftState [10:27:19]SAM_PROTO_GetShiftState [10:27:19]wFMCommunicate request_size=4 [10:27:19]MH_SAM_APDU [10:27:19]CAPDU: 80 13 01 00 [10:27:19]Write to MH i2c: E2 08 00 BA 08 80 13 01 00 00 00 00 00 3F [10:27:19]Write i2c OK [10:27:19]MH_I2C_Read... [10:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:20]Read from MH i2c: E2 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 0E 00 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 0E 00 BA 08 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 ED [10:27:20]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:27:20]wFMCommunicate OK [10:27:20]SAM_PROTO_GetShiftState done [10:27:20]FM_GetShiftState done [10:27:20]opened in 1713226843 [10:27:20]opened+sec_in_day 1713313243 [10:27:20]quantity*price = 60069 [10:27:20]sum+1 = 60071 [10:27:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.70 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 0.00 Безнал.: 600.70 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 57 16.04.2024 10:27 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29783 ФПД: 98538060539051 1/tax-web-control/client/api/v1/ticket?date=20240416T102721&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29783&fm=98538060539051&tin=02508201610067®Number=0000138879044617&sum=60070 [10:27:21]StoreToDocumentArchive [10:27:21]shift 118 fd 29783 [10:27:21]save to /storage/0118/doc_00029783 [10:27:21]save last doc name /storage/0118/doc_00029783 to /storage/kkm_last_doc_name [10:27:21]save OK [10:27:21]Clear old archive folders... [10:27:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:21]tlvbuf is 0014E020 [10:27:21]SAM_PROTO_ClearQueue [10:27:21]wFMCommunicate request_size=4 [10:27:21]MH_SAM_APDU [10:27:21]CAPDU: 80 09 00 00 [10:27:21]Write to MH i2c: E2 08 00 C7 08 80 09 00 00 00 00 00 00 41 [10:27:21]Write i2c OK [10:27:21]MH_I2C_Read... [10:27:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:21]Read from MH i2c: E2 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 03 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 03 00 C7 08 00 90 00 43 [10:27:21]RAPDU: 90 00 [10:27:21]wFMCommunicate OK [10:27:21]SAM_PROTO_ClearQueue done [10:27:21]KKMCreateOFDPacket [10:27:21]OFDProtocolAddRootSTLVToBuf [10:27:21]FM_MakeSignedData [10:27:21]FM_MakeSignedData [10:27:21]SAM_PROTO_SignData [10:27:21]wFMCommunicate request_size=4 [10:27:21]MH_SAM_APDU [10:27:21]CAPDU: 80 0D 01 02 [10:27:21]Write to MH i2c: E2 08 00 C8 08 80 0D 01 02 00 00 00 00 49 [10:27:21]Write i2c OK [10:27:21]MH_I2C_Read... [10:27:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:21]Read from MH i2c: E2 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 03 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 03 00 C8 08 00 90 00 44 [10:27:21]RAPDU: 90 00 [10:27:21]wFMCommunicate OK [10:27:21]wFMCommunicate request_size=255 [10:27:21]MH_SAM_APDU [10:27:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 89 52 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 74 00 00 35 04 06 00 59 [10:27:21]Write to MH i2c: E2 02 01 C9 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 89 52 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 74 00 00 35 04 06 00 59 00 00 55 [10:27:21]Write i2c OK [10:27:21]MH_I2C_Read... [10:27:21]OFD Sender: No OFD packet to send [10:27:21]Read from MH i2c: E2 [10:27:21]MH_I2C_Read... [10:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:21]Read from MH i2c: E2 03 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 03 00 C9 08 00 90 00 45 [10:27:21]RAPDU: 90 00 [10:27:21]wFMCommunicate OK [10:27:21]wFMCommunicate request_size=10 [10:27:21]MH_SAM_APDU [10:27:21]CAPDU: 80 0D 02 02 05 9E AE 18 64 AB [10:27:21]Write to MH i2c: E2 0D 00 CA 08 80 0D 02 02 05 00 9E AE 18 64 AB 00 00 C9 [10:27:21]Write i2c OK [10:27:21]MH_I2C_Read... [10:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:21]Read from MH i2c: E2 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 03 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 03 00 CA 08 00 90 00 46 [10:27:21]RAPDU: 90 00 [10:27:21]wFMCommunicate OK [10:27:21]wFMCommunicate request_size=4 [10:27:21]MH_SAM_APDU [10:27:21]CAPDU: 80 0D 03 02 [10:27:21]Write to MH i2c: E2 08 00 CB 08 80 0D 03 02 00 00 00 00 4E [10:27:21]Write i2c OK [10:27:21]MH_I2C_Read... [10:27:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:21]Read from MH i2c: E2 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 0B 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 0B 00 CB 08 00 A8 10 C9 AD 59 65 58 6C 90 00 FF [10:27:21]RAPDU: A8 10 C9 AD 59 65 58 6C 90 00 [10:27:21]wFMCommunicate OK [10:27:21]SAM_PROTO_SignData done [10:27:21]FM_MakeSignedData done [10:27:21]CreateOFDProtocolMessage [10:27:21]wFMCommunicate request_size=4 [10:27:21]MH_SAM_APDU [10:27:21]CAPDU: 80 11 00 00 [10:27:21]Write to MH i2c: E2 08 00 CC 08 80 11 00 00 00 00 00 00 4E [10:27:21]Write i2c OK [10:27:21]MH_I2C_Read... [10:27:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:21]Read from MH i2c: E2 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 17 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 17 00 CC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9D [10:27:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:27:21]wFMCommunicate OK [10:27:21]CreateOFDProtocolMessage done [10:27:21]OFDSenderStorePacket 29783 [10:27:21]StoreOFDPacket docnum=29783 [10:27:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A7 D3 07 01 7C 50 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 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 89 52 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 74 00 00 35 04 06 00 59 9E AE 18 64 AB A8 10 C9 AD 59 65 58 6C [10:27:21]CheckFolder [10:27:21]dirname=/storage/ofd_packets [10:27:21]CheckFolder done [10:27:21]ProducePacketName [10:27:21]name=ofd_packets/00029783 [10:27:21]NVStorageSaveData ofd_packets/00029783 [10:27:21]File name is /storage/ofd_packets/00029783 [10:27:21]Write 301 bytes [10:27:21]NVStorageSaveData done [10:27:21]OFDSenderStorePacket done [10:27:21]KKMCreateOFDPacket done [10:27:21]NVStorageSaveData kkm_last_timestamp [10:27:21]File name is /storage/kkm_last_timestamp [10:27:21]Write 4 bytes [10:27:21]NVStorageSaveData done [10:27:21]ExternCall_PrintAddStr [10:27:21]wPrintStart [10:27:21]Write to MH i2c: 01 00 00 CD 08 D5 [10:27:21]Write i2c OK [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: 01 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: 01 07 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: 01 07 00 CD 08 00 00 00 00 00 FF 0F EA [10:27:21]RasterBufferAndPrint [10:27:21]line Счет N : (1)348268 [10:27:21]line ИНН: 02508201610067 [10:27:21]line Контрольно-Кассовый Чек [10:27:21]line ПРОДАЖА [10:27:21]line ТРК (МРК, ГНК) : 43 [10:27:21]line Товар: 2710124500 [10:27:21]line Аи-95-К-5 [10:27:21]line 8.240 * 72.90 [10:27:21]line = 600.70 [10:27:21]line НДС 12% НСП 1% [10:27:21]line > о реализуемом товаре [10:27:21]line ИТОГО: 600.70 [10:27:21]line НСП 1% : 5.32 [10:27:21]line НДС 12% : 63.79 [10:27:21]line Наличными: 0.00 [10:27:21]line Безнал.: 600.70 [10:27:21]line Место: АЗС № 108 "Партнер Нефть" [10:27:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:27:21]line СНО: Общий режим [10:27:21]line Чек 57 16.04.2024 10:27 [10:27:21]line Смена: 118 ФФД: 1.0 [10:27:21]line ЗНМ: 0300000027 [10:27:21]line РНМ: 0000138879044617 [10:27:21]line Версия ККМ: 001 [10:27:21]line Платежная система: Бакай Банк [10:27:21]line ФМ: 0000000000963154 [10:27:21]line ФД: 29783 [10:27:21]line ФПД: 98538060539051 [10:27:21]line 1/tax-web-control/client/api/v1/ticket?date=20240416T102721&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29783&fm=98538060539051&tin=02508201610067®Number=0000138879044617&sum=60070 [10:27:21]written 0, free lines is 4095 [10:27:21]OFD Sender: Processing packet 29783 [packets to send 8, broken 7] [10:27:21]ProducePacketName [10:27:21]name=ofd_packets/00029783 [10:27:21]OFD Sender: To server: pG, [10:27:21]CommunicateWithHost lk.salyk.kg:30040 [10:27:21]ConnectInit lk.salyk.kg [10:27:21]Connected sock=10 [10:27:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A7 D3 07 01 7C 50 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 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 89 52 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 74 00 00 35 04 06 00 59 9E AE 18 64 AB A8 10 C9 AD 59 65 58 6C [10:27:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2C F8 47 00 AC E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 74 00 00 F4 03 04 00 27 FD 1D 66 B6 04 01 00 00 81 DF 07 A2 42 A7 4E AC [10:27:21]CommunicateWithHost err = 0 [10:27:21]CheckOFDResponse [10:27:21]1017 (14) - 77093643461234 [10:27:21]1041 (16) - 0000000000963154 [10:27:21]1040 (4) - 29783 [10:27:21]1012 (4) - 16.04.2024 04:23 [10:27:21]1206 (1) - 0 [10:27:21]OFD Sender: Remove packet 29783 [10:27:21]ProducePacketName [10:27:21]name=ofd_packets/00029783 [10:27:21]NVStorageDeleteData [10:27:22]Write to MH i2c: 01 00 00 F6 08 FE [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: 01 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: 01 07 00 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: 01 07 00 F6 08 00 00 00 00 00 E9 0C FA [10:27:22]RasterBufferAndPrint [10:27:22]line [10:27:22]line [10:27:22]line [10:27:22]line [10:27:22]line [10:27:22]written 0, free lines is 3311 [10:27:22]MH_Cut [10:27:22]Write to MH i2c: D1 01 00 FD 08 01 D7 [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: D1 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: D1 01 00 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: D1 01 00 FD 08 00 D6 [10:27:22]Write to MH i2c: 01 00 00 FE 08 06 [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]OFD Sender: No OFD packet to send [10:27:22]*** Cut start [10:27:22]*** Partial cut [10:27:22]*** CUTSNS_PIN = 1 [10:27:22]*** CUTSNS_PIN = 0 [10:27:23]*** Brake cut motor [10:27:23]Read from MH i2c: 01 [10:27:23]MH_I2C_Read... [10:27:23]*** Stop cut motor [10:27:23]*** Cut end [10:27:23]Read from MH i2c: 01 07 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: 01 07 00 FE 08 00 00 00 00 00 FF 0F 1B [10:27:23]process_action close_receipt done [10:27:23]requested_data is exist [10:27:23]produce_requested_data [10:27:23]requested_item fm.sn is exist - process it [10:27:23]wFMCommunicate request_size=4 [10:27:23]MH_SAM_APDU [10:27:23]CAPDU: 80 11 00 00 [10:27:23]Write to MH i2c: E2 08 00 FF 08 80 11 00 00 00 00 00 00 81 [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:23]Read from MH i2c: E2 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 17 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 17 00 FF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D0 [10:27:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:27:23]wFMCommunicate OK [10:27:23]requested_item fd.num is exist - process it [10:27:23]SAM_PROTO_GetFieldsCounters [10:27:23]wFMCommunicate request_size=4 [10:27:23]MH_SAM_APDU [10:27:23]CAPDU: 80 13 00 00 [10:27:23]Write to MH i2c: E2 08 00 00 09 80 13 00 00 00 00 00 00 85 [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:23]Read from MH i2c: E2 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 62 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 62 00 00 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 57 74 00 00 0E 04 04 00 76 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 AF [10:27:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 57 74 00 00 0E 04 04 00 76 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 [10:27:23]wFMCommunicate OK [10:27:23]SAM_PROTO_GetFieldsCounters done [10:27:23]requested_item shift.num is exist - process it [10:27:23]requested_item shift.opened is exist - process it [10:27:23]req_shift_opened [10:27:23]FM_GetShiftState [10:27:23]SAM_PROTO_GetShiftState [10:27:23]wFMCommunicate request_size=4 [10:27:23]MH_SAM_APDU [10:27:23]CAPDU: 80 13 01 00 [10:27:23]Write to MH i2c: E2 08 00 01 09 80 13 01 00 00 00 00 00 87 [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:23]Read from MH i2c: E2 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 0E 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 0E 00 01 09 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 35 [10:27:23]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:27:23]wFMCommunicate OK [10:27:23]SAM_PROTO_GetShiftState done [10:27:23]FM_GetShiftState done [10:27:23]req_shift_opened done [10:27:23]requested_item shift.open_date is exist - process it [10:27:23]req_shift_open_date [10:27:23]req_shift_open_date done [10:27:23]produce_requested_data done [10:27:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29783,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:27:23]process_action_free close_receipt [10:27:23]json_value_free [10:27:23]json_value_free done [10:27:23]process_json_proto returns [10:27:23]Send response to host [10:27:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29783,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:27:23]free response buf [10:27:23]execute_script done [10:27:23]execute_script returns [10:27:23]free content buf [10:27:23]Sock 9.Close socket [10:27:23]Sock 9.Thread stoped [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:47]OFD Sender: No OFD packet to send [10:27:52]OFD Sender: No OFD packet to send [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:07]OFD Sender: No OFD packet to send [10:28:12]OFD Sender: No OFD packet to send [10:28:17]OFD Sender: No OFD packet to send [10:28:21]accept exits with 7 [10:28:21]New connection [10:28:21]New thread 3067276644 created [10:28:21]Thread 3067133284 joined [10:28:21]Waiting for new connection... [10:28:21] Sock 7.Parse request [10:28:21]Sock 7.Check first char [10:28:21]Sock 7.First char is OK [10:28:21]request: POST /json_proto HTTP/1.0 [10:28:21]Method: POST [10:28:21]URL: /json_proto [10:28:21]Method is POST - this is cgi request [10:28:21]url: /json_proto [10:28:21]query_string will be loaded in cgi processing [10:28:21]execute_cgi json_proto POST (null) [10:28:21]execute_cgi path=json_proto method=POST [10:28:21]POST find Content-Length [10:28:21]Host: 172.17.33.3:8080 [10:28:21]Content-Length: 682 [10:28:21]Content-Type: application/json [10:28:21] [10:28:21]POST finish read [10:28:21]Found Content-Length = 682 [10:28:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:21]execute_script... [10:28: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 : (1)348269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:21]POST & json_proto [10:28:21]process_json_proto [10:28:21]json parsed OK: [10:28:21]protocol is kg_v1.0 [10:28:21]action value=close_receipt [10:28:21]process_action close_receipt [10:28:21]cmd_close_receipt [10:28:21]MH_GetDate [10:28:21]Write to MH i2c: F0 00 00 02 09 FA [10:28:21]Write i2c OK [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: F0 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: F0 09 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: F0 09 00 02 09 00 C6 52 1E 66 23 5B 8F 65 11 [10:28:21]GetLastDocTimeStamp 1713263241 [10:28:21]current date 1713263302 [10:28:21]FM_GetShiftState [10:28:21]SAM_PROTO_GetShiftState [10:28:21]wFMCommunicate request_size=4 [10:28:21]MH_SAM_APDU [10:28:21]CAPDU: 80 13 01 00 [10:28:21]Write to MH i2c: E2 08 00 03 09 80 13 01 00 00 00 00 00 89 [10:28:21]Write i2c OK [10:28:21]MH_I2C_Read... [10:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:21]Read from MH i2c: E2 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 0E 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 0E 00 03 09 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 37 [10:28:21]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:28:21]wFMCommunicate OK [10:28:21]SAM_PROTO_GetShiftState done [10:28:21]FM_GetShiftState done [10:28:21]opened in 1713226843 [10:28:21]opened+sec_in_day 1713313243 [10:28:21]quantity*price = 100051 [10:28:21]sum+1 = 100052 [10:28:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 58 16.04.2024 10:28 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29784 ФПД: 206914913917248 1/tax-web-control/client/api/v1/ticket?date=20240416T102822&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29784&fm=206914913917248&tin=02508201610067®Number=0000138879044617&sum=100000 [10:28:22]StoreToDocumentArchive [10:28:22]shift 118 fd 29784 [10:28:22]save to /storage/0118/doc_00029784 [10:28:22]save last doc name /storage/0118/doc_00029784 to /storage/kkm_last_doc_name [10:28:22]save OK [10:28:22]Clear old archive folders... [10:28:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:22]tlvbuf is 00168D90 [10:28:22]SAM_PROTO_ClearQueue [10:28:22]wFMCommunicate request_size=4 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 09 00 00 [10:28:22]Write to MH i2c: E2 08 00 10 09 80 09 00 00 00 00 00 00 8B [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 10 09 00 90 00 8D [10:28:22]RAPDU: 90 00 [10:28:22]wFMCommunicate OK [10:28:22]SAM_PROTO_ClearQueue done [10:28:22]KKMCreateOFDPacket [10:28:22]OFDProtocolAddRootSTLVToBuf [10:28:22]FM_MakeSignedData [10:28:22]FM_MakeSignedData [10:28:22]SAM_PROTO_SignData [10:28:22]wFMCommunicate request_size=4 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 0D 01 02 [10:28:22]Write to MH i2c: E2 08 00 11 09 80 0D 01 02 00 00 00 00 93 [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 11 09 00 90 00 8E [10:28:22]RAPDU: 90 00 [10:28:22]wFMCommunicate OK [10:28:22]wFMCommunicate request_size=255 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C6 52 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 74 00 00 35 04 06 00 BC [10:28:22]Write to MH i2c: E2 02 01 12 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C6 52 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 74 00 00 35 04 06 00 BC 00 00 4D [10:28:22]OFD Sender: No OFD packet to send [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 12 09 00 90 00 8F [10:28:22]RAPDU: 90 00 [10:28:22]wFMCommunicate OK [10:28:22]wFMCommunicate request_size=10 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 0D 02 02 05 30 21 F1 59 40 [10:28:22]Write to MH i2c: E2 0D 00 13 09 80 0D 02 02 05 00 30 21 F1 59 40 00 00 7B [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 13 09 00 90 00 90 [10:28:22]RAPDU: 90 00 [10:28:22]wFMCommunicate OK [10:28:22]wFMCommunicate request_size=4 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 0D 03 02 [10:28:22]Write to MH i2c: E2 08 00 14 09 80 0D 03 02 00 00 00 00 98 [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 0B 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 0B 00 14 09 00 0D B7 0A 12 CB 73 83 43 90 00 7D [10:28:22]RAPDU: 0D B7 0A 12 CB 73 83 43 90 00 [10:28:22]wFMCommunicate OK [10:28:22]SAM_PROTO_SignData done [10:28:22]FM_MakeSignedData done [10:28:22]CreateOFDProtocolMessage [10:28:22]wFMCommunicate request_size=4 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 11 00 00 [10:28:22]Write to MH i2c: E2 08 00 15 09 80 11 00 00 00 00 00 00 98 [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 17 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 17 00 15 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E7 [10:28:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:28:22]wFMCommunicate OK [10:28:22]CreateOFDProtocolMessage done [10:28:22]OFDSenderStorePacket 29784 [10:28:22]StoreOFDPacket docnum=29784 [10:28:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 15 6D 07 01 9A 31 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C6 52 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 74 00 00 35 04 06 00 BC 30 21 F1 59 40 0D B7 0A 12 CB 73 83 43 [10:28:22]CheckFolder [10:28:22]dirname=/storage/ofd_packets [10:28:22]CheckFolder done [10:28:22]ProducePacketName [10:28:22]name=ofd_packets/00029784 [10:28:22]NVStorageSaveData ofd_packets/00029784 [10:28:22]File name is /storage/ofd_packets/00029784 [10:28:22]Write 301 bytes [10:28:22]NVStorageSaveData done [10:28:22]OFDSenderStorePacket done [10:28:22]KKMCreateOFDPacket done [10:28:22]NVStorageSaveData kkm_last_timestamp [10:28:22]File name is /storage/kkm_last_timestamp [10:28:22]Write 4 bytes [10:28:22]NVStorageSaveData done [10:28:22]OFD Sender: Processing packet 29784 [packets to send 8, broken 7] [10:28:22]ProducePacketName [10:28:22]name=ofd_packets/00029784 [10:28:22]OFD Sender: To server: pG, [10:28:22]CommunicateWithHost lk.salyk.kg:30040 [10:28:22]ConnectInit lk.salyk.kg [10:28:22]ExternCall_PrintAddStr [10:28:22]wPrintStart [10:28:22]Write to MH i2c: 01 00 00 16 09 1F [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 07 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 07 00 16 09 00 00 00 00 00 FF 0F 34 [10:28:22]RasterBufferAndPrint [10:28:22]line Счет N : (1)348269 [10:28:22]line ИНН: 02508201610067 [10:28:22]line Контрольно-Кассовый Чек [10:28:22]line ПРОДАЖА [10:28:22]line ТРК (МРК, ГНК) : 13 [10:28:22]line Товар: 2710124130 [10:28:22]line Аи-92-К-5 [10:28:22]line 15.440 * 64.80 [10:28:22]line = 1000.51 [10:28:22]line НДС 12% НСП 1% [10:28:22]line > о реализуемом товаре [10:28:22]line ОКРУГЛЕНИЕ: -0.51 [10:28:22]line ИТОГО: 1000.00 [10:28:22]line Внесено: 1000.00 [10:28:22]line СДАЧА: 0.00 [10:28:22]line НСП 1% : 8.85 [10:28:22]line НДС 12% : 106.25 [10:28:22]line Наличными: 1000.00 [10:28:22]line Безнал.: 0.00 [10:28:22]line Место: АЗС № 108 "Партнер Нефть" [10:28:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:28:22]line СНО: Общий режим [10:28:22]line Чек 58 16.04.2024 10:28 [10:28:22]line Смена: 118 ФФД: 1.0 [10:28:22]line ЗНМ: 0300000027 [10:28:22]line РНМ: 0000138879044617 [10:28:22]line Версия ККМ: 001 [10:28:22]line ФМ: 0000000000963154 [10:28:22]line ФД: 29784 [10:28:23]line ФПД: 206914913917248 [10:28:23]line 1/tax-web-control/client/api/v1/ticket?date=20240416T102822&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29784&fm=206914913917248&tin=02508201610067®Number=0000138879044617&sum=100000 [10:28:23]Connected sock=11 [10:28:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 15 6D 07 01 9A 31 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C6 52 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 74 00 00 35 04 06 00 BC 30 21 F1 59 40 0D B7 0A 12 CB 73 83 43 [10:28:23]written 0, free lines is 4095 [10:28:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 64 DC 47 00 E7 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 74 00 00 F4 03 04 00 64 FD 1D 66 B6 04 01 00 00 69 C3 3F C4 D8 9C 20 CD [10:28:23]CommunicateWithHost err = 0 [10:28:23]CheckOFDResponse [10:28:23]1017 (14) - 77093643461234 [10:28:23]1041 (16) - 0000000000963154 [10:28:23]1040 (4) - 29784 [10:28:23]1012 (4) - 16.04.2024 04:24 [10:28:23]1206 (1) - 0 [10:28:23]OFD Sender: Remove packet 29784 [10:28:23]ProducePacketName [10:28:23]name=ofd_packets/00029784 [10:28:23]NVStorageDeleteData [10:28:23]Write to MH i2c: 01 00 00 40 09 49 [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 07 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 07 00 40 09 00 00 00 00 00 CE 0C 2A [10:28:23]RasterBufferAndPrint [10:28:23]line [10:28:23]line [10:28:23]line [10:28:23]line [10:28:23]line [10:28:23]written 0, free lines is 3283 [10:28:23]MH_Cut [10:28:23]Write to MH i2c: D1 01 00 47 09 01 22 [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: D1 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: D1 01 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: D1 01 00 47 09 00 21 [10:28:23]Write to MH i2c: 01 00 00 48 09 51 [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]OFD Sender: No OFD packet to send [10:28:24]*** Cut start [10:28:24]*** Partial cut [10:28:24]*** CUTSNS_PIN = 1 [10:28:24]*** CUTSNS_PIN = 0 [10:28:24]*** Brake cut motor [10:28:25]Read from MH i2c: 01 [10:28:25]MH_I2C_Read... [10:28:25]*** Stop cut motor [10:28:25]*** Cut end [10:28:25]Read from MH i2c: 01 07 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: 01 07 00 48 09 00 00 00 00 00 FF 0F 66 [10:28:25]process_action close_receipt done [10:28:25]requested_data is exist [10:28:25]produce_requested_data [10:28:25]requested_item fm.sn is exist - process it [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 11 00 00 [10:28:25]Write to MH i2c: E2 08 00 49 09 80 11 00 00 00 00 00 00 CC [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 17 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 17 00 49 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1B [10:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:28:25]wFMCommunicate OK [10:28:25]requested_item fd.num is exist - process it [10:28:25]SAM_PROTO_GetFieldsCounters [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 13 00 00 [10:28:25]Write to MH i2c: E2 08 00 4A 09 80 13 00 00 00 00 00 00 CF [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 62 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 62 00 4A 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 58 74 00 00 0E 04 04 00 76 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 FD [10:28:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 58 74 00 00 0E 04 04 00 76 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 [10:28:25]wFMCommunicate OK [10:28:25]SAM_PROTO_GetFieldsCounters done [10:28:25]requested_item shift.num is exist - process it [10:28:25]requested_item shift.opened is exist - process it [10:28:25]req_shift_opened [10:28:25]FM_GetShiftState [10:28:25]SAM_PROTO_GetShiftState [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 13 01 00 [10:28:25]Write to MH i2c: E2 08 00 4B 09 80 13 01 00 00 00 00 00 D1 [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 0E 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 0E 00 4B 09 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 7F [10:28:25]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:28:25]wFMCommunicate OK [10:28:25]SAM_PROTO_GetShiftState done [10:28:25]FM_GetShiftState done [10:28:25]req_shift_opened done [10:28:25]requested_item shift.open_date is exist - process it [10:28:25]req_shift_open_date [10:28:25]req_shift_open_date done [10:28:25]produce_requested_data done [10:28:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29784,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:28:25]process_action_free close_receipt [10:28:25]json_value_free [10:28:25]json_value_free done [10:28:25]process_json_proto returns [10:28:25]Send response to host [10:28:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29784,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:28:25]free response buf [10:28:25]execute_script done [10:28:25]execute_script returns [10:28:25]free content buf [10:28:25]Sock 7.Close socket [10:28:25]Sock 7.Thread stoped [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:21]accept exits with 9 [10:31:21]New connection [10:31:21]New thread 3067133284 created [10:31:21]Thread 3067276644 joined [10:31:21]Waiting for new connection... [10:31:21] Sock 9.Parse request [10:31:21]Sock 9.Check first char [10:31:21]Sock 9.First char is OK [10:31:21]request: POST /json_proto HTTP/1.0 [10:31:21]Method: POST [10:31:21]URL: /json_proto [10:31:21]Method is POST - this is cgi request [10:31:21]url: /json_proto [10:31:21]query_string will be loaded in cgi processing [10:31:21]execute_cgi json_proto POST (null) [10:31:21]execute_cgi path=json_proto method=POST [10:31:21]POST find Content-Length [10:31:21]Host: 172.17.33.3:8080 [10:31:21]Content-Length: 678 [10:31:21]Content-Type: application/json [10:31:21] [10:31:21]POST finish read [10:31:21]Found Content-Length = 678 [10:31:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "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" ] } } [10:31:21]execute_script... [10:31: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 : (1)348270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "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" ] } } [10:31:21]POST & json_proto [10:31:21]process_json_proto [10:31:21]json parsed OK: [10:31:21]protocol is kg_v1.0 [10:31:21]action value=close_receipt [10:31:21]process_action close_receipt [10:31:21]cmd_close_receipt [10:31:21]MH_GetDate [10:31:21]Write to MH i2c: F0 00 00 4C 09 44 [10:31:21]Write i2c OK [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: F0 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: F0 09 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: F0 09 00 4C 09 00 7A 53 1E 66 23 5B 8F 65 10 [10:31:21]GetLastDocTimeStamp 1713263302 [10:31:21]current date 1713263482 [10:31:21]FM_GetShiftState [10:31:21]SAM_PROTO_GetShiftState [10:31:21]wFMCommunicate request_size=4 [10:31:21]MH_SAM_APDU [10:31:21]CAPDU: 80 13 01 00 [10:31:21]Write to MH i2c: E2 08 00 4D 09 80 13 01 00 00 00 00 00 D3 [10:31:21]Write i2c OK [10:31:21]MH_I2C_Read... [10:31:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:21]Read from MH i2c: E2 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 0E 00 [10:31:21]MH_I2C_Read... [10:31:21]Read from MH i2c: E2 0E 00 4D 09 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 81 [10:31:21]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:31:21]wFMCommunicate OK [10:31:21]SAM_PROTO_GetShiftState done [10:31:21]FM_GetShiftState done [10:31:21]opened in 1713226843 [10:31:21]opened+sec_in_day 1713313243 [10:31:21]quantity*price = 70048 [10:31:21]sum+1 = 70050 [10:31:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 59 16.04.2024 10:31 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29785 ФПД: 188749291810724 1/tax-web-control/client/api/v1/ticket?date=20240416T103122&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29785&fm=188749291810724&tin=02508201610067®Number=0000138879044617&sum=70000 [10:31:22]StoreToDocumentArchive [10:31:22]shift 118 fd 29785 [10:31:22]save to /storage/0118/doc_00029785 [10:31:22]save last doc name /storage/0118/doc_00029785 to /storage/kkm_last_doc_name [10:31:22]save OK [10:31:22]Clear old archive folders... [10:31:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:22]tlvbuf is 0014DA30 [10:31:22]SAM_PROTO_ClearQueue [10:31:22]wFMCommunicate request_size=4 [10:31:22]MH_SAM_APDU [10:31:22]CAPDU: 80 09 00 00 [10:31:22]Write to MH i2c: E2 08 00 5A 09 80 09 00 00 00 00 00 00 D5 [10:31:22]Write i2c OK [10:31:22]MH_I2C_Read... [10:31:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:22]Read from MH i2c: E2 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 03 00 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 03 00 5A 09 00 90 00 D7 [10:31:22]RAPDU: 90 00 [10:31:22]wFMCommunicate OK [10:31:22]SAM_PROTO_ClearQueue done [10:31:22]KKMCreateOFDPacket [10:31:22]OFDProtocolAddRootSTLVToBuf [10:31:22]FM_MakeSignedData [10:31:22]FM_MakeSignedData [10:31:22]SAM_PROTO_SignData [10:31:22]wFMCommunicate request_size=4 [10:31:22]MH_SAM_APDU [10:31:22]CAPDU: 80 0D 01 02 [10:31:22]Write to MH i2c: E2 08 00 5B 09 80 0D 01 02 00 00 00 00 DD [10:31:22]Write i2c OK [10:31:22]MH_I2C_Read... [10:31:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:22]Read from MH i2c: E2 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 03 00 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 03 00 5B 09 00 90 00 D8 [10:31:22]RAPDU: 90 00 [10:31:22]wFMCommunicate OK [10:31:22]wFMCommunicate request_size=255 [10:31:22]MH_SAM_APDU [10:31:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 3B 00 00 00 F4 03 04 00 7A 53 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 74 00 00 35 04 06 00 AB [10:31:22]Write to MH i2c: E2 02 01 5C 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 3B 00 00 00 F4 03 04 00 7A 53 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 74 00 00 35 04 06 00 AB 00 00 9C [10:31:22]Write i2c OK [10:31:22]MH_I2C_Read... [10:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:23]Read from MH i2c: E2 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 03 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 03 00 5C 09 00 90 00 D9 [10:31:23]RAPDU: 90 00 [10:31:23]wFMCommunicate OK [10:31:23]wFMCommunicate request_size=10 [10:31:23]MH_SAM_APDU [10:31:23]CAPDU: 80 0D 02 02 05 AA 9E 7D 6F A4 [10:31:23]Write to MH i2c: E2 0D 00 5D 09 80 0D 02 02 05 00 AA 9E 7D 6F A4 00 00 C2 [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:23]Read from MH i2c: E2 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 03 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 03 00 5D 09 00 90 00 DA [10:31:23]RAPDU: 90 00 [10:31:23]wFMCommunicate OK [10:31:23]wFMCommunicate request_size=4 [10:31:23]MH_SAM_APDU [10:31:23]CAPDU: 80 0D 03 02 [10:31:23]Write to MH i2c: E2 08 00 5E 09 80 0D 03 02 00 00 00 00 E2 [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:23]Read from MH i2c: E2 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 0B 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 0B 00 5E 09 00 D6 09 C4 04 0B 8C 95 CA 90 00 80 [10:31:23]RAPDU: D6 09 C4 04 0B 8C 95 CA 90 00 [10:31:23]wFMCommunicate OK [10:31:23]SAM_PROTO_SignData done [10:31:23]FM_MakeSignedData done [10:31:23]CreateOFDProtocolMessage [10:31:23]wFMCommunicate request_size=4 [10:31:23]MH_SAM_APDU [10:31:23]CAPDU: 80 11 00 00 [10:31:23]Write to MH i2c: E2 08 00 5F 09 80 11 00 00 00 00 00 00 E2 [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:23]Read from MH i2c: E2 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 17 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 17 00 5F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 31 [10:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:31:23]wFMCommunicate OK [10:31:23]CreateOFDProtocolMessage done [10:31:23]OFDSenderStorePacket 29785 [10:31:23]StoreOFDPacket docnum=29785 [10:31:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 89 94 07 01 E8 E4 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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 3B 00 00 00 F4 03 04 00 7A 53 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 74 00 00 35 04 06 00 AB AA 9E 7D 6F A4 D6 09 C4 04 0B 8C 95 CA [10:31:23]CheckFolder [10:31:23]dirname=/storage/ofd_packets [10:31:23]CheckFolder done [10:31:23]ProducePacketName [10:31:23]name=ofd_packets/00029785 [10:31:23]NVStorageSaveData ofd_packets/00029785 [10:31:23]File name is /storage/ofd_packets/00029785 [10:31:23]Write 301 bytes [10:31:23]NVStorageSaveData done [10:31:23]OFDSenderStorePacket done [10:31:23]KKMCreateOFDPacket done [10:31:23]NVStorageSaveData kkm_last_timestamp [10:31:23]File name is /storage/kkm_last_timestamp [10:31:23]Write 4 bytes [10:31:23]NVStorageSaveData done [10:31:23]ExternCall_PrintAddStr [10:31:23]wPrintStart [10:31:23]Write to MH i2c: 01 00 00 60 09 69 [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: 01 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: 01 07 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: 01 07 00 60 09 00 00 00 00 00 FF 0F 7E [10:31:23]RasterBufferAndPrint [10:31:23]line Счет N : (1)348270 [10:31:23]line ИНН: 02508201610067 [10:31:23]line Контрольно-Кассовый Чек [10:31:23]line ПРОДАЖА [10:31:23]line ТРК (МРК, ГНК) : 42 [10:31:23]line Товар: 2710124130 [10:31:23]line Аи-92-К-5 [10:31:23]line 10.810 * 64.80 [10:31:23]line = 700.49 [10:31:23]line НДС 12% НСП 1% [10:31:23]line > о реализуемом товаре [10:31:23]line ОКРУГЛЕНИЕ: -0.49 [10:31:23]line ИТОГО: 700.00 [10:31:23]line Внесено: 700.00 [10:31:23]line СДАЧА: 0.00 [10:31:23]line НСП 1% : 6.20 [10:31:23]line НДС 12% : 74.39 [10:31:23]line Наличными: 700.00 [10:31:23]line Безнал.: 0.00 [10:31:23]line Место: АЗС № 108 "Партнер Нефть" [10:31:23]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:31:23]line СНО: Общий режим [10:31:23]line Чек 59 16.04.2024 10:31 [10:31:23]line Смена: 118 ФФД: 1.0 [10:31:23]line ЗНМ: 0300000027 [10:31:23]line РНМ: 0000138879044617 [10:31:23]line Версия ККМ: 001 [10:31:23]line ФМ: 0000000000963154 [10:31:23]line ФД: 29785 [10:31:23]line ФПД: 188749291810724 [10:31:23]line 1/tax-web-control/client/api/v1/ticket?date=20240416T103122&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29785&fm=188749291810724&tin=02508201610067®Number=0000138879044617&sum=70000 [10:31:23]OFD Sender: Processing packet 29785 [packets to send 8, broken 7] [10:31:23]ProducePacketName [10:31:23]name=ofd_packets/00029785 [10:31:23]OFD Sender: To server: pG, [10:31:23]CommunicateWithHost lk.salyk.kg:30040 [10:31:23]ConnectInit lk.salyk.kg [10:31:23]written 0, free lines is 4095 [10:31:23]Connected sock=10 [10:31:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 89 94 07 01 E8 E4 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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 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 0F 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 3B 00 00 00 F4 03 04 00 7A 53 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 74 00 00 35 04 06 00 AB AA 9E 7D 6F A4 D6 09 C4 04 0B 8C 95 CA [10:31:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4C 85 47 00 E3 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 36 33 31 35 34 10 04 04 00 59 74 00 00 F4 03 04 00 19 FE 1D 66 B6 04 01 00 00 BE 7C 9B 7D 2B 8C 18 8C [10:31:23]CommunicateWithHost err = 0 [10:31:23]CheckOFDResponse [10:31:23]1017 (14) - 77093643461234 [10:31:23]1041 (16) - 0000000000963154 [10:31:23]1040 (4) - 29785 [10:31:23]1012 (4) - 16.04.2024 04:27 [10:31:23]1206 (1) - 0 [10:31:23]OFD Sender: Remove packet 29785 [10:31:23]ProducePacketName [10:31:23]name=ofd_packets/00029785 [10:31:23]NVStorageDeleteData [10:31:24]Write to MH i2c: 01 00 00 8A 09 93 [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: 01 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: 01 07 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: 01 07 00 8A 09 00 00 00 00 00 D1 0C 77 [10:31:24]RasterBufferAndPrint [10:31:24]line [10:31:24]line [10:31:24]line [10:31:24]line [10:31:24]line [10:31:24]written 0, free lines is 3288 [10:31:24]MH_Cut [10:31:24]Write to MH i2c: D1 01 00 91 09 01 6C [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: D1 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: D1 01 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: D1 01 00 91 09 00 6B [10:31:24]Write to MH i2c: 01 00 00 92 09 9B [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]OFD Sender: No OFD packet to send [10:31:24]*** Cut start [10:31:24]*** Partial cut [10:31:24]*** CUTSNS_PIN = 1 [10:31:24]*** CUTSNS_PIN = 0 [10:31:25]*** Brake cut motor [10:31:25]Read from MH i2c: 01 [10:31:25]MH_I2C_Read... [10:31:25]*** Stop cut motor [10:31:25]*** Cut end [10:31:25]Read from MH i2c: 01 07 00 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: 01 07 00 92 09 00 00 00 00 00 FF 0F B0 [10:31:25]process_action close_receipt done [10:31:25]requested_data is exist [10:31:25]produce_requested_data [10:31:25]requested_item fm.sn is exist - process it [10:31:25]wFMCommunicate request_size=4 [10:31:25]MH_SAM_APDU [10:31:25]CAPDU: 80 11 00 00 [10:31:25]Write to MH i2c: E2 08 00 93 09 80 11 00 00 00 00 00 00 16 [10:31:25]Write i2c OK [10:31:25]MH_I2C_Read... [10:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:25]Read from MH i2c: E2 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: E2 17 00 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: E2 17 00 93 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 65 [10:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:31:25]wFMCommunicate OK [10:31:25]requested_item fd.num is exist - process it [10:31:25]SAM_PROTO_GetFieldsCounters [10:31:25]wFMCommunicate request_size=4 [10:31:25]MH_SAM_APDU [10:31:25]CAPDU: 80 13 00 00 [10:31:25]Write to MH i2c: E2 08 00 94 09 80 13 00 00 00 00 00 00 19 [10:31:25]Write i2c OK [10:31:25]MH_I2C_Read... [10:31:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:25]Read from MH i2c: E2 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: E2 62 00 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: E2 62 00 94 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 59 74 00 00 0E 04 04 00 76 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 4B [10:31:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 59 74 00 00 0E 04 04 00 76 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 [10:31:25]wFMCommunicate OK [10:31:25]SAM_PROTO_GetFieldsCounters done [10:31:25]requested_item shift.num is exist - process it [10:31:25]requested_item shift.opened is exist - process it [10:31:25]req_shift_opened [10:31:25]FM_GetShiftState [10:31:25]SAM_PROTO_GetShiftState [10:31:25]wFMCommunicate request_size=4 [10:31:25]MH_SAM_APDU [10:31:25]CAPDU: 80 13 01 00 [10:31:25]Write to MH i2c: E2 08 00 95 09 80 13 01 00 00 00 00 00 1B [10:31:25]Write i2c OK [10:31:25]MH_I2C_Read... [10:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:25]Read from MH i2c: E2 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: E2 0E 00 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: E2 0E 00 95 09 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 C9 [10:31:25]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:31:25]wFMCommunicate OK [10:31:25]SAM_PROTO_GetShiftState done [10:31:25]FM_GetShiftState done [10:31:25]req_shift_opened done [10:31:25]requested_item shift.open_date is exist - process it [10:31:25]req_shift_open_date [10:31:25]req_shift_open_date done [10:31:25]produce_requested_data done [10:31:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29785,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:31:25]process_action_free close_receipt [10:31:25]json_value_free [10:31:25]json_value_free done [10:31:25]process_json_proto returns [10:31:25]Send response to host [10:31:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29785,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:31:25]free response buf [10:31:25]execute_script done [10:31:25]execute_script returns [10:31:25]free content buf [10:31:25]Sock 9.Close socket [10:31:25]Sock 9.Thread stoped [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:48]accept exits with 7 [10:31:48]New connection [10:31:48]New thread 3067276644 created [10:31:48]Thread 3067133284 joined [10:31:48]Waiting for new connection... [10:31:48] Sock 7.Parse request [10:31:48]Sock 7.Check first char [10:31:48]Sock 7.First char is OK [10:31:48]request: POST /json_proto HTTP/1.0 [10:31:48]Method: POST [10:31:48]URL: /json_proto [10:31:48]Method is POST - this is cgi request [10:31:48]url: /json_proto [10:31:48]query_string will be loaded in cgi processing [10:31:48]execute_cgi json_proto POST (null) [10:31:48]execute_cgi path=json_proto method=POST [10:31:48]POST find Content-Length [10:31:48]Host: 172.17.33.3:8080 [10:31:48]Content-Length: 677 [10:31:48]Content-Type: application/json [10:31:48] [10:31:48]POST finish read [10:31:48]Found Content-Length = 677 [10:31:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:48]execute_script... [10:31: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 : (1)348272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:48]POST & json_proto [10:31:48]process_json_proto [10:31:48]json parsed OK: [10:31:48]protocol is kg_v1.0 [10:31:48]action value=close_receipt [10:31:48]process_action close_receipt [10:31:48]cmd_close_receipt [10:31:48]MH_GetDate [10:31:48]Write to MH i2c: F0 00 00 96 09 8E [10:31:48]Write i2c OK [10:31:48]MH_I2C_Read... [10:31:48]Read from MH i2c: F0 [10:31:48]MH_I2C_Read... [10:31:48]Read from MH i2c: F0 09 00 [10:31:48]MH_I2C_Read... [10:31:48]Read from MH i2c: F0 09 00 96 09 00 96 53 1E 66 23 5B 8F 65 76 [10:31:48]GetLastDocTimeStamp 1713263482 [10:31:48]current date 1713263510 [10:31:48]FM_GetShiftState [10:31:48]SAM_PROTO_GetShiftState [10:31:48]wFMCommunicate request_size=4 [10:31:48]MH_SAM_APDU [10:31:48]CAPDU: 80 13 01 00 [10:31:48]Write to MH i2c: E2 08 00 97 09 80 13 01 00 00 00 00 00 1D [10:31:48]Write i2c OK [10:31:48]MH_I2C_Read... [10:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:48]Read from MH i2c: E2 [10:31:48]MH_I2C_Read... [10:31:48]Read from MH i2c: E2 0E 00 [10:31:48]MH_I2C_Read... [10:31:48]Read from MH i2c: E2 0E 00 97 09 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 CB [10:31:48]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:31:48]wFMCommunicate OK [10:31:48]SAM_PROTO_GetShiftState done [10:31:48]FM_GetShiftState done [10:31:48]opened in 1713226843 [10:31:48]opened+sec_in_day 1713313243 [10:31:48]quantity*price = 50025 [10:31:48]sum+1 = 50027 [10:31:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 60 16.04.2024 10:31 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29786 ФПД: 182178580754065 1/tax-web-control/client/api/v1/ticket?date=20240416T103150&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29786&fm=182178580754065&tin=02508201610067®Number=0000138879044617&sum=50000 [10:31:50]StoreToDocumentArchive [10:31:50]shift 118 fd 29786 [10:31:50]save to /storage/0118/doc_00029786 [10:31:50]save last doc name /storage/0118/doc_00029786 to /storage/kkm_last_doc_name [10:31:50]save OK [10:31:50]Clear old archive folders... [10:31:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:50]tlvbuf is 0017A9B0 [10:31:50]SAM_PROTO_ClearQueue [10:31:50]wFMCommunicate request_size=4 [10:31:50]MH_SAM_APDU [10:31:50]CAPDU: 80 09 00 00 [10:31:50]Write to MH i2c: E2 08 00 A4 09 80 09 00 00 00 00 00 00 1F [10:31:50]Write i2c OK [10:31:50]MH_I2C_Read... [10:31:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:50]Read from MH i2c: E2 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 03 00 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 03 00 A4 09 00 90 00 21 [10:31:50]RAPDU: 90 00 [10:31:50]wFMCommunicate OK [10:31:50]SAM_PROTO_ClearQueue done [10:31:50]KKMCreateOFDPacket [10:31:50]OFDProtocolAddRootSTLVToBuf [10:31:50]FM_MakeSignedData [10:31:50]FM_MakeSignedData [10:31:50]SAM_PROTO_SignData [10:31:50]wFMCommunicate request_size=4 [10:31:50]MH_SAM_APDU [10:31:50]CAPDU: 80 0D 01 02 [10:31:50]Write to MH i2c: E2 08 00 A5 09 80 0D 01 02 00 00 00 00 27 [10:31:50]Write i2c OK [10:31:50]MH_I2C_Read... [10:31:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:50]Read from MH i2c: E2 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 03 00 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 03 00 A5 09 00 90 00 22 [10:31:50]RAPDU: 90 00 [10:31:50]wFMCommunicate OK [10:31:50]wFMCommunicate request_size=255 [10:31:50]MH_SAM_APDU [10:31:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 3C 00 00 00 F4 03 04 00 96 53 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 74 00 00 35 04 06 00 A5 [10:31:50]Write to MH i2c: E2 02 01 A6 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 3C 00 00 00 F4 03 04 00 96 53 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 74 00 00 35 04 06 00 A5 00 00 72 [10:31:50]Write i2c OK [10:31:50]MH_I2C_Read... [10:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:50]Read from MH i2c: E2 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 03 00 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 03 00 A6 09 00 90 00 23 [10:31:50]RAPDU: 90 00 [10:31:50]wFMCommunicate OK [10:31:50]wFMCommunicate request_size=10 [10:31:50]MH_SAM_APDU [10:31:50]CAPDU: 80 0D 02 02 05 B0 C1 97 6E 91 [10:31:50]Write to MH i2c: E2 0D 00 A7 09 80 0D 02 02 05 00 B0 C1 97 6E 91 00 00 3B [10:31:50]Write i2c OK [10:31:50]MH_I2C_Read... [10:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:50]Read from MH i2c: E2 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 03 00 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 03 00 A7 09 00 90 00 24 [10:31:50]RAPDU: 90 00 [10:31:50]wFMCommunicate OK [10:31:50]wFMCommunicate request_size=4 [10:31:50]MH_SAM_APDU [10:31:50]CAPDU: 80 0D 03 02 [10:31:50]Write to MH i2c: E2 08 00 A8 09 80 0D 03 02 00 00 00 00 2C [10:31:50]Write i2c OK [10:31:50]MH_I2C_Read... [10:31:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:50]Read from MH i2c: E2 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 0B 00 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 0B 00 A8 09 00 F7 04 AA 59 1B 81 63 A7 90 00 D1 [10:31:50]RAPDU: F7 04 AA 59 1B 81 63 A7 90 00 [10:31:50]wFMCommunicate OK [10:31:50]SAM_PROTO_SignData done [10:31:50]FM_MakeSignedData done [10:31:50]CreateOFDProtocolMessage [10:31:50]wFMCommunicate request_size=4 [10:31:50]MH_SAM_APDU [10:31:50]CAPDU: 80 11 00 00 [10:31:50]Write to MH i2c: E2 08 00 A9 09 80 11 00 00 00 00 00 00 2C [10:31:50]Write i2c OK [10:31:50]MH_I2C_Read... [10:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:50]Read from MH i2c: E2 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 17 00 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 17 00 A9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7B [10:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:31:50]wFMCommunicate OK [10:31:50]CreateOFDProtocolMessage done [10:31:50]OFDSenderStorePacket 29786 [10:31:50]StoreOFDPacket docnum=29786 [10:31:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 28 78 07 01 64 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 3C 00 00 00 F4 03 04 00 96 53 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 74 00 00 35 04 06 00 A5 B0 C1 97 6E 91 F7 04 AA 59 1B 81 63 A7 [10:31:50]CheckFolder [10:31:50]dirname=/storage/ofd_packets [10:31:50]CheckFolder done [10:31:50]ProducePacketName [10:31:50]name=ofd_packets/00029786 [10:31:50]NVStorageSaveData ofd_packets/00029786 [10:31:50]File name is /storage/ofd_packets/00029786 [10:31:50]Write 301 bytes [10:31:50]NVStorageSaveData done [10:31:50]OFDSenderStorePacket done [10:31:50]KKMCreateOFDPacket done [10:31:50]NVStorageSaveData kkm_last_timestamp [10:31:50]File name is /storage/kkm_last_timestamp [10:31:50]Write 4 bytes [10:31:50]NVStorageSaveData done [10:31:50]ExternCall_PrintAddStr [10:31:50]wPrintStart [10:31:50]Write to MH i2c: 01 00 00 AA 09 B3 [10:31:50]Write i2c OK [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: 01 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: 01 07 00 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: 01 07 00 AA 09 00 00 00 00 00 FF 0F C8 [10:31:50]RasterBufferAndPrint [10:31:50]line Счет N : (1)348272 [10:31:50]line ИНН: 02508201610067 [10:31:50]line Контрольно-Кассовый Чек [10:31:50]line ПРОДАЖА [10:31:50]line ТРК (МРК, ГНК) : 32 [10:31:50]line Товар: 2710124130 [10:31:50]line Аи-92-К-5 [10:31:50]line 7.720 * 64.80 [10:31:50]line = 500.26 [10:31:50]line НДС 12% НСП 1% [10:31:50]line > о реализуемом товаре [10:31:50]line ОКРУГЛЕНИЕ: -0.26 [10:31:50]line ИТОГО: 500.00 [10:31:50]line Внесено: 500.00 [10:31:50]line СДАЧА: 0.00 [10:31:50]line НСП 1% : 4.43 [10:31:50]line НДС 12% : 53.12 [10:31:50]line Наличными: 500.00 [10:31:50]line Безнал.: 0.00 [10:31:50]line Место: АЗС № 108 "Партнер Нефть" [10:31:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:31:50]line СНО: Общий режим [10:31:50]line Чек 60 16.04.2024 10:31 [10:31:50]line Смена: 118 ФФД: 1.0 [10:31:50]line ЗНМ: 0300000027 [10:31:50]line РНМ: 0000138879044617 [10:31:50]line Версия ККМ: 001 [10:31:50]line ФМ: 0000000000963154 [10:31:50]line ФД: 29786 [10:31:50]line ФПД: 182178580754065 [10:31:50]line 1/tax-web-control/client/api/v1/ticket?date=20240416T103150&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29786&fm=182178580754065&tin=02508201610067®Number=0000138879044617&sum=50000 [10:31:50]OFD Sender: Processing packet 29786 [packets to send 8, broken 7] [10:31:50]ProducePacketName [10:31:50]name=ofd_packets/00029786 [10:31:50]OFD Sender: To server: pG, [10:31:50]CommunicateWithHost lk.salyk.kg:30040 [10:31:50]ConnectInit lk.salyk.kg [10:31:50]written 0, free lines is 4095 [10:31:51]Connected sock=10 [10:31:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 28 78 07 01 64 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 3C 00 00 00 F4 03 04 00 96 53 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 74 00 00 35 04 06 00 A5 B0 C1 97 6E 91 F7 04 AA 59 1B 81 63 A7 [10:31:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 60 11 47 00 B3 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 74 00 00 F4 03 04 00 34 FE 1D 66 B6 04 01 00 00 78 39 8B 65 4F 96 2E 66 [10:31:51]CommunicateWithHost err = 0 [10:31:51]CheckOFDResponse [10:31:51]1017 (14) - 77093643461234 [10:31:51]1041 (16) - 0000000000963154 [10:31:51]1040 (4) - 29786 [10:31:51]1012 (4) - 16.04.2024 04:27 [10:31:51]1206 (1) - 0 [10:31:51]OFD Sender: Remove packet 29786 [10:31:51]ProducePacketName [10:31:51]name=ofd_packets/00029786 [10:31:51]NVStorageDeleteData [10:31:51]Write to MH i2c: 01 00 00 D4 09 DD [10:31:51]Write i2c OK [10:31:51]MH_I2C_Read... [10:31:51]Read from MH i2c: 01 [10:31:51]MH_I2C_Read... [10:31:51]Read from MH i2c: 01 07 00 [10:31:51]MH_I2C_Read... [10:31:51]Read from MH i2c: 01 07 00 D4 09 00 00 00 00 00 D5 0C C5 [10:31:51]RasterBufferAndPrint [10:31:51]line [10:31:51]line [10:31:51]line [10:31:51]line [10:31:51]line [10:31:51]written 0, free lines is 3291 [10:31:51]MH_Cut [10:31:51]Write to MH i2c: D1 01 00 DB 09 01 B6 [10:31:51]Write i2c OK [10:31:51]MH_I2C_Read... [10:31:51]Read from MH i2c: D1 [10:31:51]MH_I2C_Read... [10:31:51]Read from MH i2c: D1 01 00 [10:31:51]MH_I2C_Read... [10:31:51]Read from MH i2c: D1 01 00 DB 09 00 B5 [10:31:51]Write to MH i2c: 01 00 00 DC 09 E5 [10:31:51]Write i2c OK [10:31:51]MH_I2C_Read... [10:31:51]OFD Sender: No OFD packet to send [10:31:52]*** Cut start [10:31:52]*** Partial cut [10:31:52]*** CUTSNS_PIN = 1 [10:31:52]*** CUTSNS_PIN = 0 [10:31:52]*** Brake cut motor [10:31:52]Read from MH i2c: 01 [10:31:52]MH_I2C_Read... [10:31:52]*** Stop cut motor [10:31:52]*** Cut end [10:31:52]Read from MH i2c: 01 07 00 [10:31:52]MH_I2C_Read... [10:31:52]Read from MH i2c: 01 07 00 DC 09 00 00 00 00 00 FF 0F FA [10:31:52]process_action close_receipt done [10:31:52]requested_data is exist [10:31:52]produce_requested_data [10:31:52]requested_item fm.sn is exist - process it [10:31:52]wFMCommunicate request_size=4 [10:31:52]MH_SAM_APDU [10:31:52]CAPDU: 80 11 00 00 [10:31:52]Write to MH i2c: E2 08 00 DD 09 80 11 00 00 00 00 00 00 60 [10:31:52]Write i2c OK [10:31:52]MH_I2C_Read... [10:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:52]Read from MH i2c: E2 [10:31:52]MH_I2C_Read... [10:31:52]Read from MH i2c: E2 17 00 [10:31:52]MH_I2C_Read... [10:31:52]Read from MH i2c: E2 17 00 DD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AF [10:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:31:52]wFMCommunicate OK [10:31:52]requested_item fd.num is exist - process it [10:31:52]SAM_PROTO_GetFieldsCounters [10:31:52]wFMCommunicate request_size=4 [10:31:52]MH_SAM_APDU [10:31:52]CAPDU: 80 13 00 00 [10:31:52]Write to MH i2c: E2 08 00 DE 09 80 13 00 00 00 00 00 00 63 [10:31:52]Write i2c OK [10:31:52]MH_I2C_Read... [10:31:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:53]Read from MH i2c: E2 [10:31:53]MH_I2C_Read... [10:31:53]Read from MH i2c: E2 62 00 [10:31:53]MH_I2C_Read... [10:31:53]Read from MH i2c: E2 62 00 DE 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5A 74 00 00 0E 04 04 00 76 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 99 [10:31:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5A 74 00 00 0E 04 04 00 76 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 [10:31:53]wFMCommunicate OK [10:31:53]SAM_PROTO_GetFieldsCounters done [10:31:53]requested_item shift.num is exist - process it [10:31:53]requested_item shift.opened is exist - process it [10:31:53]req_shift_opened [10:31:53]FM_GetShiftState [10:31:53]SAM_PROTO_GetShiftState [10:31:53]wFMCommunicate request_size=4 [10:31:53]MH_SAM_APDU [10:31:53]CAPDU: 80 13 01 00 [10:31:53]Write to MH i2c: E2 08 00 DF 09 80 13 01 00 00 00 00 00 65 [10:31:53]Write i2c OK [10:31:53]MH_I2C_Read... [10:31:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:53]Read from MH i2c: E2 [10:31:53]MH_I2C_Read... [10:31:53]Read from MH i2c: E2 0E 00 [10:31:53]MH_I2C_Read... [10:31:53]Read from MH i2c: E2 0E 00 DF 09 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 13 [10:31:53]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:31:53]wFMCommunicate OK [10:31:53]SAM_PROTO_GetShiftState done [10:31:53]FM_GetShiftState done [10:31:53]req_shift_opened done [10:31:53]requested_item shift.open_date is exist - process it [10:31:53]req_shift_open_date [10:31:53]req_shift_open_date done [10:31:53]produce_requested_data done [10:31:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29786,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:31:53]process_action_free close_receipt [10:31:53]json_value_free [10:31:53]json_value_free done [10:31:53]process_json_proto returns [10:31:53]Send response to host [10:31:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29786,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:31:53]free response buf [10:31:53]execute_script done [10:31:53]execute_script returns [10:31:53]free content buf [10:31:53]Sock 7.Close socket [10:31:53]Sock 7.Thread stoped [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:04]accept exits with 9 [10:32:04]New connection [10:32:04]New thread 3067133284 created [10:32:04]Thread 3067276644 joined [10:32:04]Waiting for new connection... [10:32:04] Sock 9.Parse request [10:32:04]Sock 9.Check first char [10:32:04]Sock 9.First char is OK [10:32:04]request: POST /json_proto HTTP/1.0 [10:32:04]Method: POST [10:32:04]URL: /json_proto [10:32:04]Method is POST - this is cgi request [10:32:04]url: /json_proto [10:32:04]query_string will be loaded in cgi processing [10:32:04]execute_cgi json_proto POST (null) [10:32:04]execute_cgi path=json_proto method=POST [10:32:04]POST find Content-Length [10:32:04]Host: 172.17.33.3:8080 [10:32:04]Content-Length: 844 [10:32:04]Content-Type: application/json [10:32:04] [10:32:04]POST finish read [10:32:04]Found Content-Length = 844 [10:32:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 23.960, "sum" : 800.26, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 800.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:04]execute_script... [10:32:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 23.960, "sum" : 800.26, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 800.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:04]POST & json_proto [10:32:04]process_json_proto [10:32:04]json parsed OK: [10:32:04]protocol is kg_v1.0 [10:32:04]action value=close_receipt [10:32:04]process_action close_receipt [10:32:04]cmd_close_receipt [10:32:04]MH_GetDate [10:32:04]Write to MH i2c: F0 00 00 E0 09 D8 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: F0 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: F0 09 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: F0 09 00 E0 09 00 A6 53 1E 66 23 5B 8F 65 D0 [10:32:04]GetLastDocTimeStamp 1713263510 [10:32:04]current date 1713263526 [10:32:04]FM_GetShiftState [10:32:04]SAM_PROTO_GetShiftState [10:32:04]wFMCommunicate request_size=4 [10:32:04]MH_SAM_APDU [10:32:04]CAPDU: 80 13 01 00 [10:32:04]Write to MH i2c: E2 08 00 E1 09 80 13 01 00 00 00 00 00 67 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 0E 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 0E 00 E1 09 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 15 [10:32:04]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:32:04]wFMCommunicate OK [10:32:04]SAM_PROTO_GetShiftState done [10:32:04]FM_GetShiftState done [10:32:04]opened in 1713226843 [10:32:04]opened+sec_in_day 1713313243 [10:32:04]quantity*price = 80026 [10:32:04]sum+1 = 80027 [10:32:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.26 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 0.00 Безнал.: 800.26 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 61 16.04.2024 10:32 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29787 ФПД: 126603659239763 1/tax-web-control/client/api/v1/ticket?date=20240416T103206&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29787&fm=126603659239763&tin=02508201610067®Number=0000138879044617&sum=80026 [10:32:06]StoreToDocumentArchive [10:32:06]shift 118 fd 29787 [10:32:06]save to /storage/0118/doc_00029787 [10:32:06]save last doc name /storage/0118/doc_00029787 to /storage/kkm_last_doc_name [10:32:06]save OK [10:32:06]Clear old archive folders... [10:32:06]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:32:06]tlvbuf is 00198D70 [10:32:06]SAM_PROTO_ClearQueue [10:32:06]wFMCommunicate request_size=4 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 09 00 00 [10:32:06]Write to MH i2c: E2 08 00 EE 09 80 09 00 00 00 00 00 00 69 [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 EE 09 00 90 00 6B [10:32:06]RAPDU: 90 00 [10:32:06]wFMCommunicate OK [10:32:06]SAM_PROTO_ClearQueue done [10:32:06]KKMCreateOFDPacket [10:32:06]OFDProtocolAddRootSTLVToBuf [10:32:06]FM_MakeSignedData [10:32:06]FM_MakeSignedData [10:32:06]SAM_PROTO_SignData [10:32:06]wFMCommunicate request_size=4 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 0D 01 02 [10:32:06]Write to MH i2c: E2 08 00 EF 09 80 0D 01 02 00 00 00 00 71 [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 EF 09 00 90 00 6C [10:32:06]RAPDU: 90 00 [10:32:06]wFMCommunicate OK [10:32:06]wFMCommunicate request_size=255 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 98 5D 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A6 53 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 74 00 00 35 04 06 00 73 25 [10:32:06]Write to MH i2c: E2 02 01 F0 09 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 98 5D 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A6 53 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 74 00 00 35 04 06 00 73 25 00 00 7F [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 F0 09 00 90 00 6D [10:32:06]RAPDU: 90 00 [10:32:06]wFMCommunicate OK [10:32:06]wFMCommunicate request_size=9 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 0D 02 02 04 36 22 E1 53 [10:32:06]Write to MH i2c: E2 0C 00 F1 09 80 0D 02 02 04 00 36 22 E1 53 00 00 08 [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 F1 09 00 90 00 6E [10:32:06]RAPDU: 90 00 [10:32:06]wFMCommunicate OK [10:32:06]wFMCommunicate request_size=4 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 0D 03 02 [10:32:06]Write to MH i2c: E2 08 00 F2 09 80 0D 03 02 00 00 00 00 76 [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 0B 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 0B 00 F2 09 00 89 9C 84 65 A7 E7 9F 5A 90 00 0C [10:32:06]RAPDU: 89 9C 84 65 A7 E7 9F 5A 90 00 [10:32:06]wFMCommunicate OK [10:32:06]SAM_PROTO_SignData done [10:32:06]FM_MakeSignedData done [10:32:06]CreateOFDProtocolMessage [10:32:06]wFMCommunicate request_size=4 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 11 00 00 [10:32:06]Write to MH i2c: E2 08 00 F3 09 80 11 00 00 00 00 00 00 76 [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 17 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 17 00 F3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C5 [10:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:32:06]wFMCommunicate OK [10:32:06]CreateOFDProtocolMessage done [10:32:06]OFDSenderStorePacket 29787 [10:32:06]StoreOFDPacket docnum=29787 [10:32:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 B9 21 06 01 95 42 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 98 5D 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A6 53 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 74 00 00 35 04 06 00 73 25 36 22 E1 53 89 9C 84 65 A7 E7 9F 5A [10:32:06]CheckFolder [10:32:06]dirname=/storage/ofd_packets [10:32:06]CheckFolder done [10:32:06]ProducePacketName [10:32:06]name=ofd_packets/00029787 [10:32:06]NVStorageSaveData ofd_packets/00029787 [10:32:06]File name is /storage/ofd_packets/00029787 [10:32:06]Write 300 bytes [10:32:06]NVStorageSaveData done [10:32:06]OFDSenderStorePacket done [10:32:06]KKMCreateOFDPacket done [10:32:06]NVStorageSaveData kkm_last_timestamp [10:32:06]File name is /storage/kkm_last_timestamp [10:32:06]Write 4 bytes [10:32:06]NVStorageSaveData done [10:32:06]ExternCall_PrintAddStr [10:32:06]wPrintStart [10:32:06]Write to MH i2c: 01 00 00 F4 09 FD [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: 01 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: 01 07 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: 01 07 00 F4 09 00 00 00 00 00 FF 0F 12 [10:32:06]RasterBufferAndPrint [10:32:06]line Счет N : (1)348271 [10:32:06]line ИНН: 02508201610067 [10:32:06]line Контрольно-Кассовый Чек [10:32:06]line ПРОДАЖА [10:32:06]line ТРК (МРК, ГНК) : 71 [10:32:06]line Товар: 2711129700 [10:32:06]line ГАЗ-К-5 [10:32:06]line 23.960 * 33.40 [10:32:06]line = 800.26 [10:32:06]line НДС 12% НСП 1% [10:32:06]line > о реализуемом товаре [10:32:06]line ИТОГО: 800.26 [10:32:06]line НСП 1% : 7.08 [10:32:06]line НДС 12% : 84.98 [10:32:06]line Наличными: 0.00 [10:32:06]line Безнал.: 800.26 [10:32:06]line Место: АЗС № 108 "Партнер Нефть" [10:32:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:32:06]line СНО: Общий режим [10:32:06]line Чек 61 16.04.2024 10:32 [10:32:06]line Смена: 118 ФФД: 1.0 [10:32:06]line ЗНМ: 0300000027 [10:32:06]line РНМ: 0000138879044617 [10:32:06]line Версия ККМ: 001 [10:32:06]line Платежная система: АКБ Кыргызстан [10:32:06]line ФМ: 0000000000963154 [10:32:06]line ФД: 29787 [10:32:06]line ФПД: 126603659239763 [10:32:06]line 1/tax-web-control/client/api/v1/ticket?date=20240416T103206&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29787&fm=126603659239763&tin=02508201610067®Number=0000138879044617&sum=80026 [10:32:06]OFD Sender: Processing packet 29787 [packets to send 8, broken 7] [10:32:06]ProducePacketName [10:32:06]name=ofd_packets/00029787 [10:32:06]OFD Sender: To server: pG, [10:32:06]CommunicateWithHost lk.salyk.kg:30040 [10:32:06]ConnectInit lk.salyk.kg [10:32:06]written 0, free lines is 4095 [10:32:07]Connected sock=10 [10:32:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 B9 21 06 01 95 42 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 98 5D 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A6 53 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 74 00 00 35 04 06 00 73 25 36 22 E1 53 89 9C 84 65 A7 E7 9F 5A [10:32:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 32 D5 47 00 0D 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 36 33 31 35 34 10 04 04 00 5B 74 00 00 F4 03 04 00 44 FE 1D 66 B6 04 01 00 00 D4 B6 9B 8E 8F AB 2D BC [10:32:07]CommunicateWithHost err = 0 [10:32:07]CheckOFDResponse [10:32:07]1017 (14) - 77093643461234 [10:32:07]1041 (16) - 0000000000963154 [10:32:07]1040 (4) - 29787 [10:32:07]1012 (4) - 16.04.2024 04:27 [10:32:07]1206 (1) - 0 [10:32:07]OFD Sender: Remove packet 29787 [10:32:07]ProducePacketName [10:32:07]name=ofd_packets/00029787 [10:32:07]NVStorageDeleteData [10:32:07]Write to MH i2c: 01 00 00 1D 0A 27 [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: 01 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: 01 07 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: 01 07 00 1D 0A 00 00 00 00 00 EB 0C 25 [10:32:07]RasterBufferAndPrint [10:32:07]line [10:32:07]line [10:32:07]line [10:32:07]line [10:32:07]line [10:32:07]written 0, free lines is 3314 [10:32:07]MH_Cut [10:32:07]Write to MH i2c: D1 01 00 24 0A 01 00 [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: D1 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: D1 01 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: D1 01 00 24 0A 00 FF [10:32:07]Write to MH i2c: 01 00 00 25 0A 2F [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]OFD Sender: No OFD packet to send [10:32:08]*** Cut start [10:32:08]*** Partial cut [10:32:08]*** CUTSNS_PIN = 1 [10:32:08]*** CUTSNS_PIN = 0 [10:32:08]*** Brake cut motor [10:32:08]Read from MH i2c: 01 [10:32:08]MH_I2C_Read... [10:32:08]*** Stop cut motor [10:32:08]*** Cut end [10:32:08]Read from MH i2c: 01 07 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: 01 07 00 25 0A 00 00 00 00 00 FF 0F 44 [10:32:08]process_action close_receipt done [10:32:08]requested_data is exist [10:32:08]produce_requested_data [10:32:08]requested_item fm.sn is exist - process it [10:32:08]wFMCommunicate request_size=4 [10:32:08]MH_SAM_APDU [10:32:08]CAPDU: 80 11 00 00 [10:32:08]Write to MH i2c: E2 08 00 26 0A 80 11 00 00 00 00 00 00 AA [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:08]Read from MH i2c: E2 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 17 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 17 00 26 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F9 [10:32:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:32:08]wFMCommunicate OK [10:32:08]requested_item fd.num is exist - process it [10:32:08]SAM_PROTO_GetFieldsCounters [10:32:08]wFMCommunicate request_size=4 [10:32:08]MH_SAM_APDU [10:32:08]CAPDU: 80 13 00 00 [10:32:08]Write to MH i2c: E2 08 00 27 0A 80 13 00 00 00 00 00 00 AD [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:08]Read from MH i2c: E2 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 62 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 62 00 27 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5B 74 00 00 0E 04 04 00 76 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 E7 [10:32:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5B 74 00 00 0E 04 04 00 76 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 [10:32:08]wFMCommunicate OK [10:32:08]SAM_PROTO_GetFieldsCounters done [10:32:08]requested_item shift.num is exist - process it [10:32:08]requested_item shift.opened is exist - process it [10:32:08]req_shift_opened [10:32:08]FM_GetShiftState [10:32:08]SAM_PROTO_GetShiftState [10:32:08]wFMCommunicate request_size=4 [10:32:08]MH_SAM_APDU [10:32:08]CAPDU: 80 13 01 00 [10:32:08]Write to MH i2c: E2 08 00 28 0A 80 13 01 00 00 00 00 00 AF [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:09]Read from MH i2c: E2 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 0E 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 0E 00 28 0A 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 5D [10:32:09]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:32:09]wFMCommunicate OK [10:32:09]SAM_PROTO_GetShiftState done [10:32:09]FM_GetShiftState done [10:32:09]req_shift_opened done [10:32:09]requested_item shift.open_date is exist - process it [10:32:09]req_shift_open_date [10:32:09]req_shift_open_date done [10:32:09]produce_requested_data done [10:32:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29787,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:32:09]process_action_free close_receipt [10:32:09]json_value_free [10:32:09]json_value_free done [10:32:09]process_json_proto returns [10:32:09]Send response to host [10:32:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29787,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:32:09]free response buf [10:32:09]execute_script done [10:32:09]execute_script returns [10:32:09]free content buf [10:32:09]Sock 9.Close socket [10:32:09]Sock 9.Thread stoped [10:32:12]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:37]OFD Sender: No OFD packet to send [10:32:42]OFD Sender: No OFD packet to send [10:32:47]OFD Sender: No OFD packet to send [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:33:02]OFD Sender: No OFD packet to send [10:33:07]OFD Sender: No OFD packet to send [10:33:12]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:42]OFD Sender: No OFD packet to send [10:33:47]OFD Sender: No OFD packet to send [10:33:52]OFD Sender: No OFD packet to send [10:33:57]OFD Sender: No OFD packet to send [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:05]accept exits with 7 [10:35:05]New connection [10:35:05]New thread 3067276644 created [10:35:05]Thread 3067133284 joined [10:35:05]Waiting for new connection... [10:35:05] Sock 7.Parse request [10:35:05]Sock 7.Check first char [10:35:05]Sock 7.First char is OK [10:35:05]request: POST /json_proto HTTP/1.0 [10:35:05]Method: POST [10:35:05]URL: /json_proto [10:35:05]Method is POST - this is cgi request [10:35:05]url: /json_proto [10:35:05]query_string will be loaded in cgi processing [10:35:05]execute_cgi json_proto POST (null) [10:35:05]execute_cgi path=json_proto method=POST [10:35:05]POST find Content-Length [10:35:05]Host: 172.17.33.3:8080 [10:35:05]Content-Length: 1204 [10:35:05]Content-Type: application/json [10:35:05] [10:35:05]POST finish read [10:35:05]Found Content-Length = 1204 [10:35:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348273\u000A16.04.2024 10:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43339\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:05]execute_script... [10:35:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348273\u000A16.04.2024 10:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43339\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:05]POST & json_proto [10:35:05]process_json_proto [10:35:05]json parsed OK: [10:35:05]protocol is kg_v1.0 [10:35:05]action value=print_text [10:35:05]process_action print_text [10:35:05]cmd_print_text [10:35:05]ExternCall_PrintAddStr [10:35:05]wPrintStart [10:35:05]Write to MH i2c: 01 00 00 29 0A 33 [10:35:05]Write i2c OK [10:35:05]MH_I2C_Read... [10:35:05]Read from MH i2c: 01 [10:35:05]MH_I2C_Read... [10:35:05]Read from MH i2c: 01 07 00 [10:35:05]MH_I2C_Read... [10:35:05]Read from MH i2c: 01 07 00 29 0A 00 00 00 00 00 FF 0F 48 [10:35:05]RasterBufferAndPrint [10:35:05]line *****ТОВАРНЫЙ ЧЕК***** [10:35:05]line АЗС 108 [10:35:05]line Партнер нефть [10:35:05]line 02508201610067 [10:35:05]line Кассир : Шадыканова Ж. [10:35:05]line Счет N : (1)348273 [10:35:05]line 16.04.2024 10:16 [10:35:05]line ПРОДАЖА [10:35:05]line ТРК (МРК, ГНК): 61 [10:35:05]line Вид ГСМ : 2710194210 [10:35:05]line ДТ-К-5 [10:35:05]line 60.000 x 72.90 [10:35:05]line ИТОГ: 4374.00 [10:35:05]line Тип оплаты: Талоны: Топливная Карта [10:35:05]line 43339 [10:35:05]line ______________________ [10:35:05]line (подпись) [10:35:05]written 0, free lines is 4095 [10:35:05]Write to MH i2c: 01 00 00 3E 0A 48 [10:35:05]Write i2c OK [10:35:05]MH_I2C_Read... [10:35:05]Read from MH i2c: 01 [10:35:05]MH_I2C_Read... [10:35:05]Read from MH i2c: 01 07 00 [10:35:05]MH_I2C_Read... [10:35:05]Read from MH i2c: 01 07 00 3E 0A 00 00 00 00 00 F4 0D 50 [10:35:05]RasterBufferAndPrint [10:35:05]line [10:35:05]line [10:35:05]line [10:35:05]line [10:35:05]line [10:35:05]written 0, free lines is 3574 [10:35:05]MH_Cut [10:35:05]Write to MH i2c: D1 01 00 45 0A 01 21 [10:35:05]Write i2c OK [10:35:05]MH_I2C_Read... [10:35:05]Read from MH i2c: D1 [10:35:05]MH_I2C_Read... [10:35:05]Read from MH i2c: D1 01 00 [10:35:05]MH_I2C_Read... [10:35:05]Read from MH i2c: D1 01 00 45 0A 00 20 [10:35:05]Write to MH i2c: 01 00 00 46 0A 50 [10:35:05]Write i2c OK [10:35:05]MH_I2C_Read... [10:35:06]*** Cut start [10:35:06]*** Partial cut [10:35:06]*** CUTSNS_PIN = 1 [10:35:06]*** CUTSNS_PIN = 0 [10:35:06]*** Brake cut motor [10:35:07]Read from MH i2c: 01 [10:35:07]MH_I2C_Read... [10:35:07]*** Stop cut motor [10:35:07]*** Cut end [10:35:07]Read from MH i2c: 01 07 00 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: 01 07 00 46 0A 00 00 00 00 00 FF 0F 65 [10:35:07]process_action print_text done [10:35:07]requested_data is exist [10:35:07]produce_requested_data [10:35:07]requested_item fm.sn is exist - process it [10:35:07]wFMCommunicate request_size=4 [10:35:07]MH_SAM_APDU [10:35:07]CAPDU: 80 11 00 00 [10:35:07]Write to MH i2c: E2 08 00 47 0A 80 11 00 00 00 00 00 00 CB [10:35:07]Write i2c OK [10:35:07]MH_I2C_Read... [10:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:07]Read from MH i2c: E2 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: E2 17 00 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: E2 17 00 47 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1A [10:35:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:35:07]wFMCommunicate OK [10:35:07]requested_item fd.num is exist - process it [10:35:07]SAM_PROTO_GetFieldsCounters [10:35:07]wFMCommunicate request_size=4 [10:35:07]MH_SAM_APDU [10:35:07]CAPDU: 80 13 00 00 [10:35:07]Write to MH i2c: E2 08 00 48 0A 80 13 00 00 00 00 00 00 CE [10:35:07]Write i2c OK [10:35:07]MH_I2C_Read... [10:35:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:07]Read from MH i2c: E2 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: E2 62 00 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: E2 62 00 48 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5B 74 00 00 0E 04 04 00 76 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 08 [10:35:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5B 74 00 00 0E 04 04 00 76 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 [10:35:07]wFMCommunicate OK [10:35:07]SAM_PROTO_GetFieldsCounters done [10:35:07]requested_item shift.num is exist - process it [10:35:07]requested_item shift.opened is exist - process it [10:35:07]req_shift_opened [10:35:07]FM_GetShiftState [10:35:07]SAM_PROTO_GetShiftState [10:35:07]wFMCommunicate request_size=4 [10:35:07]MH_SAM_APDU [10:35:07]CAPDU: 80 13 01 00 [10:35:07]Write to MH i2c: E2 08 00 49 0A 80 13 01 00 00 00 00 00 D0 [10:35:07]Write i2c OK [10:35:07]MH_I2C_Read... [10:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:07]Read from MH i2c: E2 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: E2 0E 00 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: E2 0E 00 49 0A 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 7E [10:35:07]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:35:07]wFMCommunicate OK [10:35:07]SAM_PROTO_GetShiftState done [10:35:07]FM_GetShiftState done [10:35:07]req_shift_opened done [10:35:07]requested_item shift.open_date is exist - process it [10:35:07]req_shift_open_date [10:35:07]req_shift_open_date done [10:35:07]produce_requested_data done [10:35:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29787,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:35:07]process_action_free print_text [10:35:07]json_value_free [10:35:07]json_value_free done [10:35:07]process_json_proto returns [10:35:07]Send response to host [10:35:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29787,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:35:07]free response buf [10:35:07]execute_script done [10:35:07]execute_script returns [10:35:07]free content buf [10:35:07]Sock 7.Close socket [10:35:07]Sock 7.Thread stoped [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:04]accept exits with 9 [10:36:04]New connection [10:36:04]New thread 3067133284 created [10:36:04]Thread 3067276644 joined [10:36:04]Waiting for new connection... [10:36:04] Sock 9.Parse request [10:36:04]Sock 9.Check first char [10:36:04]Sock 9.First char is OK [10:36:04]request: POST /json_proto HTTP/1.0 [10:36:04]Method: POST [10:36:04]URL: /json_proto [10:36:04]Method is POST - this is cgi request [10:36:04]url: /json_proto [10:36:04]query_string will be loaded in cgi processing [10:36:04]execute_cgi json_proto POST (null) [10:36:04]execute_cgi path=json_proto method=POST [10:36:04]POST find Content-Length [10:36:04]Host: 172.17.33.3:8080 [10:36:04]Content-Length: 1204 [10:36:04]Content-Type: application/json [10:36:04] [10:36:04]POST finish read [10:36:04]Found Content-Length = 1204 [10:36:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348274\u000A16.04.2024 10:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02137\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:04]execute_script... [10:36:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348274\u000A16.04.2024 10:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02137\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:04]POST & json_proto [10:36:04]process_json_proto [10:36:04]json parsed OK: [10:36:04]protocol is kg_v1.0 [10:36:04]action value=print_text [10:36:04]process_action print_text [10:36:04]cmd_print_text [10:36:04]ExternCall_PrintAddStr [10:36:04]wPrintStart [10:36:04]Write to MH i2c: 01 00 00 4A 0A 54 [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: 01 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: 01 07 00 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: 01 07 00 4A 0A 00 00 00 00 00 FF 0F 69 [10:36:04]RasterBufferAndPrint [10:36:04]line *****ТОВАРНЫЙ ЧЕК***** [10:36:04]line АЗС 108 [10:36:04]line Партнер нефть [10:36:04]line 02508201610067 [10:36:04]line Кассир : Шадыканова Ж. [10:36:04]line Счет N : (1)348274 [10:36:04]line 16.04.2024 10:17 [10:36:04]line ПРОДАЖА [10:36:04]line ТРК (МРК, ГНК): 61 [10:36:04]line Вид ГСМ : 2710194210 [10:36:04]line ДТ-К-5 [10:36:04]line 20.000 x 72.90 [10:36:04]line ИТОГ: 1458.00 [10:36:04]line Тип оплаты: Талоны: Топливная Карта [10:36:04]line 02137 [10:36:04]line ______________________ [10:36:04]line (подпись) [10:36:04]written 0, free lines is 4095 [10:36:04]Write to MH i2c: 01 00 00 5F 0A 69 [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: 01 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: 01 07 00 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: 01 07 00 5F 0A 00 00 00 00 00 F3 0D 70 [10:36:04]RasterBufferAndPrint [10:36:04]line [10:36:04]line [10:36:04]line [10:36:04]line [10:36:04]line [10:36:04]written 0, free lines is 3573 [10:36:04]MH_Cut [10:36:04]Write to MH i2c: D1 01 00 66 0A 01 42 [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: D1 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: D1 01 00 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: D1 01 00 66 0A 00 41 [10:36:04]Write to MH i2c: 01 00 00 67 0A 71 [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]*** Cut start [10:36:04]*** Partial cut [10:36:04]*** CUTSNS_PIN = 1 [10:36:04]*** CUTSNS_PIN = 0 [10:36:05]*** Brake cut motor [10:36:05]Read from MH i2c: 01 [10:36:05]MH_I2C_Read... [10:36:05]*** Stop cut motor [10:36:05]*** Cut end [10:36:05]Read from MH i2c: 01 07 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: 01 07 00 67 0A 00 00 00 00 00 FF 0F 86 [10:36:05]process_action print_text done [10:36:05]requested_data is exist [10:36:05]produce_requested_data [10:36:05]requested_item fm.sn is exist - process it [10:36:05]wFMCommunicate request_size=4 [10:36:05]MH_SAM_APDU [10:36:05]CAPDU: 80 11 00 00 [10:36:05]Write to MH i2c: E2 08 00 68 0A 80 11 00 00 00 00 00 00 EC [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:05]Read from MH i2c: E2 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 17 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 17 00 68 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3B [10:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:36:05]wFMCommunicate OK [10:36:05]requested_item fd.num is exist - process it [10:36:05]SAM_PROTO_GetFieldsCounters [10:36:05]wFMCommunicate request_size=4 [10:36:05]MH_SAM_APDU [10:36:05]CAPDU: 80 13 00 00 [10:36:05]Write to MH i2c: E2 08 00 69 0A 80 13 00 00 00 00 00 00 EF [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:05]Read from MH i2c: E2 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 62 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 62 00 69 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5B 74 00 00 0E 04 04 00 76 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 29 [10:36:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5B 74 00 00 0E 04 04 00 76 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 [10:36:05]wFMCommunicate OK [10:36:05]SAM_PROTO_GetFieldsCounters done [10:36:05]requested_item shift.num is exist - process it [10:36:05]requested_item shift.opened is exist - process it [10:36:05]req_shift_opened [10:36:05]FM_GetShiftState [10:36:05]SAM_PROTO_GetShiftState [10:36:05]wFMCommunicate request_size=4 [10:36:05]MH_SAM_APDU [10:36:05]CAPDU: 80 13 01 00 [10:36:05]Write to MH i2c: E2 08 00 6A 0A 80 13 01 00 00 00 00 00 F1 [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:05]Read from MH i2c: E2 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 0E 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 0E 00 6A 0A 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 9F [10:36:05]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:36:05]wFMCommunicate OK [10:36:05]SAM_PROTO_GetShiftState done [10:36:05]FM_GetShiftState done [10:36:05]req_shift_opened done [10:36:05]requested_item shift.open_date is exist - process it [10:36:05]req_shift_open_date [10:36:05]req_shift_open_date done [10:36:05]produce_requested_data done [10:36:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29787,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:36:05]process_action_free print_text [10:36:05]json_value_free [10:36:05]json_value_free done [10:36:05]process_json_proto returns [10:36:05]Send response to host [10:36:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29787,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:36:05]free response buf [10:36:05]execute_script done [10:36:05]execute_script returns [10:36:05]free content buf [10:36:05]Sock 9.Close socket [10:36:05]Sock 9.Thread stoped [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:13]OFD Sender: No OFD packet to send [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:33]OFD Sender: No OFD packet to send [10:38:38]OFD Sender: No OFD packet to send [10:38:43]OFD Sender: No OFD packet to send [10:38:48]OFD Sender: No OFD packet to send [10:38:53]OFD Sender: No OFD packet to send [10:38:58]OFD Sender: No OFD packet to send [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:13]OFD Sender: No OFD packet to send [10:39:18]OFD Sender: No OFD packet to send [10:39:23]OFD Sender: No OFD packet to send [10:39:28]OFD Sender: No OFD packet to send [10:39:33]OFD Sender: No OFD packet to send [10:39:38]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:58]OFD Sender: No OFD packet to send [10:40:03]OFD Sender: No OFD packet to send [10:40:08]OFD Sender: No OFD packet to send [10:40:13]OFD Sender: No OFD packet to send [10:40:18]OFD Sender: No OFD packet to send [10:40:23]OFD Sender: No OFD packet to send [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:43]OFD Sender: No OFD packet to send [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:58]OFD Sender: No OFD packet to send [10:41:03]OFD Sender: No OFD packet to send [10:41:08]OFD Sender: No OFD packet to send [10:41:13]OFD Sender: No OFD packet to send [10:41:18]OFD Sender: No OFD packet to send [10:41:23]OFD Sender: No OFD packet to send [10:41:28]OFD Sender: No OFD packet to send [10:41:33]OFD Sender: No OFD packet to send [10:41:38]OFD Sender: No OFD packet to send [10:41:43]OFD Sender: No OFD packet to send [10:41:48]OFD Sender: No OFD packet to send [10:41:53]OFD Sender: No OFD packet to send [10:41:58]OFD Sender: No OFD packet to send [10:42:03]OFD Sender: No OFD packet to send [10:42:08]OFD Sender: No OFD packet to send [10:42:13]OFD Sender: No OFD packet to send [10:42:18]OFD Sender: No OFD packet to send [10:42:23]OFD Sender: No OFD packet to send [10:42:28]OFD Sender: No OFD packet to send [10:42:33]OFD Sender: No OFD packet to send [10:42:38]OFD Sender: No OFD packet to send [10:42:43]OFD Sender: No OFD packet to send [10:42:48]OFD Sender: No OFD packet to send [10:42:53]OFD Sender: No OFD packet to send [10:42:58]OFD Sender: No OFD packet to send [10:43:03]OFD Sender: No OFD packet to send [10:43:08]OFD Sender: No OFD packet to send [10:43:13]OFD Sender: No OFD packet to send [10:43:18]OFD Sender: No OFD packet to send [10:43:23]OFD Sender: No OFD packet to send [10:43:28]OFD Sender: No OFD packet to send [10:43:33]OFD Sender: No OFD packet to send [10:43:38]OFD Sender: No OFD packet to send [10:43:43]OFD Sender: No OFD packet to send [10:43:48]OFD Sender: No OFD packet to send [10:43:53]OFD Sender: No OFD packet to send [10:43:54]accept exits with 7 [10:43:54]New connection [10:43:54]New thread 3067276644 created [10:43:54]Thread 3067133284 joined [10:43:54]Waiting for new connection... [10:43:54] Sock 7.Parse request [10:43:54]Sock 7.Check first char [10:43:54]Sock 7.First char is OK [10:43:54]request: POST /json_proto HTTP/1.0 [10:43:54]Method: POST [10:43:54]URL: /json_proto [10:43:54]Method is POST - this is cgi request [10:43:54]url: /json_proto [10:43:54]query_string will be loaded in cgi processing [10:43:54]execute_cgi json_proto POST (null) [10:43:54]execute_cgi path=json_proto method=POST [10:43:54]POST find Content-Length [10:43:54]Host: 172.17.33.3:8080 [10:43:54]Content-Length: 671 [10:43:54]Content-Type: application/json [10:43:54] [10:43:54]POST finish read [10:43:54]Found Content-Length = 671 [10:43:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 0.060, "sum" : 3.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 3.00, "payments": [ { "type": 0, "sum" : 3.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:54]execute_script... [10:43:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 0.060, "sum" : 3.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 3.00, "payments": [ { "type": 0, "sum" : 3.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:54]POST & json_proto [10:43:54]process_json_proto [10:43:54]json parsed OK: [10:43:54]protocol is kg_v1.0 [10:43:54]action value=close_receipt [10:43:54]process_action close_receipt [10:43:54]cmd_close_receipt [10:43:54]MH_GetDate [10:43:54]Write to MH i2c: F0 00 00 6B 0A 64 [10:43:54]Write i2c OK [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: F0 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: F0 09 00 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: F0 09 00 6B 0A 00 6B 56 1E 66 23 5B 8F 65 24 [10:43:54]GetLastDocTimeStamp 1713263526 [10:43:54]current date 1713264235 [10:43:54]FM_GetShiftState [10:43:54]SAM_PROTO_GetShiftState [10:43:54]wFMCommunicate request_size=4 [10:43:54]MH_SAM_APDU [10:43:54]CAPDU: 80 13 01 00 [10:43:54]Write to MH i2c: E2 08 00 6C 0A 80 13 01 00 00 00 00 00 F3 [10:43:54]Write i2c OK [10:43:54]MH_I2C_Read... [10:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:54]Read from MH i2c: E2 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 0E 00 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 0E 00 6C 0A 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 A1 [10:43:54]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:43:54]wFMCommunicate OK [10:43:54]SAM_PROTO_GetShiftState done [10:43:54]FM_GetShiftState done [10:43:54]opened in 1713226843 [10:43:54]opened+sec_in_day 1713313243 [10:43:54]quantity*price = 388 [10:43:54]sum+1 = 390 [10:43:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.89 ИТОГО: 3.00 Внесено: 300.00 СДАЧА: 297.00 НСП 1% : 0.03 НДС 12% : 0.41 Наличными: 3.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 62 16.04.2024 10:43 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29788 ФПД: 180621211583234 1/tax-web-control/client/api/v1/ticket?date=20240416T104355&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29788&fm=180621211583234&tin=02508201610067®Number=0000138879044617&sum=300 [10:43:55]StoreToDocumentArchive [10:43:55]shift 118 fd 29788 [10:43:55]save to /storage/0118/doc_00029788 [10:43:55]save last doc name /storage/0118/doc_00029788 to /storage/kkm_last_doc_name [10:43:55]save OK [10:43:55]Clear old archive folders... [10:43:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:55]tlvbuf is 00198C60 [10:43:55]SAM_PROTO_ClearQueue [10:43:55]wFMCommunicate request_size=4 [10:43:55]MH_SAM_APDU [10:43:55]CAPDU: 80 09 00 00 [10:43:55]Write to MH i2c: E2 08 00 79 0A 80 09 00 00 00 00 00 00 F5 [10:43:55]Write i2c OK [10:43:55]MH_I2C_Read... [10:43:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:55]Read from MH i2c: E2 [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: E2 03 00 [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: E2 03 00 79 0A 00 90 00 F7 [10:43:55]RAPDU: 90 00 [10:43:55]wFMCommunicate OK [10:43:55]SAM_PROTO_ClearQueue done [10:43:55]KKMCreateOFDPacket [10:43:55]OFDProtocolAddRootSTLVToBuf [10:43:55]FM_MakeSignedData [10:43:55]FM_MakeSignedData [10:43:55]SAM_PROTO_SignData [10:43:55]wFMCommunicate request_size=4 [10:43:55]MH_SAM_APDU [10:43:55]CAPDU: 80 0D 01 02 [10:43:55]Write to MH i2c: E2 08 00 7A 0A 80 0D 01 02 00 00 00 00 FD [10:43:55]Write i2c OK [10:43:55]MH_I2C_Read... [10:43:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:55]Read from MH i2c: E2 [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: E2 03 00 [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: E2 03 00 7A 0A 00 90 00 F8 [10:43:55]RAPDU: 90 00 [10:43:55]wFMCommunicate OK [10:43:55]wFMCommunicate request_size=255 [10:43:55]MH_SAM_APDU [10:43:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 00 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 85 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 00 00 00 00 00 07 04 06 00 2C 01 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 6B 56 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 74 00 00 35 04 06 00 A4 [10:43:55]Write to MH i2c: E2 02 01 7B 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 00 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 85 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 00 00 00 00 00 07 04 06 00 2C 01 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 6B 56 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 74 00 00 35 04 06 00 A4 00 00 42 [10:43:55]Write i2c OK [10:43:55]MH_I2C_Read... [10:43:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:55]Read from MH i2c: E2 [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: E2 03 00 [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: E2 03 00 7B 0A 00 90 00 F9 [10:43:55]RAPDU: 90 00 [10:43:55]wFMCommunicate OK [10:43:55]wFMCommunicate request_size=10 [10:43:55]MH_SAM_APDU [10:43:55]CAPDU: 80 0D 02 02 05 46 27 27 C3 02 [10:43:55]Write to MH i2c: E2 0D 00 7C 0A 80 0D 02 02 05 00 46 27 27 C3 02 00 00 63 [10:43:55]Write i2c OK [10:43:55]MH_I2C_Read... [10:43:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:55]Read from MH i2c: E2 [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: E2 03 00 [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: E2 03 00 7C 0A 00 90 00 FA [10:43:55]RAPDU: 90 00 [10:43:55]wFMCommunicate OK [10:43:55]wFMCommunicate request_size=4 [10:43:55]MH_SAM_APDU [10:43:55]CAPDU: 80 0D 03 02 [10:43:55]Write to MH i2c: E2 08 00 7D 0A 80 0D 03 02 00 00 00 00 02 [10:43:55]Write i2c OK [10:43:55]MH_I2C_Read... [10:43:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:55]Read from MH i2c: E2 [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: E2 0B 00 [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: E2 0B 00 7D 0A 00 49 26 7A 24 B5 D3 F6 4D 90 00 DB [10:43:55]RAPDU: 49 26 7A 24 B5 D3 F6 4D 90 00 [10:43:55]wFMCommunicate OK [10:43:55]SAM_PROTO_SignData done [10:43:55]FM_MakeSignedData done [10:43:55]CreateOFDProtocolMessage [10:43:55]wFMCommunicate request_size=4 [10:43:55]MH_SAM_APDU [10:43:55]CAPDU: 80 11 00 00 [10:43:55]Write to MH i2c: E2 08 00 7E 0A 80 11 00 00 00 00 00 00 02 [10:43:55]Write i2c OK [10:43:55]MH_I2C_Read... [10:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:55]Read from MH i2c: E2 [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: E2 17 00 [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: E2 17 00 7E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 51 [10:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:43:55]wFMCommunicate OK [10:43:55]CreateOFDProtocolMessage done [10:43:55]OFDSenderStorePacket 29788 [10:43:55]StoreOFDPacket docnum=29788 [10:43:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 53 7B 07 01 5A 29 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 3C 00 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 85 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 00 00 00 00 00 07 04 06 00 2C 01 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 6B 56 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 74 00 00 35 04 06 00 A4 46 27 27 C3 02 49 26 7A 24 B5 D3 F6 4D [10:43:55]CheckFolder [10:43:55]dirname=/storage/ofd_packets [10:43:55]CheckFolder done [10:43:55]ProducePacketName [10:43:55]name=ofd_packets/00029788 [10:43:55]NVStorageSaveData ofd_packets/00029788 [10:43:55]File name is /storage/ofd_packets/00029788 [10:43:55]Write 301 bytes [10:43:55]NVStorageSaveData done [10:43:55]OFDSenderStorePacket done [10:43:55]KKMCreateOFDPacket done [10:43:55]NVStorageSaveData kkm_last_timestamp [10:43:55]File name is /storage/kkm_last_timestamp [10:43:55]Write 4 bytes [10:43:55]NVStorageSaveData done [10:43:55]ExternCall_PrintAddStr [10:43:55]wPrintStart [10:43:55]Write to MH i2c: 01 00 00 7F 0A 89 [10:43:55]Write i2c OK [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: 01 [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: 01 07 00 [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: 01 07 00 7F 0A 00 00 00 00 00 FF 0F 9E [10:43:55]RasterBufferAndPrint [10:43:55]line Счет N : (1)348276 [10:43:55]line ИНН: 02508201610067 [10:43:55]line Контрольно-Кассовый Чек [10:43:55]line ПРОДАЖА [10:43:55]line ТРК (МРК, ГНК) : 23 [10:43:55]line Товар: 2710124130 [10:43:55]line Аи-92-К-5 [10:43:55]line 0.060 * 64.80 [10:43:55]line = 3.89 [10:43:55]line НДС 12% НСП 1% [10:43:55]line > о реализуемом товаре [10:43:55]line ОКРУГЛЕНИЕ: -0.89 [10:43:55]line ИТОГО: 3.00 [10:43:55]line Внесено: 300.00 [10:43:55]line СДАЧА: 297.00 [10:43:55]line НСП 1% : 0.03 [10:43:55]line НДС 12% : 0.41 [10:43:55]line Наличными: 3.00 [10:43:55]line Безнал.: 0.00 [10:43:55]line Место: АЗС № 108 "Партнер Нефть" [10:43:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:43:55]line СНО: Общий режим [10:43:55]line Чек 62 16.04.2024 10:43 [10:43:55]line Смена: 118 ФФД: 1.0 [10:43:55]line ЗНМ: 0300000027 [10:43:55]line РНМ: 0000138879044617 [10:43:55]line Версия ККМ: 001 [10:43:55]line ФМ: 0000000000963154 [10:43:55]line ФД: 29788 [10:43:55]line ФПД: 180621211583234 [10:43:55]line 1/tax-web-control/client/api/v1/ticket?date=20240416T104355&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29788&fm=180621211583234&tin=02508201610067®Number=0000138879044617&sum=300 [10:43:56]OFD Sender: Processing packet 29788 [packets to send 8, broken 7] [10:43:56]ProducePacketName [10:43:56]name=ofd_packets/00029788 [10:43:56]OFD Sender: To server: pG, [10:43:56]CommunicateWithHost lk.salyk.kg:30040 [10:43:56]ConnectInit lk.salyk.kg [10:43:56]written 0, free lines is 4095 [10:43:56]Connected sock=10 [10:43:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 53 7B 07 01 5A 29 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 3C 00 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 85 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 00 00 00 00 00 07 04 06 00 2C 01 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 6B 56 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 74 00 00 35 04 06 00 A4 46 27 27 C3 02 49 26 7A 24 B5 D3 F6 4D [10:43:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CB 61 47 00 33 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 74 00 00 F4 03 04 00 09 01 1E 66 B6 04 01 00 00 7B 08 01 78 16 87 11 BC [10:43:56]CommunicateWithHost err = 0 [10:43:56]CheckOFDResponse [10:43:56]1017 (14) - 77093643461234 [10:43:56]1041 (16) - 0000000000963154 [10:43:56]1040 (4) - 29788 [10:43:56]1012 (4) - 16.04.2024 04:39 [10:43:56]1206 (1) - 0 [10:43:56]OFD Sender: Remove packet 29788 [10:43:56]ProducePacketName [10:43:56]name=ofd_packets/00029788 [10:43:56]NVStorageDeleteData [10:43:56]Write to MH i2c: 01 00 00 A9 0A B3 [10:43:56]Write i2c OK [10:43:56]MH_I2C_Read... [10:43:56]Read from MH i2c: 01 [10:43:56]MH_I2C_Read... [10:43:56]Read from MH i2c: 01 07 00 [10:43:56]MH_I2C_Read... [10:43:56]Read from MH i2c: 01 07 00 A9 0A 00 00 00 00 00 CC 0C 92 [10:43:56]RasterBufferAndPrint [10:43:56]line [10:43:56]line [10:43:56]line [10:43:56]line [10:43:56]line [10:43:56]written 0, free lines is 3282 [10:43:56]MH_Cut [10:43:56]Write to MH i2c: D1 01 00 B0 0A 01 8C [10:43:56]Write i2c OK [10:43:56]MH_I2C_Read... [10:43:56]Read from MH i2c: D1 [10:43:56]MH_I2C_Read... [10:43:56]Read from MH i2c: D1 01 00 [10:43:56]MH_I2C_Read... [10:43:56]Read from MH i2c: D1 01 00 B0 0A 00 8B [10:43:56]Write to MH i2c: 01 00 00 B1 0A BB [10:43:56]Write i2c OK [10:43:56]MH_I2C_Read... [10:43:57]OFD Sender: No OFD packet to send [10:43:57]*** Cut start [10:43:57]*** Partial cut [10:43:57]*** CUTSNS_PIN = 1 [10:43:57]*** CUTSNS_PIN = 0 [10:43:57]*** Brake cut motor [10:43:58]Read from MH i2c: 01 [10:43:58]MH_I2C_Read... [10:43:58]*** Stop cut motor [10:43:58]*** Cut end [10:43:58]Read from MH i2c: 01 07 00 [10:43:58]MH_I2C_Read... [10:43:58]Read from MH i2c: 01 07 00 B1 0A 00 00 00 00 00 FF 0F D0 [10:43:58]process_action close_receipt done [10:43:58]requested_data is exist [10:43:58]produce_requested_data [10:43:58]requested_item fm.sn is exist - process it [10:43:58]wFMCommunicate request_size=4 [10:43:58]MH_SAM_APDU [10:43:58]CAPDU: 80 11 00 00 [10:43:58]Write to MH i2c: E2 08 00 B2 0A 80 11 00 00 00 00 00 00 36 [10:43:58]Write i2c OK [10:43:58]MH_I2C_Read... [10:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:58]Read from MH i2c: E2 [10:43:58]MH_I2C_Read... [10:43:58]Read from MH i2c: E2 17 00 [10:43:58]MH_I2C_Read... [10:43:58]Read from MH i2c: E2 17 00 B2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 85 [10:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:43:58]wFMCommunicate OK [10:43:58]requested_item fd.num is exist - process it [10:43:58]SAM_PROTO_GetFieldsCounters [10:43:58]wFMCommunicate request_size=4 [10:43:58]MH_SAM_APDU [10:43:58]CAPDU: 80 13 00 00 [10:43:58]Write to MH i2c: E2 08 00 B3 0A 80 13 00 00 00 00 00 00 39 [10:43:58]Write i2c OK [10:43:58]MH_I2C_Read... [10:43:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:58]Read from MH i2c: E2 [10:43:58]MH_I2C_Read... [10:43:58]Read from MH i2c: E2 62 00 [10:43:58]MH_I2C_Read... [10:43:58]Read from MH i2c: E2 62 00 B3 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5C 74 00 00 0E 04 04 00 76 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 77 [10:43:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5C 74 00 00 0E 04 04 00 76 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 [10:43:58]wFMCommunicate OK [10:43:58]SAM_PROTO_GetFieldsCounters done [10:43:58]requested_item shift.num is exist - process it [10:43:58]requested_item shift.opened is exist - process it [10:43:58]req_shift_opened [10:43:58]FM_GetShiftState [10:43:58]SAM_PROTO_GetShiftState [10:43:58]wFMCommunicate request_size=4 [10:43:58]MH_SAM_APDU [10:43:58]CAPDU: 80 13 01 00 [10:43:58]Write to MH i2c: E2 08 00 B4 0A 80 13 01 00 00 00 00 00 3B [10:43:58]Write i2c OK [10:43:58]MH_I2C_Read... [10:43:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:58]Read from MH i2c: E2 [10:43:58]MH_I2C_Read... [10:43:58]Read from MH i2c: E2 0E 00 [10:43:58]MH_I2C_Read... [10:43:58]Read from MH i2c: E2 0E 00 B4 0A 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 E9 [10:43:58]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:43:58]wFMCommunicate OK [10:43:58]SAM_PROTO_GetShiftState done [10:43:58]FM_GetShiftState done [10:43:58]req_shift_opened done [10:43:58]requested_item shift.open_date is exist - process it [10:43:58]req_shift_open_date [10:43:58]req_shift_open_date done [10:43:58]produce_requested_data done [10:43:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29788,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:43:58]process_action_free close_receipt [10:43:58]json_value_free [10:43:58]json_value_free done [10:43:58]process_json_proto returns [10:43:58]Send response to host [10:43:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29788,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:43:58]free response buf [10:43:58]execute_script done [10:43:58]execute_script returns [10:43:58]free content buf [10:43:58]Sock 7.Close socket [10:43:58]Sock 7.Thread stoped [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:28]accept exits with 9 [10:44:28]New connection [10:44:28]New thread 3067133284 created [10:44:28]Thread 3067276644 joined [10:44:28]Waiting for new connection... [10:44:28] Sock 9.Parse request [10:44:28]Sock 9.Check first char [10:44:28]Sock 9.First char is OK [10:44:28]request: POST /json_proto HTTP/1.0 [10:44:28]Method: POST [10:44:28]URL: /json_proto [10:44:28]Method is POST - this is cgi request [10:44:28]url: /json_proto [10:44:28]query_string will be loaded in cgi processing [10:44:28]execute_cgi json_proto POST (null) [10:44:28]execute_cgi path=json_proto method=POST [10:44:28]POST find Content-Length [10:44:28]Host: 172.17.33.3:8080 [10:44:28]Content-Length: 677 [10:44:28]Content-Type: application/json [10:44:28] [10:44:28]POST finish read [10:44:28]Found Content-Length = 677 [10:44:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:28]execute_script... [10:44:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:28]POST & json_proto [10:44:28]process_json_proto [10:44:28]json parsed OK: [10:44:28]protocol is kg_v1.0 [10:44:28]action value=close_receipt [10:44:28]process_action close_receipt [10:44:28]cmd_close_receipt [10:44:28]MH_GetDate [10:44:28]Write to MH i2c: F0 00 00 B5 0A AE [10:44:28]Write i2c OK [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: F0 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: F0 09 00 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: F0 09 00 B5 0A 00 8D 56 1E 66 23 5B 8F 65 90 [10:44:28]GetLastDocTimeStamp 1713264235 [10:44:28]current date 1713264269 [10:44:28]FM_GetShiftState [10:44:28]SAM_PROTO_GetShiftState [10:44:28]wFMCommunicate request_size=4 [10:44:28]MH_SAM_APDU [10:44:28]CAPDU: 80 13 01 00 [10:44:28]Write to MH i2c: E2 08 00 B6 0A 80 13 01 00 00 00 00 00 3D [10:44:28]Write i2c OK [10:44:28]MH_I2C_Read... [10:44:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:28]Read from MH i2c: E2 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: E2 0E 00 [10:44:28]MH_I2C_Read... [10:44:28]Read from MH i2c: E2 0E 00 B6 0A 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 EB [10:44:28]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:44:28]wFMCommunicate OK [10:44:28]SAM_PROTO_GetShiftState done [10:44:28]FM_GetShiftState done [10:44:28]opened in 1713226843 [10:44:28]opened+sec_in_day 1713313243 [10:44:28]quantity*price = 30002 [10:44:28]sum+1 = 30003 [10:44:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 63 16.04.2024 10:44 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29789 ФПД: 261879958691141 1/tax-web-control/client/api/v1/ticket?date=20240416T104429&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29789&fm=261879958691141&tin=02508201610067®Number=0000138879044617&sum=30000 [10:44:29]StoreToDocumentArchive [10:44:29]shift 118 fd 29789 [10:44:29]save to /storage/0118/doc_00029789 [10:44:29]save last doc name /storage/0118/doc_00029789 to /storage/kkm_last_doc_name [10:44:29]save OK [10:44:29]Clear old archive folders... [10:44:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:29]tlvbuf is 0018E470 [10:44:29]SAM_PROTO_ClearQueue [10:44:29]wFMCommunicate request_size=4 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 09 00 00 [10:44:29]Write to MH i2c: E2 08 00 C3 0A 80 09 00 00 00 00 00 00 3F [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 03 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 03 00 C3 0A 00 90 00 41 [10:44:29]RAPDU: 90 00 [10:44:29]wFMCommunicate OK [10:44:29]SAM_PROTO_ClearQueue done [10:44:29]KKMCreateOFDPacket [10:44:29]OFDProtocolAddRootSTLVToBuf [10:44:29]FM_MakeSignedData [10:44:29]FM_MakeSignedData [10:44:29]SAM_PROTO_SignData [10:44:29]wFMCommunicate request_size=4 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 0D 01 02 [10:44:29]Write to MH i2c: E2 08 00 C4 0A 80 0D 01 02 00 00 00 00 47 [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 03 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 03 00 C4 0A 00 90 00 42 [10:44:29]RAPDU: 90 00 [10:44:29]wFMCommunicate OK [10:44:29]wFMCommunicate request_size=255 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 8D 56 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 74 00 00 35 04 06 00 EE [10:44:29]Write to MH i2c: E2 02 01 C5 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 8D 56 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 74 00 00 35 04 06 00 EE 00 00 53 [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 03 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 03 00 C5 0A 00 90 00 43 [10:44:29]RAPDU: 90 00 [10:44:29]wFMCommunicate OK [10:44:29]wFMCommunicate request_size=10 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 0D 02 02 05 2D AD E9 5D 45 [10:44:29]Write to MH i2c: E2 0D 00 C6 0A 80 0D 02 02 05 00 2D AD E9 5D 45 00 00 B9 [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 03 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 03 00 C6 0A 00 90 00 44 [10:44:29]RAPDU: 90 00 [10:44:29]wFMCommunicate OK [10:44:29]wFMCommunicate request_size=4 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 0D 03 02 [10:44:29]Write to MH i2c: E2 08 00 C7 0A 80 0D 03 02 00 00 00 00 4C [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 0B 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 0B 00 C7 0A 00 24 C9 B8 CD 15 D7 62 8C 90 00 99 [10:44:29]RAPDU: 24 C9 B8 CD 15 D7 62 8C 90 00 [10:44:29]wFMCommunicate OK [10:44:29]SAM_PROTO_SignData done [10:44:29]FM_MakeSignedData done [10:44:29]CreateOFDProtocolMessage [10:44:29]wFMCommunicate request_size=4 [10:44:29]MH_SAM_APDU [10:44:29]CAPDU: 80 11 00 00 [10:44:29]Write to MH i2c: E2 08 00 C8 0A 80 11 00 00 00 00 00 00 4C [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:29]Read from MH i2c: E2 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 17 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: E2 17 00 C8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9B [10:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:44:29]wFMCommunicate OK [10:44:29]CreateOFDProtocolMessage done [10:44:29]OFDSenderStorePacket 29789 [10:44:29]StoreOFDPacket docnum=29789 [10:44:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 80 3E 07 01 80 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 8D 56 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 74 00 00 35 04 06 00 EE 2D AD E9 5D 45 24 C9 B8 CD 15 D7 62 8C [10:44:29]CheckFolder [10:44:29]dirname=/storage/ofd_packets [10:44:29]CheckFolder done [10:44:29]ProducePacketName [10:44:29]name=ofd_packets/00029789 [10:44:29]NVStorageSaveData ofd_packets/00029789 [10:44:29]File name is /storage/ofd_packets/00029789 [10:44:29]Write 301 bytes [10:44:29]NVStorageSaveData done [10:44:29]OFDSenderStorePacket done [10:44:29]KKMCreateOFDPacket done [10:44:29]NVStorageSaveData kkm_last_timestamp [10:44:29]File name is /storage/kkm_last_timestamp [10:44:29]Write 4 bytes [10:44:29]NVStorageSaveData done [10:44:29]ExternCall_PrintAddStr [10:44:29]wPrintStart [10:44:29]Write to MH i2c: 01 00 00 C9 0A D3 [10:44:29]Write i2c OK [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: 01 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: 01 07 00 [10:44:29]MH_I2C_Read... [10:44:29]Read from MH i2c: 01 07 00 C9 0A 00 00 00 00 00 FF 0F E8 [10:44:29]RasterBufferAndPrint [10:44:29]line Счет N : (1)348278 [10:44:29]line ИНН: 02508201610067 [10:44:29]line Контрольно-Кассовый Чек [10:44:29]line ПРОДАЖА [10:44:29]line ТРК (МРК, ГНК) : 42 [10:44:29]line Товар: 2710124130 [10:44:29]line Аи-92-К-5 [10:44:29]line 4.630 * 64.80 [10:44:29]line = 300.02 [10:44:29]line НДС 12% НСП 1% [10:44:29]line > о реализуемом товаре [10:44:29]line ОКРУГЛЕНИЕ: -0.02 [10:44:29]line ИТОГО: 300.00 [10:44:29]line Внесено: 300.00 [10:44:29]line СДАЧА: 0.00 [10:44:29]line НСП 1% : 2.65 [10:44:29]line НДС 12% : 31.86 [10:44:29]line Наличными: 300.00 [10:44:29]line Безнал.: 0.00 [10:44:29]line Место: АЗС № 108 "Партнер Нефть" [10:44:29]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:44:29]line СНО: Общий режим [10:44:29]line Чек 63 16.04.2024 10:44 [10:44:29]line Смена: 118 ФФД: 1.0 [10:44:29]line ЗНМ: 0300000027 [10:44:29]line РНМ: 0000138879044617 [10:44:29]line Версия ККМ: 001 [10:44:29]line ФМ: 0000000000963154 [10:44:29]line ФД: 29789 [10:44:29]line ФПД: 261879958691141 [10:44:29]line 1/tax-web-control/client/api/v1/ticket?date=20240416T104429&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29789&fm=261879958691141&tin=02508201610067®Number=0000138879044617&sum=30000 [10:44:30]OFD Sender: Processing packet 29789 [packets to send 8, broken 7] [10:44:30]ProducePacketName [10:44:30]name=ofd_packets/00029789 [10:44:30]OFD Sender: To server: pG, [10:44:30]CommunicateWithHost lk.salyk.kg:30040 [10:44:30]ConnectInit lk.salyk.kg [10:44:30]written 0, free lines is 4095 [10:44:30]Connected sock=10 [10:44:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 80 3E 07 01 80 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 8D 56 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 74 00 00 35 04 06 00 EE 2D AD E9 5D 45 24 C9 B8 CD 15 D7 62 8C [10:44:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8C 0B 47 00 61 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 5D 74 00 00 F4 03 04 00 2B 01 1E 66 B6 04 01 00 00 AF 9E 0F BE 08 76 E5 D1 [10:44:30]CommunicateWithHost err = 0 [10:44:30]CheckOFDResponse [10:44:30]1017 (14) - 77093643461234 [10:44:30]1041 (16) - 0000000000963154 [10:44:30]1040 (4) - 29789 [10:44:30]1012 (4) - 16.04.2024 04:40 [10:44:30]1206 (1) - 0 [10:44:30]OFD Sender: Remove packet 29789 [10:44:30]ProducePacketName [10:44:30]name=ofd_packets/00029789 [10:44:30]NVStorageDeleteData [10:44:30]Write to MH i2c: 01 00 00 F3 0A FD [10:44:30]Write i2c OK [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: 01 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: 01 07 00 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: 01 07 00 F3 0A 00 00 00 00 00 CA 0C DA [10:44:30]RasterBufferAndPrint [10:44:30]line [10:44:30]line [10:44:30]line [10:44:30]line [10:44:30]line [10:44:30]written 0, free lines is 3280 [10:44:30]MH_Cut [10:44:30]Write to MH i2c: D1 01 00 FA 0A 01 D6 [10:44:30]Write i2c OK [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: D1 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: D1 01 00 [10:44:30]MH_I2C_Read... [10:44:30]Read from MH i2c: D1 01 00 FA 0A 00 D5 [10:44:30]Write to MH i2c: 01 00 00 FB 0A 05 [10:44:30]Write i2c OK [10:44:30]MH_I2C_Read... [10:44:31]OFD Sender: No OFD packet to send [10:44:31]*** Cut start [10:44:31]*** Partial cut [10:44:31]*** CUTSNS_PIN = 1 [10:44:31]*** CUTSNS_PIN = 0 [10:44:31]*** Brake cut motor [10:44:32]Read from MH i2c: 01 [10:44:32]MH_I2C_Read... [10:44:32]*** Stop cut motor [10:44:32]*** Cut end [10:44:32]Read from MH i2c: 01 07 00 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: 01 07 00 FB 0A 00 00 00 00 00 FF 0F 1A [10:44:32]process_action close_receipt done [10:44:32]requested_data is exist [10:44:32]produce_requested_data [10:44:32]requested_item fm.sn is exist - process it [10:44:32]wFMCommunicate request_size=4 [10:44:32]MH_SAM_APDU [10:44:32]CAPDU: 80 11 00 00 [10:44:32]Write to MH i2c: E2 08 00 FC 0A 80 11 00 00 00 00 00 00 80 [10:44:32]Write i2c OK [10:44:32]MH_I2C_Read... [10:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:32]Read from MH i2c: E2 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 17 00 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 17 00 FC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CF [10:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:44:32]wFMCommunicate OK [10:44:32]requested_item fd.num is exist - process it [10:44:32]SAM_PROTO_GetFieldsCounters [10:44:32]wFMCommunicate request_size=4 [10:44:32]MH_SAM_APDU [10:44:32]CAPDU: 80 13 00 00 [10:44:32]Write to MH i2c: E2 08 00 FD 0A 80 13 00 00 00 00 00 00 83 [10:44:32]Write i2c OK [10:44:32]MH_I2C_Read... [10:44:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:32]Read from MH i2c: E2 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 62 00 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 62 00 FD 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5D 74 00 00 0E 04 04 00 76 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 C5 [10:44:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5D 74 00 00 0E 04 04 00 76 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 [10:44:32]wFMCommunicate OK [10:44:32]SAM_PROTO_GetFieldsCounters done [10:44:32]requested_item shift.num is exist - process it [10:44:32]requested_item shift.opened is exist - process it [10:44:32]req_shift_opened [10:44:32]FM_GetShiftState [10:44:32]SAM_PROTO_GetShiftState [10:44:32]wFMCommunicate request_size=4 [10:44:32]MH_SAM_APDU [10:44:32]CAPDU: 80 13 01 00 [10:44:32]Write to MH i2c: E2 08 00 FE 0A 80 13 01 00 00 00 00 00 85 [10:44:32]Write i2c OK [10:44:32]MH_I2C_Read... [10:44:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:32]Read from MH i2c: E2 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 0E 00 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 0E 00 FE 0A 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 33 [10:44:32]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:44:32]wFMCommunicate OK [10:44:32]SAM_PROTO_GetShiftState done [10:44:32]FM_GetShiftState done [10:44:32]req_shift_opened done [10:44:32]requested_item shift.open_date is exist - process it [10:44:32]req_shift_open_date [10:44:32]req_shift_open_date done [10:44:32]produce_requested_data done [10:44:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29789,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:44:32]process_action_free close_receipt [10:44:32]json_value_free [10:44:32]json_value_free done [10:44:32]process_json_proto returns [10:44:32]Send response to host [10:44:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29789,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:44:32]free response buf [10:44:32]execute_script done [10:44:32]execute_script returns [10:44:32]free content buf [10:44:32]Sock 9.Close socket [10:44:32]Sock 9.Thread stoped [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:54]accept exits with 7 [10:44:54]New connection [10:44:54]New thread 3067276644 created [10:44:54]Thread 3067133284 joined [10:44:54]Waiting for new connection... [10:44:54] Sock 7.Parse request [10:44:54]Sock 7.Check first char [10:44:54]Sock 7.First char is OK [10:44:54]request: POST /json_proto HTTP/1.0 [10:44:54]Method: POST [10:44:54]URL: /json_proto [10:44:54]Method is POST - this is cgi request [10:44:54]url: /json_proto [10:44:54]query_string will be loaded in cgi processing [10:44:54]execute_cgi json_proto POST (null) [10:44:54]execute_cgi path=json_proto method=POST [10:44:54]POST find Content-Length [10:44:54]Host: 172.17.33.3:8080 [10:44:54]Content-Length: 840 [10:44:54]Content-Type: application/json [10:44:54] [10:44:54]POST finish read [10:44:54]Found Content-Length = 840 [10:44:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:54]execute_script... [10:44:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:54]POST & json_proto [10:44:54]process_json_proto [10:44:54]json parsed OK: [10:44:54]protocol is kg_v1.0 [10:44:54]action value=close_receipt [10:44:54]process_action close_receipt [10:44:54]cmd_close_receipt [10:44:54]MH_GetDate [10:44:54]Write to MH i2c: F0 00 00 FF 0A F8 [10:44:54]Write i2c OK [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: F0 [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: F0 09 00 [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: F0 09 00 FF 0A 00 A7 56 1E 66 23 5B 8F 65 F4 [10:44:54]GetLastDocTimeStamp 1713264269 [10:44:54]current date 1713264295 [10:44:54]FM_GetShiftState [10:44:54]SAM_PROTO_GetShiftState [10:44:54]wFMCommunicate request_size=4 [10:44:54]MH_SAM_APDU [10:44:54]CAPDU: 80 13 01 00 [10:44:54]Write to MH i2c: E2 08 00 00 0B 80 13 01 00 00 00 00 00 88 [10:44:54]Write i2c OK [10:44:54]MH_I2C_Read... [10:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:54]Read from MH i2c: E2 [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: E2 0E 00 [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: E2 0E 00 00 0B 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 36 [10:44:54]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:44:54]wFMCommunicate OK [10:44:54]SAM_PROTO_GetShiftState done [10:44:54]FM_GetShiftState done [10:44:54]opened in 1713226843 [10:44:54]opened+sec_in_day 1713313243 [10:44:54]quantity*price = 30002 [10:44:54]sum+1 = 30003 [10:44:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.02 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.02 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 64 16.04.2024 10:44 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29790 ФПД: 24711459941742 1/tax-web-control/client/api/v1/ticket?date=20240416T104455&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29790&fm=24711459941742&tin=02508201610067®Number=0000138879044617&sum=30002 [10:44:55]StoreToDocumentArchive [10:44:55]shift 118 fd 29790 [10:44:55]save to /storage/0118/doc_00029790 [10:44:55]save last doc name /storage/0118/doc_00029790 to /storage/kkm_last_doc_name [10:44:55]save OK [10:44:55]Clear old archive folders... [10:44:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:55]tlvbuf is 0018E180 [10:44:55]SAM_PROTO_ClearQueue [10:44:55]wFMCommunicate request_size=4 [10:44:55]MH_SAM_APDU [10:44:55]CAPDU: 80 09 00 00 [10:44:55]Write to MH i2c: E2 08 00 0D 0B 80 09 00 00 00 00 00 00 8A [10:44:55]Write i2c OK [10:44:55]MH_I2C_Read... [10:44:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:55]Read from MH i2c: E2 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 03 00 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 03 00 0D 0B 00 90 00 8C [10:44:55]RAPDU: 90 00 [10:44:55]wFMCommunicate OK [10:44:55]SAM_PROTO_ClearQueue done [10:44:55]KKMCreateOFDPacket [10:44:55]OFDProtocolAddRootSTLVToBuf [10:44:55]FM_MakeSignedData [10:44:55]FM_MakeSignedData [10:44:55]SAM_PROTO_SignData [10:44:55]wFMCommunicate request_size=4 [10:44:55]MH_SAM_APDU [10:44:55]CAPDU: 80 0D 01 02 [10:44:55]Write to MH i2c: E2 08 00 0E 0B 80 0D 01 02 00 00 00 00 92 [10:44:55]Write i2c OK [10:44:55]MH_I2C_Read... [10:44:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:55]Read from MH i2c: E2 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 03 00 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 03 00 0E 0B 00 90 00 8D [10:44:55]RAPDU: 90 00 [10:44:55]wFMCommunicate OK [10:44:55]wFMCommunicate request_size=255 [10:44:55]MH_SAM_APDU [10:44:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A7 56 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 74 00 00 35 04 06 00 16 [10:44:55]Write to MH i2c: E2 02 01 0F 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A7 56 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 74 00 00 35 04 06 00 16 00 00 E6 [10:44:55]Write i2c OK [10:44:55]MH_I2C_Read... [10:44:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:55]Read from MH i2c: E2 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 03 00 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 03 00 0F 0B 00 90 00 8E [10:44:55]RAPDU: 90 00 [10:44:55]wFMCommunicate OK [10:44:55]wFMCommunicate request_size=10 [10:44:55]MH_SAM_APDU [10:44:55]CAPDU: 80 0D 02 02 05 79 95 CA AD 6E [10:44:55]Write to MH i2c: E2 0D 00 10 0B 80 0D 02 02 05 00 79 95 CA AD 6E 00 00 92 [10:44:55]Write i2c OK [10:44:55]MH_I2C_Read... [10:44:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:55]Read from MH i2c: E2 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 03 00 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 03 00 10 0B 00 90 00 8F [10:44:55]RAPDU: 90 00 [10:44:55]wFMCommunicate OK [10:44:55]wFMCommunicate request_size=4 [10:44:55]MH_SAM_APDU [10:44:55]CAPDU: 80 0D 03 02 [10:44:55]Write to MH i2c: E2 08 00 11 0B 80 0D 03 02 00 00 00 00 97 [10:44:55]Write i2c OK [10:44:55]MH_I2C_Read... [10:44:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:55]Read from MH i2c: E2 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 0B 00 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 0B 00 11 0B 00 E5 93 FE C3 BC C7 11 E0 90 00 45 [10:44:55]RAPDU: E5 93 FE C3 BC C7 11 E0 90 00 [10:44:55]wFMCommunicate OK [10:44:55]SAM_PROTO_SignData done [10:44:55]FM_MakeSignedData done [10:44:55]CreateOFDProtocolMessage [10:44:55]wFMCommunicate request_size=4 [10:44:55]MH_SAM_APDU [10:44:55]CAPDU: 80 11 00 00 [10:44:55]Write to MH i2c: E2 08 00 12 0B 80 11 00 00 00 00 00 00 97 [10:44:55]Write i2c OK [10:44:55]MH_I2C_Read... [10:44:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:55]Read from MH i2c: E2 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 17 00 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 17 00 12 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E6 [10:44:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:44:55]wFMCommunicate OK [10:44:55]CreateOFDProtocolMessage done [10:44:55]OFDSenderStorePacket 29790 [10:44:55]StoreOFDPacket docnum=29790 [10:44:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4A 3B 07 01 F6 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A7 56 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 74 00 00 35 04 06 00 16 79 95 CA AD 6E E5 93 FE C3 BC C7 11 E0 [10:44:55]CheckFolder [10:44:55]dirname=/storage/ofd_packets [10:44:55]CheckFolder done [10:44:55]ProducePacketName [10:44:55]name=ofd_packets/00029790 [10:44:55]NVStorageSaveData ofd_packets/00029790 [10:44:55]File name is /storage/ofd_packets/00029790 [10:44:55]Write 301 bytes [10:44:55]NVStorageSaveData done [10:44:55]OFDSenderStorePacket done [10:44:55]KKMCreateOFDPacket done [10:44:55]NVStorageSaveData kkm_last_timestamp [10:44:55]File name is /storage/kkm_last_timestamp [10:44:55]Write 4 bytes [10:44:55]NVStorageSaveData done [10:44:55]ExternCall_PrintAddStr [10:44:55]wPrintStart [10:44:55]Write to MH i2c: 01 00 00 13 0B 1E [10:44:55]Write i2c OK [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: 01 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: 01 07 00 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: 01 07 00 13 0B 00 00 00 00 00 FF 0F 33 [10:44:55]RasterBufferAndPrint [10:44:55]line Счет N : (1)348280 [10:44:55]line ИНН: 02508201610067 [10:44:55]line Контрольно-Кассовый Чек [10:44:55]line ПРОДАЖА [10:44:55]line ТРК (МРК, ГНК) : 32 [10:44:55]line Товар: 2710124130 [10:44:55]line Аи-92-К-5 [10:44:55]line 4.630 * 64.80 [10:44:55]line = 300.02 [10:44:55]line НДС 12% НСП 1% [10:44:55]line > о реализуемом товаре [10:44:55]line ИТОГО: 300.02 [10:44:55]line НСП 1% : 2.65 [10:44:55]line НДС 12% : 31.86 [10:44:55]line Наличными: 0.00 [10:44:55]line Безнал.: 300.02 [10:44:55]line Место: АЗС № 108 "Партнер Нефть" [10:44:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:44:55]line СНО: Общий режим [10:44:55]line Чек 64 16.04.2024 10:44 [10:44:55]line Смена: 118 ФФД: 1.0 [10:44:55]line ЗНМ: 0300000027 [10:44:55]line РНМ: 0000138879044617 [10:44:55]line Версия ККМ: 001 [10:44:55]line Платежная система: АКБ Кыргызстан [10:44:55]line ФМ: 0000000000963154 [10:44:55]line ФД: 29790 [10:44:55]line ФПД: 24711459941742 [10:44:56]line 1/tax-web-control/client/api/v1/ticket?date=20240416T104455&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29790&fm=24711459941742&tin=02508201610067®Number=0000138879044617&sum=30002 [10:44:56]OFD Sender: Processing packet 29790 [packets to send 8, broken 7] [10:44:56]ProducePacketName [10:44:56]name=ofd_packets/00029790 [10:44:56]OFD Sender: To server: pG, [10:44:56]CommunicateWithHost lk.salyk.kg:30040 [10:44:56]ConnectInit lk.salyk.kg [10:44:56]written 0, free lines is 4095 [10:44:56]Connected sock=10 [10:44:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4A 3B 07 01 F6 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A7 56 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 74 00 00 35 04 06 00 16 79 95 CA AD 6E E5 93 FE C3 BC C7 11 E0 [10:44:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A2 9E 47 00 E3 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 74 00 00 F4 03 04 00 45 01 1E 66 B6 04 01 00 00 9D 29 90 76 65 51 FE C7 [10:44:56]CommunicateWithHost err = 0 [10:44:56]CheckOFDResponse [10:44:56]1017 (14) - 77093643461234 [10:44:56]1041 (16) - 0000000000963154 [10:44:56]1040 (4) - 29790 [10:44:56]1012 (4) - 16.04.2024 04:40 [10:44:56]1206 (1) - 0 [10:44:56]OFD Sender: Remove packet 29790 [10:44:56]ProducePacketName [10:44:56]name=ofd_packets/00029790 [10:44:56]NVStorageDeleteData [10:44:56]Write to MH i2c: 01 00 00 3C 0B 47 [10:44:56]Write i2c OK [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: 01 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: 01 07 00 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: 01 07 00 3C 0B 00 00 00 00 00 FA 0C 54 [10:44:56]RasterBufferAndPrint [10:44:56]line [10:44:56]line [10:44:56]line [10:44:56]line [10:44:56]line [10:44:56]written 0, free lines is 3329 [10:44:56]MH_Cut [10:44:56]Write to MH i2c: D1 01 00 43 0B 01 20 [10:44:56]Write i2c OK [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: D1 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: D1 01 00 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: D1 01 00 43 0B 00 1F [10:44:56]Write to MH i2c: 01 00 00 44 0B 4F [10:44:56]Write i2c OK [10:44:56]MH_I2C_Read... [10:44:57]OFD Sender: No OFD packet to send [10:44:57]*** Cut start [10:44:57]*** Partial cut [10:44:57]*** CUTSNS_PIN = 1 [10:44:57]*** CUTSNS_PIN = 0 [10:44:57]*** Brake cut motor [10:44:58]Read from MH i2c: 01 [10:44:58]MH_I2C_Read... [10:44:58]*** Stop cut motor [10:44:58]*** Cut end [10:44:58]Read from MH i2c: 01 07 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: 01 07 00 44 0B 00 00 00 00 00 FF 0F 64 [10:44:58]process_action close_receipt done [10:44:58]requested_data is exist [10:44:58]produce_requested_data [10:44:58]requested_item fm.sn is exist - process it [10:44:58]wFMCommunicate request_size=4 [10:44:58]MH_SAM_APDU [10:44:58]CAPDU: 80 11 00 00 [10:44:58]Write to MH i2c: E2 08 00 45 0B 80 11 00 00 00 00 00 00 CA [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:58]Read from MH i2c: E2 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 17 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 17 00 45 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 19 [10:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:44:58]wFMCommunicate OK [10:44:58]requested_item fd.num is exist - process it [10:44:58]SAM_PROTO_GetFieldsCounters [10:44:58]wFMCommunicate request_size=4 [10:44:58]MH_SAM_APDU [10:44:58]CAPDU: 80 13 00 00 [10:44:58]Write to MH i2c: E2 08 00 46 0B 80 13 00 00 00 00 00 00 CD [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:58]Read from MH i2c: E2 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 62 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 62 00 46 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5E 74 00 00 0E 04 04 00 76 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 13 [10:44:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5E 74 00 00 0E 04 04 00 76 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 [10:44:58]wFMCommunicate OK [10:44:58]SAM_PROTO_GetFieldsCounters done [10:44:58]requested_item shift.num is exist - process it [10:44:58]requested_item shift.opened is exist - process it [10:44:58]req_shift_opened [10:44:58]FM_GetShiftState [10:44:58]SAM_PROTO_GetShiftState [10:44:58]wFMCommunicate request_size=4 [10:44:58]MH_SAM_APDU [10:44:58]CAPDU: 80 13 01 00 [10:44:58]Write to MH i2c: E2 08 00 47 0B 80 13 01 00 00 00 00 00 CF [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:58]Read from MH i2c: E2 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 0E 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 0E 00 47 0B 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 7D [10:44:58]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:44:58]wFMCommunicate OK [10:44:58]SAM_PROTO_GetShiftState done [10:44:58]FM_GetShiftState done [10:44:58]req_shift_opened done [10:44:58]requested_item shift.open_date is exist - process it [10:44:58]req_shift_open_date [10:44:58]req_shift_open_date done [10:44:58]produce_requested_data done [10:44:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29790,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:44:58]process_action_free close_receipt [10:44:58]json_value_free [10:44:58]json_value_free done [10:44:58]process_json_proto returns [10:44:58]Send response to host [10:44:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29790,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:44:58]free response buf [10:44:58]execute_script done [10:44:58]execute_script returns [10:44:58]free content buf [10:44:58]Sock 7.Close socket [10:44:58]Sock 7.Thread stoped [10:45:02]OFD Sender: No OFD packet to send [10:45:02]accept exits with 9 [10:45:02]New connection [10:45:02]New thread 3067133284 created [10:45:02]Thread 3067276644 joined [10:45:02]Waiting for new connection... [10:45:02] Sock 9.Parse request [10:45:02]Sock 9.Check first char [10:45:02]Sock 9.First char is OK [10:45:02]request: POST /json_proto HTTP/1.0 [10:45:02]Method: POST [10:45:02]URL: /json_proto [10:45:02]Method is POST - this is cgi request [10:45:02]url: /json_proto [10:45:02]query_string will be loaded in cgi processing [10:45:02]execute_cgi json_proto POST (null) [10:45:02]execute_cgi path=json_proto method=POST [10:45:02]POST find Content-Length [10:45:02]Host: 172.17.33.3:8080 [10:45:02]Content-Length: 1169 [10:45:02]Content-Type: application/json [10:45:02] [10:45:02]POST finish read [10:45:02]Found Content-Length = 1169 [10:45:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348279\u000A16.04.2024 10:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30126405\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:02]execute_script... [10:45:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348279\u000A16.04.2024 10:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30126405\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:02]POST & json_proto [10:45:02]process_json_proto [10:45:02]json parsed OK: [10:45:02]protocol is kg_v1.0 [10:45:02]action value=print_text [10:45:02]process_action print_text [10:45:02]cmd_print_text [10:45:02]ExternCall_PrintAddStr [10:45:02]wPrintStart [10:45:02]Write to MH i2c: 01 00 00 48 0B 53 [10:45:02]Write i2c OK [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: 01 [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: 01 07 00 [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: 01 07 00 48 0B 00 00 00 00 00 FF 0F 68 [10:45:02]RasterBufferAndPrint [10:45:02]line *****ТОВАРНЫЙ ЧЕК***** [10:45:02]line АЗС 108 [10:45:02]line Партнер нефть [10:45:02]line 02508201610067 [10:45:02]line Кассир : Шадыканова Ж. [10:45:02]line Счет N : (1)348279 [10:45:02]line 16.04.2024 10:26 [10:45:02]line ПРОДАЖА [10:45:02]line ТРК (МРК, ГНК): 23 [10:45:02]line Вид ГСМ : 2710124130 [10:45:02]line Аи-92-К-5 [10:45:02]line 20.000 x 64.80 [10:45:02]line ИТОГ: 1296.00 [10:45:02]line Тип оплаты: Талоны: ТК ГПНА Online [10:45:02]line 30126405 [10:45:02]line ______________________ [10:45:02]line (подпись) [10:45:02]written 0, free lines is 4095 [10:45:02]Write to MH i2c: 01 00 00 5D 0B 68 [10:45:02]Write i2c OK [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: 01 [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: 01 07 00 [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: 01 07 00 5D 0B 00 00 00 00 00 F7 0D 73 [10:45:02]RasterBufferAndPrint [10:45:02]line [10:45:02]line [10:45:02]line [10:45:02]line [10:45:02]line [10:45:02]written 0, free lines is 3577 [10:45:02]MH_Cut [10:45:02]Write to MH i2c: D1 01 00 64 0B 01 41 [10:45:02]Write i2c OK [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: D1 [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: D1 01 00 [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: D1 01 00 64 0B 00 40 [10:45:02]Write to MH i2c: 01 00 00 65 0B 70 [10:45:02]Write i2c OK [10:45:02]MH_I2C_Read... [10:45:03]*** Cut start [10:45:03]*** Partial cut [10:45:03]*** CUTSNS_PIN = 1 [10:45:03]*** CUTSNS_PIN = 0 [10:45:03]*** Brake cut motor [10:45:03]Read from MH i2c: 01 [10:45:03]MH_I2C_Read... [10:45:03]*** Stop cut motor [10:45:03]*** Cut end [10:45:03]Read from MH i2c: 01 07 00 [10:45:03]MH_I2C_Read... [10:45:03]Read from MH i2c: 01 07 00 65 0B 00 00 00 00 00 FF 0F 85 [10:45:03]process_action print_text done [10:45:03]requested_data is exist [10:45:03]produce_requested_data [10:45:03]requested_item fm.sn is exist - process it [10:45:03]wFMCommunicate request_size=4 [10:45:03]MH_SAM_APDU [10:45:03]CAPDU: 80 11 00 00 [10:45:03]Write to MH i2c: E2 08 00 66 0B 80 11 00 00 00 00 00 00 EB [10:45:03]Write i2c OK [10:45:03]MH_I2C_Read... [10:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:03]Read from MH i2c: E2 [10:45:03]MH_I2C_Read... [10:45:03]Read from MH i2c: E2 17 00 [10:45:03]MH_I2C_Read... [10:45:03]Read from MH i2c: E2 17 00 66 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3A [10:45:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:45:03]wFMCommunicate OK [10:45:03]requested_item fd.num is exist - process it [10:45:03]SAM_PROTO_GetFieldsCounters [10:45:03]wFMCommunicate request_size=4 [10:45:03]MH_SAM_APDU [10:45:03]CAPDU: 80 13 00 00 [10:45:03]Write to MH i2c: E2 08 00 67 0B 80 13 00 00 00 00 00 00 EE [10:45:03]Write i2c OK [10:45:03]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 [10:45:04]MH_I2C_Read... [10:45:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:04]Read from MH i2c: E2 62 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 62 00 67 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5E 74 00 00 0E 04 04 00 76 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 34 [10:45:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5E 74 00 00 0E 04 04 00 76 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 [10:45:04]wFMCommunicate OK [10:45:04]SAM_PROTO_GetFieldsCounters done [10:45:04]requested_item shift.num is exist - process it [10:45:04]requested_item shift.opened is exist - process it [10:45:04]req_shift_opened [10:45:04]FM_GetShiftState [10:45:04]SAM_PROTO_GetShiftState [10:45:04]wFMCommunicate request_size=4 [10:45:04]MH_SAM_APDU [10:45:04]CAPDU: 80 13 01 00 [10:45:04]Write to MH i2c: E2 08 00 68 0B 80 13 01 00 00 00 00 00 F0 [10:45:04]Write i2c OK [10:45:04]MH_I2C_Read... [10:45:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:04]Read from MH i2c: E2 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 0E 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 0E 00 68 0B 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 9E [10:45:04]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:45:04]wFMCommunicate OK [10:45:04]SAM_PROTO_GetShiftState done [10:45:04]FM_GetShiftState done [10:45:04]req_shift_opened done [10:45:04]requested_item shift.open_date is exist - process it [10:45:04]req_shift_open_date [10:45:04]req_shift_open_date done [10:45:04]produce_requested_data done [10:45:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29790,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:45:04]process_action_free print_text [10:45:04]json_value_free [10:45:04]json_value_free done [10:45:04]process_json_proto returns [10:45:04]Send response to host [10:45:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29790,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:45:04]free response buf [10:45:04]execute_script done [10:45:04]execute_script returns [10:45:04]free content buf [10:45:04]Sock 9.Close socket [10:45:04]Sock 9.Thread stoped [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:39]accept exits with 7 [10:47:39]New connection [10:47:39]New thread 3067276644 created [10:47:39]Thread 3067133284 joined [10:47:39]Waiting for new connection... [10:47:39] Sock 7.Parse request [10:47:39]Sock 7.Check first char [10:47:39]Sock 7.First char is OK [10:47:39]request: POST /json_proto HTTP/1.0 [10:47:39]Method: POST [10:47:39]URL: /json_proto [10:47:39]Method is POST - this is cgi request [10:47:39]url: /json_proto [10:47:39]query_string will be loaded in cgi processing [10:47:39]execute_cgi json_proto POST (null) [10:47:39]execute_cgi path=json_proto method=POST [10:47:39]POST find Content-Length [10:47:39]Host: 172.17.33.3:8080 [10:47:39]Content-Length: 1207 [10:47:39]Content-Type: application/json [10:47:39] [10:47:39]POST finish read [10:47:39]Found Content-Length = 1207 [10:47:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348281\u000A16.04.2024 10:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1944.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65732\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:39]execute_script... [10:47:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348281\u000A16.04.2024 10:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1944.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65732\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:39]POST & json_proto [10:47:39]process_json_proto [10:47:39]json parsed OK: [10:47:39]protocol is kg_v1.0 [10:47:39]action value=print_text [10:47:39]process_action print_text [10:47:39]cmd_print_text [10:47:39]ExternCall_PrintAddStr [10:47:39]wPrintStart [10:47:39]Write to MH i2c: 01 00 00 69 0B 74 [10:47:39]Write i2c OK [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: 01 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: 01 07 00 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: 01 07 00 69 0B 00 00 00 00 00 FF 0F 89 [10:47:39]RasterBufferAndPrint [10:47:39]line *****ТОВАРНЫЙ ЧЕК***** [10:47:39]line АЗС 108 [10:47:39]line Партнер нефть [10:47:39]line 02508201610067 [10:47:39]line Кассир : Шадыканова Ж. [10:47:39]line Счет N : (1)348281 [10:47:39]line 16.04.2024 10:29 [10:47:39]line ПРОДАЖА [10:47:39]line ТРК (МРК, ГНК): 32 [10:47:39]line Вид ГСМ : 2710124130 [10:47:39]line Аи-92-К-5 [10:47:39]line 30.000 x 64.80 [10:47:39]line ИТОГ: 1944.00 [10:47:39]line Тип оплаты: Талоны: Топливная Карта [10:47:39]line 65732 [10:47:39]line ______________________ [10:47:39]line (подпись) [10:47:39]written 0, free lines is 4095 [10:47:39]Write to MH i2c: 01 00 00 7E 0B 89 [10:47:39]Write i2c OK [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: 01 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: 01 07 00 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: 01 07 00 7E 0B 00 00 00 00 00 F6 0D 93 [10:47:39]RasterBufferAndPrint [10:47:39]line [10:47:39]line [10:47:39]line [10:47:39]line [10:47:39]line [10:47:39]written 0, free lines is 3576 [10:47:39]MH_Cut [10:47:39]Write to MH i2c: D1 01 00 85 0B 01 62 [10:47:39]Write i2c OK [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: D1 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: D1 01 00 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: D1 01 00 85 0B 00 61 [10:47:39]Write to MH i2c: 01 00 00 86 0B 91 [10:47:39]Write i2c OK [10:47:39]MH_I2C_Read... [10:47:40]*** Cut start [10:47:40]*** Partial cut [10:47:40]*** CUTSNS_PIN = 1 [10:47:40]*** CUTSNS_PIN = 0 [10:47:40]*** Brake cut motor [10:47:41]Read from MH i2c: 01 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 07 00 [10:47:41]MH_I2C_Read... [10:47:41]*** Stop cut motor [10:47:41]*** Cut end [10:47:41]Read from MH i2c: 01 07 00 86 0B 00 00 00 00 00 FF 0F A6 [10:47:41]process_action print_text done [10:47:41]requested_data is exist [10:47:41]produce_requested_data [10:47:41]requested_item fm.sn is exist - process it [10:47:41]wFMCommunicate request_size=4 [10:47:41]MH_SAM_APDU [10:47:41]CAPDU: 80 11 00 00 [10:47:41]Write to MH i2c: E2 08 00 87 0B 80 11 00 00 00 00 00 00 0C [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:41]Read from MH i2c: E2 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: E2 17 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: E2 17 00 87 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5B [10:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:47:41]wFMCommunicate OK [10:47:41]requested_item fd.num is exist - process it [10:47:41]SAM_PROTO_GetFieldsCounters [10:47:41]wFMCommunicate request_size=4 [10:47:41]MH_SAM_APDU [10:47:41]CAPDU: 80 13 00 00 [10:47:41]Write to MH i2c: E2 08 00 88 0B 80 13 00 00 00 00 00 00 0F [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:41]Read from MH i2c: E2 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: E2 62 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: E2 62 00 88 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5E 74 00 00 0E 04 04 00 76 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 55 [10:47:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5E 74 00 00 0E 04 04 00 76 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 [10:47:41]wFMCommunicate OK [10:47:41]SAM_PROTO_GetFieldsCounters done [10:47:41]requested_item shift.num is exist - process it [10:47:41]requested_item shift.opened is exist - process it [10:47:41]req_shift_opened [10:47:41]FM_GetShiftState [10:47:41]SAM_PROTO_GetShiftState [10:47:41]wFMCommunicate request_size=4 [10:47:41]MH_SAM_APDU [10:47:41]CAPDU: 80 13 01 00 [10:47:41]Write to MH i2c: E2 08 00 89 0B 80 13 01 00 00 00 00 00 11 [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:41]Read from MH i2c: E2 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: E2 0E 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: E2 0E 00 89 0B 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 BF [10:47:41]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:47:41]wFMCommunicate OK [10:47:41]SAM_PROTO_GetShiftState done [10:47:41]FM_GetShiftState done [10:47:41]req_shift_opened done [10:47:41]requested_item shift.open_date is exist - process it [10:47:41]req_shift_open_date [10:47:41]req_shift_open_date done [10:47:41]produce_requested_data done [10:47:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29790,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:47:41]process_action_free print_text [10:47:41]json_value_free [10:47:41]json_value_free done [10:47:41]process_json_proto returns [10:47:41]Send response to host [10:47:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29790,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:47:41]free response buf [10:47:41]execute_script done [10:47:41]execute_script returns [10:47:41]free content buf [10:47:41]Sock 7.Close socket [10:47:41]Sock 7.Thread stoped [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:46]accept exits with 9 [10:48:46]New connection [10:48:46]New thread 3067133284 created [10:48:46]Thread 3067276644 joined [10:48:46]Waiting for new connection... [10:48:46] Sock 9.Parse request [10:48:46]Sock 9.Check first char [10:48:46]Sock 9.First char is OK [10:48:46]request: POST /json_proto HTTP/1.0 [10:48:46]Method: POST [10:48:46]URL: /json_proto [10:48:46]Method is POST - this is cgi request [10:48:46]url: /json_proto [10:48:46]query_string will be loaded in cgi processing [10:48:46]execute_cgi json_proto POST (null) [10:48:46]execute_cgi path=json_proto method=POST [10:48:46]POST find Content-Length [10:48:46]Host: 172.17.33.3:8080 [10:48:46]Content-Length: 682 [10:48:46]Content-Type: application/json [10:48:46] [10:48:46]POST finish read [10:48:46]Found Content-Length = 682 [10:48:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:46]execute_script... [10: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 : (1)348282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:46]POST & json_proto [10:48:46]process_json_proto [10:48:46]json parsed OK: [10:48:46]protocol is kg_v1.0 [10:48:46]action value=close_receipt [10:48:46]process_action close_receipt [10:48:46]cmd_close_receipt [10:48:46]MH_GetDate [10:48:46]Write to MH i2c: F0 00 00 8A 0B 84 [10:48:46]Write i2c OK [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: F0 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: F0 09 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: F0 09 00 8A 0B 00 90 57 1E 66 23 5B 8F 65 6A [10:48:46]GetLastDocTimeStamp 1713264295 [10:48:46]current date 1713264528 [10:48:46]FM_GetShiftState [10:48:46]SAM_PROTO_GetShiftState [10:48:46]wFMCommunicate request_size=4 [10:48:46]MH_SAM_APDU [10:48:46]CAPDU: 80 13 01 00 [10:48:46]Write to MH i2c: E2 08 00 8B 0B 80 13 01 00 00 00 00 00 13 [10:48:46]Write i2c OK [10:48:46]MH_I2C_Read... [10:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:46]Read from MH i2c: E2 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 0E 00 [10:48:46]MH_I2C_Read... [10:48:46]Read from MH i2c: E2 0E 00 8B 0B 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 C1 [10:48:46]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:48:46]wFMCommunicate OK [10:48:46]SAM_PROTO_GetShiftState done [10:48:46]FM_GetShiftState done [10:48:46]opened in 1713226843 [10:48:46]opened+sec_in_day 1713313243 [10:48:46]quantity*price = 100051 [10:48:46]sum+1 = 100052 [10:48:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 65 16.04.2024 10:48 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29791 ФПД: 180552557320652 1/tax-web-control/client/api/v1/ticket?date=20240416T104848&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29791&fm=180552557320652&tin=02508201610067®Number=0000138879044617&sum=100000 [10:48:48]StoreToDocumentArchive [10:48:48]shift 118 fd 29791 [10:48:48]save to /storage/0118/doc_00029791 [10:48:48]save last doc name /storage/0118/doc_00029791 to /storage/kkm_last_doc_name [10:48:48]save OK [10:48:48]Clear old archive folders... [10:48:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:48]tlvbuf is 001803D0 [10:48:48]SAM_PROTO_ClearQueue [10:48:48]wFMCommunicate request_size=4 [10:48:48]MH_SAM_APDU [10:48:48]CAPDU: 80 09 00 00 [10:48:48]Write to MH i2c: E2 08 00 98 0B 80 09 00 00 00 00 00 00 15 [10:48:48]Write i2c OK [10:48:48]MH_I2C_Read... [10:48:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:48]Read from MH i2c: E2 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 03 00 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 03 00 98 0B 00 90 00 17 [10:48:48]RAPDU: 90 00 [10:48:48]wFMCommunicate OK [10:48:48]SAM_PROTO_ClearQueue done [10:48:48]KKMCreateOFDPacket [10:48:48]OFDProtocolAddRootSTLVToBuf [10:48:48]FM_MakeSignedData [10:48:48]FM_MakeSignedData [10:48:48]SAM_PROTO_SignData [10:48:48]wFMCommunicate request_size=4 [10:48:48]MH_SAM_APDU [10:48:48]CAPDU: 80 0D 01 02 [10:48:48]Write to MH i2c: E2 08 00 99 0B 80 0D 01 02 00 00 00 00 1D [10:48:48]Write i2c OK [10:48:48]MH_I2C_Read... [10:48:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:48]Read from MH i2c: E2 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 03 00 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 03 00 99 0B 00 90 00 18 [10:48:48]RAPDU: 90 00 [10:48:48]wFMCommunicate OK [10:48:48]wFMCommunicate request_size=255 [10:48:48]MH_SAM_APDU [10:48:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 90 57 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 74 00 00 35 04 06 00 A4 [10:48:48]Write to MH i2c: E2 02 01 9A 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 90 57 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 74 00 00 35 04 06 00 A4 00 00 9C [10:48:48]Write i2c OK [10:48:48]MH_I2C_Read... [10:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:48]Read from MH i2c: E2 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 03 00 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 03 00 9A 0B 00 90 00 19 [10:48:48]RAPDU: 90 00 [10:48:48]wFMCommunicate OK [10:48:48]wFMCommunicate request_size=10 [10:48:48]MH_SAM_APDU [10:48:48]CAPDU: 80 0D 02 02 05 36 2B 0A D9 CC [10:48:48]Write to MH i2c: E2 0D 00 9B 0B 80 0D 02 02 05 00 36 2B 0A D9 CC 00 00 3A [10:48:48]Write i2c OK [10:48:48]MH_I2C_Read... [10:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:48]Read from MH i2c: E2 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 03 00 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 03 00 9B 0B 00 90 00 1A [10:48:48]RAPDU: 90 00 [10:48:48]wFMCommunicate OK [10:48:48]wFMCommunicate request_size=4 [10:48:48]MH_SAM_APDU [10:48:48]CAPDU: 80 0D 03 02 [10:48:48]Write to MH i2c: E2 08 00 9C 0B 80 0D 03 02 00 00 00 00 22 [10:48:48]Write i2c OK [10:48:48]MH_I2C_Read... [10:48:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:48]Read from MH i2c: E2 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 0B 00 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 0B 00 9C 0B 00 A2 1A A3 CF 95 EF C1 CC 90 00 62 [10:48:48]RAPDU: A2 1A A3 CF 95 EF C1 CC 90 00 [10:48:48]wFMCommunicate OK [10:48:48]SAM_PROTO_SignData done [10:48:48]FM_MakeSignedData done [10:48:48]CreateOFDProtocolMessage [10:48:48]wFMCommunicate request_size=4 [10:48:48]MH_SAM_APDU [10:48:48]CAPDU: 80 11 00 00 [10:48:48]Write to MH i2c: E2 08 00 9D 0B 80 11 00 00 00 00 00 00 22 [10:48:48]Write i2c OK [10:48:48]MH_I2C_Read... [10:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:48]Read from MH i2c: E2 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 17 00 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: E2 17 00 9D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 71 [10:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:48:48]wFMCommunicate OK [10:48:48]CreateOFDProtocolMessage done [10:48:48]OFDSenderStorePacket 29791 [10:48:48]StoreOFDPacket docnum=29791 [10:48:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2D 82 07 01 48 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 90 57 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 74 00 00 35 04 06 00 A4 36 2B 0A D9 CC A2 1A A3 CF 95 EF C1 CC [10:48:48]CheckFolder [10:48:48]dirname=/storage/ofd_packets [10:48:48]CheckFolder done [10:48:48]ProducePacketName [10:48:48]name=ofd_packets/00029791 [10:48:48]NVStorageSaveData ofd_packets/00029791 [10:48:48]File name is /storage/ofd_packets/00029791 [10:48:48]Write 301 bytes [10:48:48]NVStorageSaveData done [10:48:48]OFDSenderStorePacket done [10:48:48]KKMCreateOFDPacket done [10:48:48]NVStorageSaveData kkm_last_timestamp [10:48:48]File name is /storage/kkm_last_timestamp [10:48:48]Write 4 bytes [10:48:48]NVStorageSaveData done [10:48:48]ExternCall_PrintAddStr [10:48:48]wPrintStart [10:48:48]Write to MH i2c: 01 00 00 9E 0B A9 [10:48:48]Write i2c OK [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: 01 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: 01 07 00 [10:48:48]MH_I2C_Read... [10:48:48]Read from MH i2c: 01 07 00 9E 0B 00 00 00 00 00 FF 0F BE [10:48:48]RasterBufferAndPrint [10:48:48]line Счет N : (1)348282 [10:48:48]line ИНН: 02508201610067 [10:48:48]line Контрольно-Кассовый Чек [10:48:48]line ПРОДАЖА [10:48:48]line ТРК (МРК, ГНК) : 23 [10:48:48]line Товар: 2710124130 [10:48:48]line Аи-92-К-5 [10:48:48]line 15.440 * 64.80 [10:48:48]line = 1000.51 [10:48:48]line НДС 12% НСП 1% [10:48:48]line > о реализуемом товаре [10:48:48]line ОКРУГЛЕНИЕ: -0.51 [10:48:48]line ИТОГО: 1000.00 [10:48:48]line Внесено: 1000.00 [10:48:48]line СДАЧА: 0.00 [10:48:48]line НСП 1% : 8.85 [10:48:48]line НДС 12% : 106.25 [10:48:48]line Наличными: 1000.00 [10:48:48]line Безнал.: 0.00 [10:48:48]line Место: АЗС № 108 "Партнер Нефть" [10:48:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:48:48]line СНО: Общий режим [10:48:48]line Чек 65 16.04.2024 10:48 [10:48:48]line Смена: 118 ФФД: 1.0 [10:48:48]line ЗНМ: 0300000027 [10:48:48]line РНМ: 0000138879044617 [10:48:48]line Версия ККМ: 001 [10:48:48]line ФМ: 0000000000963154 [10:48:48]line ФД: 29791 [10:48:48]line ФПД: 180552557320652 [10:48:48]line 1/tax-web-control/client/api/v1/ticket?date=20240416T104848&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29791&fm=180552557320652&tin=02508201610067®Number=0000138879044617&sum=100000 [10:48:48]OFD Sender: Processing packet 29791 [packets to send 8, broken 7] [10:48:48]ProducePacketName [10:48:48]name=ofd_packets/00029791 [10:48:48]OFD Sender: To server: pG, [10:48:48]CommunicateWithHost lk.salyk.kg:30040 [10:48:48]ConnectInit lk.salyk.kg [10:48:48]written 0, free lines is 4095 [10:48:49]Connected sock=10 [10:48:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2D 82 07 01 48 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 90 57 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 74 00 00 35 04 06 00 A4 36 2B 0A D9 CC A2 1A A3 CF 95 EF C1 CC [10:48:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FA B8 47 00 9D EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 74 00 00 F4 03 04 00 2E 02 1E 66 B6 04 01 00 00 CB 69 E3 3E E7 7E 62 AD [10:48:49]CommunicateWithHost err = 0 [10:48:49]CheckOFDResponse [10:48:49]1017 (14) - 77093643461234 [10:48:49]1041 (16) - 0000000000963154 [10:48:49]1040 (4) - 29791 [10:48:49]1012 (4) - 16.04.2024 04:44 [10:48:49]1206 (1) - 0 [10:48:49]OFD Sender: Remove packet 29791 [10:48:49]ProducePacketName [10:48:49]name=ofd_packets/00029791 [10:48:49]NVStorageDeleteData [10:48:49]Write to MH i2c: 01 00 00 C8 0B D3 [10:48:49]Write i2c OK [10:48:49]MH_I2C_Read... [10:48:49]Read from MH i2c: 01 [10:48:49]MH_I2C_Read... [10:48:49]Read from MH i2c: 01 07 00 [10:48:49]MH_I2C_Read... [10:48:49]Read from MH i2c: 01 07 00 C8 0B 00 00 00 00 00 CE 0C B4 [10:48:49]RasterBufferAndPrint [10:48:49]line [10:48:49]line [10:48:49]line [10:48:49]line [10:48:49]line [10:48:49]written 0, free lines is 3285 [10:48:49]MH_Cut [10:48:49]Write to MH i2c: D1 01 00 CF 0B 01 AC [10:48:49]Write i2c OK [10:48:49]MH_I2C_Read... [10:48:49]Read from MH i2c: D1 [10:48:49]MH_I2C_Read... [10:48:49]Read from MH i2c: D1 01 00 [10:48:49]MH_I2C_Read... [10:48:49]Read from MH i2c: D1 01 00 CF 0B 00 AB [10:48:49]Write to MH i2c: 01 00 00 D0 0B DB [10:48:49]Write i2c OK [10:48:49]MH_I2C_Read... [10:48:49]OFD Sender: No OFD packet to send [10:48:50]*** Cut start [10:48:50]*** Partial cut [10:48:50]*** CUTSNS_PIN = 1 [10:48:50]*** CUTSNS_PIN = 0 [10:48:50]*** Brake cut motor [10:48:50]Read from MH i2c: 01 [10:48:50]MH_I2C_Read... [10:48:50]*** Stop cut motor [10:48:50]*** Cut end [10:48:50]Read from MH i2c: 01 07 00 [10:48:50]MH_I2C_Read... [10:48:50]Read from MH i2c: 01 07 00 D0 0B 00 00 00 00 00 FF 0F F0 [10:48:50]process_action close_receipt done [10:48:50]requested_data is exist [10:48:50]produce_requested_data [10:48:50]requested_item fm.sn is exist - process it [10:48:50]wFMCommunicate request_size=4 [10:48:50]MH_SAM_APDU [10:48:50]CAPDU: 80 11 00 00 [10:48:50]Write to MH i2c: E2 08 00 D1 0B 80 11 00 00 00 00 00 00 56 [10:48:50]Write i2c OK [10:48:50]MH_I2C_Read... [10:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:50]Read from MH i2c: E2 [10:48:50]MH_I2C_Read... [10:48:50]Read from MH i2c: E2 17 00 [10:48:50]MH_I2C_Read... [10:48:50]Read from MH i2c: E2 17 00 D1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A5 [10:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:48:50]wFMCommunicate OK [10:48:50]requested_item fd.num is exist - process it [10:48:50]SAM_PROTO_GetFieldsCounters [10:48:50]wFMCommunicate request_size=4 [10:48:50]MH_SAM_APDU [10:48:50]CAPDU: 80 13 00 00 [10:48:50]Write to MH i2c: E2 08 00 D2 0B 80 13 00 00 00 00 00 00 59 [10:48:50]Write i2c OK [10:48:50]MH_I2C_Read... [10:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:51]Read from MH i2c: E2 [10:48:51]MH_I2C_Read... [10:48:51]Read from MH i2c: E2 62 00 [10:48:51]MH_I2C_Read... [10:48:51]Read from MH i2c: E2 62 00 D2 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5F 74 00 00 0E 04 04 00 76 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 A3 [10:48:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5F 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:51]wFMCommunicate OK [10:48:51]SAM_PROTO_GetFieldsCounters done [10:48:51]requested_item shift.num is exist - process it [10:48:51]requested_item shift.opened is exist - process it [10:48:51]req_shift_opened [10:48:51]FM_GetShiftState [10:48:51]SAM_PROTO_GetShiftState [10:48:51]wFMCommunicate request_size=4 [10:48:51]MH_SAM_APDU [10:48:51]CAPDU: 80 13 01 00 [10:48:51]Write to MH i2c: E2 08 00 D3 0B 80 13 01 00 00 00 00 00 5B [10:48:51]Write i2c OK [10:48:51]MH_I2C_Read... [10:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:51]Read from MH i2c: E2 [10:48:51]MH_I2C_Read... [10:48:51]Read from MH i2c: E2 0E 00 [10:48:51]MH_I2C_Read... [10:48:51]Read from MH i2c: E2 0E 00 D3 0B 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 09 [10:48:51]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:48:51]wFMCommunicate OK [10:48:51]SAM_PROTO_GetShiftState done [10:48:51]FM_GetShiftState done [10:48:51]req_shift_opened done [10:48:51]requested_item shift.open_date is exist - process it [10:48:51]req_shift_open_date [10:48:51]req_shift_open_date done [10:48:51]produce_requested_data done [10:48:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29791,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:48:51]process_action_free close_receipt [10:48:51]json_value_free [10:48:51]json_value_free done [10:48:51]process_json_proto returns [10:48:51]Send response to host [10:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29791,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:48:51]free response buf [10:48:51]execute_script done [10:48:51]execute_script returns [10:48:51]free content buf [10:48:51]Sock 9.Close socket [10:48:51]Sock 9.Thread stoped [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]accept exits with 7 [10:49:59]New connection [10:49:59]New thread 3067276644 created [10:49:59]Thread 3067133284 joined [10:49:59]Waiting for new connection... [10:49:59] Sock 7.Parse request [10:49:59]Sock 7.Check first char [10:49:59]Sock 7.First char is OK [10:49:59]request: POST /json_proto HTTP/1.0 [10:49:59]Method: POST [10:49:59]URL: /json_proto [10:49:59]Method is POST - this is cgi request [10:49:59]url: /json_proto [10:49:59]query_string will be loaded in cgi processing [10:49:59]execute_cgi json_proto POST (null) [10:49:59]execute_cgi path=json_proto method=POST [10:49:59]POST find Content-Length [10:49:59]Host: 172.17.33.3:8080 [10:49:59]Content-Length: 679 [10:49:59]Content-Type: application/json [10:49:59] [10:49:59]POST finish read [10:49:59]Found Content-Length = 679 [10:49:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:59]execute_script... [10:49:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:59]POST & json_proto [10:49:59]process_json_proto [10:49:59]json parsed OK: [10:49:59]protocol is kg_v1.0 [10:49:59]action value=close_receipt [10:49:59]process_action close_receipt [10:49:59]cmd_close_receipt [10:49:59]MH_GetDate [10:49:59]Write to MH i2c: F0 00 00 D4 0B CE [10:49:59]Write i2c OK [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: F0 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: F0 09 00 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: F0 09 00 D4 0B 00 D8 57 1E 66 23 5B 8F 65 FC [10:49:59]GetLastDocTimeStamp 1713264528 [10:49:59]current date 1713264600 [10:49:59]FM_GetShiftState [10:49:59]SAM_PROTO_GetShiftState [10:49:59]wFMCommunicate request_size=4 [10:49:59]MH_SAM_APDU [10:49:59]CAPDU: 80 13 01 00 [10:49:59]Write to MH i2c: E2 08 00 D5 0B 80 13 01 00 00 00 00 00 5D [10:49:59]Write i2c OK [10:49:59]MH_I2C_Read... [10:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:59]Read from MH i2c: E2 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: E2 0E 00 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: E2 0E 00 D5 0B 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 0B [10:49:59]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:49:59]wFMCommunicate OK [10:49:59]SAM_PROTO_GetShiftState done [10:49:59]FM_GetShiftState done [10:49:59]opened in 1713226843 [10:49:59]opened+sec_in_day 1713313243 [10:49:59]quantity*price = 100018 [10:49:59]sum+1 = 100020 [10:49:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 66 16.04.2024 10:50 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29792 ФПД: 154345867643088 1/tax-web-control/client/api/v1/ticket?date=20240416T105000&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29792&fm=154345867643088&tin=02508201610067®Number=0000138879044617&sum=100000 [10:50:00]StoreToDocumentArchive [10:50:00]shift 118 fd 29792 [10:50:00]save to /storage/0118/doc_00029792 [10:50:00]save last doc name /storage/0118/doc_00029792 to /storage/kkm_last_doc_name [10:50:00]save OK [10:50:00]Clear old archive folders... [10:50:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:50:00]tlvbuf is 001802C0 [10:50:00]SAM_PROTO_ClearQueue [10:50:00]wFMCommunicate request_size=4 [10:50:00]MH_SAM_APDU [10:50:00]CAPDU: 80 09 00 00 [10:50:00]Write to MH i2c: E2 08 00 E2 0B 80 09 00 00 00 00 00 00 5F [10:50:00]Write i2c OK [10:50:00]MH_I2C_Read... [10:50:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:00]Read from MH i2c: E2 [10:50:00]MH_I2C_Read... [10:50:00]Read from MH i2c: E2 03 00 [10:50:00]MH_I2C_Read... [10:50:00]Read from MH i2c: E2 03 00 E2 0B 00 90 00 61 [10:50:00]RAPDU: 90 00 [10:50:00]wFMCommunicate OK [10:50:00]SAM_PROTO_ClearQueue done [10:50:00]KKMCreateOFDPacket [10:50:00]OFDProtocolAddRootSTLVToBuf [10:50:00]FM_MakeSignedData [10:50:00]FM_MakeSignedData [10:50:00]SAM_PROTO_SignData [10:50:00]wFMCommunicate request_size=4 [10:50:00]MH_SAM_APDU [10:50:00]CAPDU: 80 0D 01 02 [10:50:00]Write to MH i2c: E2 08 00 E3 0B 80 0D 01 02 00 00 00 00 67 [10:50:00]Write i2c OK [10:50:00]MH_I2C_Read... [10:50:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:00]Read from MH i2c: E2 [10:50:00]MH_I2C_Read... [10:50:00]Read from MH i2c: E2 03 00 [10:50:00]MH_I2C_Read... [10:50:00]Read from MH i2c: E2 03 00 E3 0B 00 90 00 62 [10:50:00]RAPDU: 90 00 [10:50:00]wFMCommunicate OK [10:50:00]wFMCommunicate request_size=255 [10:50:00]MH_SAM_APDU [10:50:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 D8 57 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 74 00 00 35 04 06 00 8C 60 72 9D [10:50:00]Write to MH i2c: E2 02 01 E4 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 D8 57 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 74 00 00 35 04 06 00 8C 60 72 9D 00 00 24 [10:50:00]Write i2c OK [10:50:00]MH_I2C_Read... [10:50:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:01]Read from MH i2c: E2 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 03 00 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 03 00 E4 0B 00 90 00 63 [10:50:01]RAPDU: 90 00 [10:50:01]wFMCommunicate OK [10:50:01]wFMCommunicate request_size=7 [10:50:01]MH_SAM_APDU [10:50:01]CAPDU: 80 0D 02 02 02 08 D0 [10:50:01]Write to MH i2c: E2 0A 00 E5 0B 80 0D 02 02 02 00 08 D0 00 00 46 [10:50:01]Write i2c OK [10:50:01]MH_I2C_Read... [10:50:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:01]Read from MH i2c: E2 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 03 00 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 03 00 E5 0B 00 90 00 64 [10:50:01]RAPDU: 90 00 [10:50:01]wFMCommunicate OK [10:50:01]wFMCommunicate request_size=4 [10:50:01]MH_SAM_APDU [10:50:01]CAPDU: 80 0D 03 02 [10:50:01]Write to MH i2c: E2 08 00 E6 0B 80 0D 03 02 00 00 00 00 6C [10:50:01]Write i2c OK [10:50:01]MH_I2C_Read... [10:50:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:01]Read from MH i2c: E2 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 0B 00 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 0B 00 E6 0B 00 8A 84 0C DE EF F7 28 85 90 00 F8 [10:50:01]RAPDU: 8A 84 0C DE EF F7 28 85 90 00 [10:50:01]wFMCommunicate OK [10:50:01]SAM_PROTO_SignData done [10:50:01]FM_MakeSignedData done [10:50:01]CreateOFDProtocolMessage [10:50:01]wFMCommunicate request_size=4 [10:50:01]MH_SAM_APDU [10:50:01]CAPDU: 80 11 00 00 [10:50:01]Write to MH i2c: E2 08 00 E7 0B 80 11 00 00 00 00 00 00 6C [10:50:01]Write i2c OK [10:50:01]MH_I2C_Read... [10:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:01]Read from MH i2c: E2 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 17 00 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 17 00 E7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BB [10:50:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:50:01]wFMCommunicate OK [10:50:01]CreateOFDProtocolMessage done [10:50:01]OFDSenderStorePacket 29792 [10:50:01]StoreOFDPacket docnum=29792 [10:50:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 2B 18 04 01 FC 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 D8 57 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 74 00 00 35 04 06 00 8C 60 72 9D 08 D0 8A 84 0C DE EF F7 28 85 [10:50:01]CheckFolder [10:50:01]dirname=/storage/ofd_packets [10:50:01]CheckFolder done [10:50:01]ProducePacketName [10:50:01]name=ofd_packets/00029792 [10:50:01]NVStorageSaveData ofd_packets/00029792 [10:50:01]File name is /storage/ofd_packets/00029792 [10:50:01]Write 298 bytes [10:50:01]NVStorageSaveData done [10:50:01]OFDSenderStorePacket done [10:50:01]KKMCreateOFDPacket done [10:50:01]NVStorageSaveData kkm_last_timestamp [10:50:01]File name is /storage/kkm_last_timestamp [10:50:01]Write 4 bytes [10:50:01]NVStorageSaveData done [10:50:01]ExternCall_PrintAddStr [10:50:01]wPrintStart [10:50:01]Write to MH i2c: 01 00 00 E8 0B F3 [10:50:01]Write i2c OK [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: 01 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: 01 07 00 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: 01 07 00 E8 0B 00 00 00 00 00 FF 0F 08 [10:50:01]RasterBufferAndPrint [10:50:01]line Счет N : (1)348283 [10:50:01]line ИНН: 02508201610067 [10:50:01]line Контрольно-Кассовый Чек [10:50:01]line ПРОДАЖА [10:50:01]line ТРК (МРК, ГНК) : 11 [10:50:01]line Товар: 2710194210 [10:50:01]line ДТ-К-5 [10:50:01]line 13.720 * 72.90 [10:50:01]line = 1000.19 [10:50:01]line НДС 12% НСП 1% [10:50:01]line > о реализуемом товаре [10:50:01]line ОКРУГЛЕНИЕ: -0.19 [10:50:01]line ИТОГО: 1000.00 [10:50:01]line Внесено: 1000.00 [10:50:01]line СДАЧА: 0.00 [10:50:01]line НСП 1% : 8.85 [10:50:01]line НДС 12% : 106.21 [10:50:01]line Наличными: 1000.00 [10:50:01]line Безнал.: 0.00 [10:50:01]line Место: АЗС № 108 "Партнер Нефть" [10:50:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:50:01]line СНО: Общий режим [10:50:01]line Чек 66 16.04.2024 10:50 [10:50:01]line Смена: 118 ФФД: 1.0 [10:50:01]line ЗНМ: 0300000027 [10:50:01]line РНМ: 0000138879044617 [10:50:01]line Версия ККМ: 001 [10:50:01]line ФМ: 0000000000963154 [10:50:01]line ФД: 29792 [10:50:01]line ФПД: 154345867643088 [10:50:01]line 1/tax-web-control/client/api/v1/ticket?date=20240416T105000&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29792&fm=154345867643088&tin=02508201610067®Number=0000138879044617&sum=100000 [10:50:01]OFD Sender: Processing packet 29792 [packets to send 8, broken 7] [10:50:01]ProducePacketName [10:50:01]name=ofd_packets/00029792 [10:50:01]OFD Sender: To server: pG, [10:50:01]CommunicateWithHost lk.salyk.kg:30040 [10:50:01]ConnectInit lk.salyk.kg [10:50:01]written 0, free lines is 4095 [10:50:01]Connected sock=10 [10:50:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 2B 18 04 01 FC 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 D8 57 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 74 00 00 35 04 06 00 8C 60 72 9D 08 D0 8A 84 0C DE EF F7 28 85 [10:50:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0D FD 47 00 7A D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 74 00 00 F4 03 04 00 77 02 1E 66 B6 04 01 00 00 0F B5 15 B3 21 2A 4F FC [10:50:01]CommunicateWithHost err = 0 [10:50:01]CheckOFDResponse [10:50:01]1017 (14) - 77093643461234 [10:50:01]1041 (16) - 0000000000963154 [10:50:01]1040 (4) - 29792 [10:50:01]1012 (4) - 16.04.2024 04:45 [10:50:01]1206 (1) - 0 [10:50:01]OFD Sender: Remove packet 29792 [10:50:01]ProducePacketName [10:50:01]name=ofd_packets/00029792 [10:50:01]NVStorageDeleteData [10:50:02]Write to MH i2c: 01 00 00 12 0C 1E [10:50:02]Write i2c OK [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: 01 [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: 01 07 00 [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: 01 07 00 12 0C 00 00 00 00 00 CD 0C FE [10:50:02]RasterBufferAndPrint [10:50:02]line [10:50:02]line [10:50:02]line [10:50:02]line [10:50:02]line [10:50:02]written 0, free lines is 3283 [10:50:02]MH_Cut [10:50:02]Write to MH i2c: D1 01 00 19 0C 01 F7 [10:50:02]Write i2c OK [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: D1 [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: D1 01 00 [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: D1 01 00 19 0C 00 F6 [10:50:02]Write to MH i2c: 01 00 00 1A 0C 26 [10:50:02]Write i2c OK [10:50:02]MH_I2C_Read... [10:50:02]OFD Sender: No OFD packet to send [10:50:02]*** Cut start [10:50:02]*** Partial cut [10:50:02]*** CUTSNS_PIN = 1 [10:50:02]*** CUTSNS_PIN = 0 [10:50:03]*** Brake cut motor [10:50:03]Read from MH i2c: 01 [10:50:03]MH_I2C_Read... [10:50:03]*** Stop cut motor [10:50:03]*** Cut end [10:50:03]Read from MH i2c: 01 07 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: 01 07 00 1A 0C 00 00 00 00 00 FF 0F 3B [10:50:03]process_action close_receipt done [10:50:03]requested_data is exist [10:50:03]produce_requested_data [10:50:03]requested_item fm.sn is exist - process it [10:50:03]wFMCommunicate request_size=4 [10:50:03]MH_SAM_APDU [10:50:03]CAPDU: 80 11 00 00 [10:50:03]Write to MH i2c: E2 08 00 1B 0C 80 11 00 00 00 00 00 00 A1 [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:03]Read from MH i2c: E2 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 17 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 17 00 1B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F0 [10:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:50:03]wFMCommunicate OK [10:50:03]requested_item fd.num is exist - process it [10:50:03]SAM_PROTO_GetFieldsCounters [10:50:03]wFMCommunicate request_size=4 [10:50:03]MH_SAM_APDU [10:50:03]CAPDU: 80 13 00 00 [10:50:03]Write to MH i2c: E2 08 00 1C 0C 80 13 00 00 00 00 00 00 A4 [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:03]Read from MH i2c: E2 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 62 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 62 00 1C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 60 74 00 00 0E 04 04 00 76 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 F2 [10:50:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 60 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:03]wFMCommunicate OK [10:50:03]SAM_PROTO_GetFieldsCounters done [10:50:03]requested_item shift.num is exist - process it [10:50:03]requested_item shift.opened is exist - process it [10:50:03]req_shift_opened [10:50:03]FM_GetShiftState [10:50:03]SAM_PROTO_GetShiftState [10:50:03]wFMCommunicate request_size=4 [10:50:03]MH_SAM_APDU [10:50:03]CAPDU: 80 13 01 00 [10:50:03]Write to MH i2c: E2 08 00 1D 0C 80 13 01 00 00 00 00 00 A6 [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 [10:50:03]MH_I2C_Read... [10:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:03]Read from MH i2c: E2 0E 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 0E 00 1D 0C 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 54 [10:50:03]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:50:03]wFMCommunicate OK [10:50:03]SAM_PROTO_GetShiftState done [10:50:03]FM_GetShiftState done [10:50:03]req_shift_opened done [10:50:03]requested_item shift.open_date is exist - process it [10:50:03]req_shift_open_date [10:50:03]req_shift_open_date done [10:50:03]produce_requested_data done [10:50:03]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29792,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:50:03]process_action_free close_receipt [10:50:03]json_value_free [10:50:03]json_value_free done [10:50:03]process_json_proto returns [10:50:03]Send response to host [10:50:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29792,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:50:03]free response buf [10:50:03]execute_script done [10:50:03]execute_script returns [10:50:03]free content buf [10:50:03]Sock 7.Close socket [10:50:03]Sock 7.Thread stoped [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:53:02]OFD Sender: No OFD packet to send [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [10:53:17]OFD Sender: No OFD packet to send [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:32]OFD Sender: No OFD packet to send [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:20]accept exits with 9 [10:55:20]New connection [10:55:20]New thread 3067133284 created [10:55:20]Thread 3067276644 joined [10:55:20]Waiting for new connection... [10:55:20] Sock 9.Parse request [10:55:20]Sock 9.Check first char [10:55:20]Sock 9.First char is OK [10:55:20]request: POST /json_proto HTTP/1.0 [10:55:20]Method: POST [10:55:20]URL: /json_proto [10:55:20]Method is POST - this is cgi request [10:55:20]url: /json_proto [10:55:20]query_string will be loaded in cgi processing [10:55:20]execute_cgi json_proto POST (null) [10:55:20]execute_cgi path=json_proto method=POST [10:55:20]POST find Content-Length [10:55:20]Host: 172.17.33.3:8080 [10:55:20]Content-Length: 1196 [10:55:20]Content-Type: application/json [10:55:20] [10:55:20]POST finish read [10:55:20]Found Content-Length = 1196 [10:55:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348286\u000A16.04.2024 10:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 648.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3859024\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:20]execute_script... [10:55:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348286\u000A16.04.2024 10:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 648.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3859024\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:20]POST & json_proto [10:55:20]process_json_proto [10:55:20]json parsed OK: [10:55:20]protocol is kg_v1.0 [10:55:20]action value=print_text [10:55:20]process_action print_text [10:55:20]cmd_print_text [10:55:20]ExternCall_PrintAddStr [10:55:20]wPrintStart [10:55:20]Write to MH i2c: 01 00 00 1E 0C 2A [10:55:20]Write i2c OK [10:55:20]MH_I2C_Read... [10:55:20]Read from MH i2c: 01 [10:55:20]MH_I2C_Read... [10:55:20]Read from MH i2c: 01 07 00 [10:55:20]MH_I2C_Read... [10:55:20]Read from MH i2c: 01 07 00 1E 0C 00 00 00 00 00 FF 0F 3F [10:55:20]RasterBufferAndPrint [10:55:20]line *****ТОВАРНЫЙ ЧЕК***** [10:55:20]line АЗС 108 [10:55:20]line Партнер нефть [10:55:20]line 02508201610067 [10:55:20]line Кассир : Шадыканова Ж. [10:55:20]line Счет N : (1)348286 [10:55:20]line 16.04.2024 10:36 [10:55:20]line ПРОДАЖА [10:55:20]line ТРК (МРК, ГНК): 53 [10:55:20]line Вид ГСМ : 2710124130 [10:55:20]line Аи-92-К-5 [10:55:20]line 10.000 x 64.80 [10:55:20]line ИТОГ: 648.00 [10:55:20]line Тип оплаты: Талоны: Партнер нефть [10:55:20]line 3859024 [10:55:20]line ______________________ [10:55:20]line (подпись) [10:55:20]written 0, free lines is 4095 [10:55:21]Write to MH i2c: 01 00 00 33 0C 3F [10:55:21]Write i2c OK [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: 01 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: 01 07 00 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: 01 07 00 33 0C 00 00 00 00 00 F8 0D 4B [10:55:21]RasterBufferAndPrint [10:55:21]line [10:55:21]line [10:55:21]line [10:55:21]line [10:55:21]line [10:55:21]written 0, free lines is 3578 [10:55:21]MH_Cut [10:55:21]Write to MH i2c: D1 01 00 3A 0C 01 18 [10:55:21]Write i2c OK [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: D1 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: D1 01 00 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: D1 01 00 3A 0C 00 17 [10:55:21]Write to MH i2c: 01 00 00 3B 0C 47 [10:55:21]Write i2c OK [10:55:21]MH_I2C_Read... [10:55:21]*** Cut start [10:55:21]*** Partial cut [10:55:21]*** CUTSNS_PIN = 1 [10:55:21]*** CUTSNS_PIN = 0 [10:55:21]*** Brake cut motor [10:55:22]Read from MH i2c: 01 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: 01 07 00 [10:55:22]MH_I2C_Read... [10:55:22]*** Stop cut motor [10:55:22]*** Cut end [10:55:22]Read from MH i2c: 01 07 00 3B 0C 00 00 00 00 00 FF 0F 5C [10:55:22]process_action print_text done [10:55:22]requested_data is exist [10:55:22]produce_requested_data [10:55:22]requested_item fm.sn is exist - process it [10:55:22]wFMCommunicate request_size=4 [10:55:22]MH_SAM_APDU [10:55:22]CAPDU: 80 11 00 00 [10:55:22]Write to MH i2c: E2 08 00 3C 0C 80 11 00 00 00 00 00 00 C2 [10:55:22]Write i2c OK [10:55:22]MH_I2C_Read... [10:55:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:22]Read from MH i2c: E2 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 17 00 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 17 00 3C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 11 [10:55:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:55:22]wFMCommunicate OK [10:55:22]requested_item fd.num is exist - process it [10:55:22]SAM_PROTO_GetFieldsCounters [10:55:22]wFMCommunicate request_size=4 [10:55:22]MH_SAM_APDU [10:55:22]CAPDU: 80 13 00 00 [10:55:22]Write to MH i2c: E2 08 00 3D 0C 80 13 00 00 00 00 00 00 C5 [10:55:22]Write i2c OK [10:55:22]MH_I2C_Read... [10:55:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:22]Read from MH i2c: E2 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 62 00 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 62 00 3D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 60 74 00 00 0E 04 04 00 76 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 13 [10:55:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 60 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:22]wFMCommunicate OK [10:55:22]SAM_PROTO_GetFieldsCounters done [10:55:22]requested_item shift.num is exist - process it [10:55:22]requested_item shift.opened is exist - process it [10:55:22]req_shift_opened [10:55:22]FM_GetShiftState [10:55:22]SAM_PROTO_GetShiftState [10:55:22]wFMCommunicate request_size=4 [10:55:22]MH_SAM_APDU [10:55:22]CAPDU: 80 13 01 00 [10:55:22]Write to MH i2c: E2 08 00 3E 0C 80 13 01 00 00 00 00 00 C7 [10:55:22]Write i2c OK [10:55:22]MH_I2C_Read... [10:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:22]Read from MH i2c: E2 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 0E 00 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 0E 00 3E 0C 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 75 [10:55:22]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:55:22]wFMCommunicate OK [10:55:22]SAM_PROTO_GetShiftState done [10:55:22]FM_GetShiftState done [10:55:22]req_shift_opened done [10:55:22]requested_item shift.open_date is exist - process it [10:55:22]req_shift_open_date [10:55:22]req_shift_open_date done [10:55:22]produce_requested_data done [10:55:22]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29792,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:55:22]process_action_free print_text [10:55:22]json_value_free [10:55:22]json_value_free done [10:55:22]process_json_proto returns [10:55:22]Send response to host [10:55:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29792,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:55:22]free response buf [10:55:22]execute_script done [10:55:22]execute_script returns [10:55:22]free content buf [10:55:22]Sock 9.Close socket [10:55:22]Sock 9.Thread stoped [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:47]OFD Sender: No OFD packet to send [10:56:52]OFD Sender: No OFD packet to send [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:17]OFD Sender: No OFD packet to send [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:54]accept exits with 7 [10:58:54]New connection [10:58:54]New thread 3067276644 created [10:58:54]Thread 3067133284 joined [10:58:54]Waiting for new connection... [10:58:54] Sock 7.Parse request [10:58:54]Sock 7.Check first char [10:58:54]Sock 7.First char is OK [10:58:54]request: POST /json_proto HTTP/1.0 [10:58:54]Method: POST [10:58:54]URL: /json_proto [10:58:54]Method is POST - this is cgi request [10:58:54]url: /json_proto [10:58:54]query_string will be loaded in cgi processing [10:58:54]execute_cgi json_proto POST (null) [10:58:54]execute_cgi path=json_proto method=POST [10:58:54]POST find Content-Length [10:58:54]Host: 172.17.33.3:8080 [10:58:54]Content-Length: 1207 [10:58:54]Content-Type: application/json [10:58:54] [10:58:54]POST finish read [10:58:54]Found Content-Length = 1207 [10:58:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348287\u000A16.04.2024 10:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A61757\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:54]execute_script... [10:58:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348287\u000A16.04.2024 10:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A61757\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:54]POST & json_proto [10:58:54]process_json_proto [10:58:54]json parsed OK: [10:58:54]protocol is kg_v1.0 [10:58:54]action value=print_text [10:58:54]process_action print_text [10:58:54]cmd_print_text [10:58:54]ExternCall_PrintAddStr [10:58:54]wPrintStart [10:58:54]Write to MH i2c: 01 00 00 3F 0C 4B [10:58:54]Write i2c OK [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: 01 [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: 01 07 00 [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: 01 07 00 3F 0C 00 00 00 00 00 FF 0F 60 [10:58:54]RasterBufferAndPrint [10:58:54]line *****ТОВАРНЫЙ ЧЕК***** [10:58:54]line АЗС 108 [10:58:54]line Партнер нефть [10:58:54]line 02508201610067 [10:58:54]line Кассир : Шадыканова Ж. [10:58:54]line Счет N : (1)348287 [10:58:54]line 16.04.2024 10:40 [10:58:54]line ПРОДАЖА [10:58:54]line ТРК (МРК, ГНК): 13 [10:58:54]line Вид ГСМ : 2710124130 [10:58:54]line Аи-92-К-5 [10:58:54]line 20.000 x 64.80 [10:58:54]line ИТОГ: 1296.00 [10:58:54]line Тип оплаты: Талоны: Топливная Карта [10:58:54]line 61757 [10:58:54]line ______________________ [10:58:54]line (подпись) [10:58:54]written 0, free lines is 4095 [10:58:54]Write to MH i2c: 01 00 00 54 0C 60 [10:58:54]Write i2c OK [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: 01 [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: 01 07 00 [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: 01 07 00 54 0C 00 00 00 00 00 F6 0D 6A [10:58:54]RasterBufferAndPrint [10:58:54]line [10:58:54]line [10:58:54]line [10:58:54]line [10:58:54]line [10:58:54]written 0, free lines is 3576 [10:58:54]MH_Cut [10:58:54]Write to MH i2c: D1 01 00 5B 0C 01 39 [10:58:54]Write i2c OK [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: D1 [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: D1 01 00 [10:58:54]MH_I2C_Read... [10:58:54]Read from MH i2c: D1 01 00 5B 0C 00 38 [10:58:54]Write to MH i2c: 01 00 00 5C 0C 68 [10:58:54]Write i2c OK [10:58:54]MH_I2C_Read... [10:58:55]*** Cut start [10:58:55]*** Partial cut [10:58:55]*** CUTSNS_PIN = 1 [10:58:55]*** CUTSNS_PIN = 0 [10:58:55]*** Brake cut motor [10:58:55]Read from MH i2c: 01 [10:58:55]MH_I2C_Read... [10:58:55]*** Stop cut motor [10:58:55]*** Cut end [10:58:55]Read from MH i2c: 01 07 00 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: 01 07 00 5C 0C 00 00 00 00 00 FF 0F 7D [10:58:55]process_action print_text done [10:58:55]requested_data is exist [10:58:55]produce_requested_data [10:58:55]requested_item fm.sn is exist - process it [10:58:55]wFMCommunicate request_size=4 [10:58:55]MH_SAM_APDU [10:58:55]CAPDU: 80 11 00 00 [10:58:55]Write to MH i2c: E2 08 00 5D 0C 80 11 00 00 00 00 00 00 E3 [10:58:55]Write i2c OK [10:58:55]MH_I2C_Read... [10:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:55]Read from MH i2c: E2 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 17 00 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 17 00 5D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 32 [10:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:58:55]wFMCommunicate OK [10:58:55]requested_item fd.num is exist - process it [10:58:55]SAM_PROTO_GetFieldsCounters [10:58:55]wFMCommunicate request_size=4 [10:58:55]MH_SAM_APDU [10:58:55]CAPDU: 80 13 00 00 [10:58:55]Write to MH i2c: E2 08 00 5E 0C 80 13 00 00 00 00 00 00 E6 [10:58:55]Write i2c OK [10:58:55]MH_I2C_Read... [10:58:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:55]Read from MH i2c: E2 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 62 00 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 62 00 5E 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 60 74 00 00 0E 04 04 00 76 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 34 [10:58:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 60 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:55]wFMCommunicate OK [10:58:55]SAM_PROTO_GetFieldsCounters done [10:58:55]requested_item shift.num is exist - process it [10:58:55]requested_item shift.opened is exist - process it [10:58:55]req_shift_opened [10:58:55]FM_GetShiftState [10:58:55]SAM_PROTO_GetShiftState [10:58:55]wFMCommunicate request_size=4 [10:58:55]MH_SAM_APDU [10:58:55]CAPDU: 80 13 01 00 [10:58:55]Write to MH i2c: E2 08 00 5F 0C 80 13 01 00 00 00 00 00 E8 [10:58:55]Write i2c OK [10:58:55]MH_I2C_Read... [10:58:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:55]Read from MH i2c: E2 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 0E 00 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 0E 00 5F 0C 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 96 [10:58:55]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:58:55]wFMCommunicate OK [10:58:55]SAM_PROTO_GetShiftState done [10:58:55]FM_GetShiftState done [10:58:55]req_shift_opened done [10:58:55]requested_item shift.open_date is exist - process it [10:58:55]req_shift_open_date [10:58:55]req_shift_open_date done [10:58:55]produce_requested_data done [10:58:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29792,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:58:55]process_action_free print_text [10:58:55]json_value_free [10:58:55]json_value_free done [10:58:55]process_json_proto returns [10:58:55]Send response to host [10:58:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29792,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:58:55]free response buf [10:58:55]execute_script done [10:58:55]execute_script returns [10:58:55]free content buf [10:58:55]Sock 7.Close socket [10:58:55]Sock 7.Thread stoped [10:58:57]OFD Sender: No OFD packet to send [10:59:02]OFD Sender: No OFD packet to send [10:59:07]OFD Sender: No OFD packet to send [10:59:12]OFD Sender: No OFD packet to send [10:59:17]OFD Sender: No OFD packet to send [10:59:22]OFD Sender: No OFD packet to send [10:59:27]OFD Sender: No OFD packet to send [10:59:29]accept exits with 9 [10:59:29]New connection [10:59:29]New thread 3067133284 created [10:59:29]Thread 3067276644 joined [10:59:29]Waiting for new connection... [10:59:29] Sock 9.Parse request [10:59:29]Sock 9.Check first char [10:59:29]Sock 9.First char is OK [10:59:29]request: POST /json_proto HTTP/1.0 [10:59:29]Method: POST [10:59:29]URL: /json_proto [10:59:29]Method is POST - this is cgi request [10:59:29]url: /json_proto [10:59:29]query_string will be loaded in cgi processing [10:59:29]execute_cgi json_proto POST (null) [10:59:29]execute_cgi path=json_proto method=POST [10:59:29]POST find Content-Length [10:59:29]Host: 172.17.33.3:8080 [10:59:29]Content-Length: 816 [10:59:29]Content-Type: application/json [10:59:29] [10:59:29]POST finish read [10:59:29]Found Content-Length = 816 [10:59:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:29]execute_script... [10:59:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 9.260, "sum" : 600.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:29]POST & json_proto [10:59:29]process_json_proto [10:59:29]json parsed OK: [10:59:29]protocol is kg_v1.0 [10:59:29]action value=close_receipt [10:59:29]process_action close_receipt [10:59:29]cmd_close_receipt [10:59:29]MH_GetDate [10:59:29]Write to MH i2c: F0 00 00 60 0C 5B [10:59:29]Write i2c OK [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: F0 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: F0 09 00 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: F0 09 00 60 0C 00 12 5A 1E 66 23 5B 8F 65 C6 [10:59:29]GetLastDocTimeStamp 1713264600 [10:59:29]current date 1713265170 [10:59:29]FM_GetShiftState [10:59:29]SAM_PROTO_GetShiftState [10:59:29]wFMCommunicate request_size=4 [10:59:29]MH_SAM_APDU [10:59:29]CAPDU: 80 13 01 00 [10:59:29]Write to MH i2c: E2 08 00 61 0C 80 13 01 00 00 00 00 00 EA [10:59:29]Write i2c OK [10:59:29]MH_I2C_Read... [10:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:29]Read from MH i2c: E2 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: E2 0E 00 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: E2 0E 00 61 0C 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 98 [10:59:29]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:59:29]wFMCommunicate OK [10:59:29]SAM_PROTO_GetShiftState done [10:59:29]FM_GetShiftState done [10:59:29]opened in 1713226843 [10:59:29]opened+sec_in_day 1713313243 [10:59:29]quantity*price = 60004 [10:59:29]sum+1 = 60006 [10:59:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.05 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.05 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 67 16.04.2024 10:59 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29793 ФПД: 247423236903438 1/tax-web-control/client/api/v1/ticket?date=20240416T105930&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29793&fm=247423236903438&tin=02508201610067®Number=0000138879044617&sum=60005 [10:59:30]StoreToDocumentArchive [10:59:30]shift 118 fd 29793 [10:59:30]save to /storage/0118/doc_00029793 [10:59:30]save last doc name /storage/0118/doc_00029793 to /storage/kkm_last_doc_name [10:59:30]save OK [10:59:30]Clear old archive folders... [10:59:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:30]tlvbuf is 0014E880 [10:59:30]SAM_PROTO_ClearQueue [10:59:30]wFMCommunicate request_size=4 [10:59:30]MH_SAM_APDU [10:59:30]CAPDU: 80 09 00 00 [10:59:30]Write to MH i2c: E2 08 00 6E 0C 80 09 00 00 00 00 00 00 EC [10:59:30]Write i2c OK [10:59:30]MH_I2C_Read... [10:59:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:30]Read from MH i2c: E2 [10:59:30]MH_I2C_Read... [10:59:30]Read from MH i2c: E2 03 00 [10:59:30]MH_I2C_Read... [10:59:30]Read from MH i2c: E2 03 00 6E 0C 00 90 00 EE [10:59:30]RAPDU: 90 00 [10:59:30]wFMCommunicate OK [10:59:30]SAM_PROTO_ClearQueue done [10:59:30]KKMCreateOFDPacket [10:59:30]OFDProtocolAddRootSTLVToBuf [10:59:30]FM_MakeSignedData [10:59:30]FM_MakeSignedData [10:59:30]SAM_PROTO_SignData [10:59:30]wFMCommunicate request_size=4 [10:59:30]MH_SAM_APDU [10:59:30]CAPDU: 80 0D 01 02 [10:59:30]Write to MH i2c: E2 08 00 6F 0C 80 0D 01 02 00 00 00 00 F4 [10:59:30]Write i2c OK [10:59:30]MH_I2C_Read... [10:59:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:30]Read from MH i2c: E2 [10:59:30]MH_I2C_Read... [10:59:30]Read from MH i2c: E2 03 00 [10:59:30]MH_I2C_Read... [10:59:30]Read from MH i2c: E2 03 00 6F 0C 00 90 00 EF [10:59:30]RAPDU: 90 00 [10:59:30]wFMCommunicate OK [10:59:30]wFMCommunicate request_size=255 [10:59:30]MH_SAM_APDU [10:59:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 12 5A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 74 00 00 35 04 06 00 E1 [10:59:30]Write to MH i2c: E2 02 01 70 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 12 5A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 74 00 00 35 04 06 00 E1 00 00 31 [10:59:30]Write i2c OK [10:59:30]MH_I2C_Read... [10:59:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:30]Read from MH i2c: E2 [10:59:30]MH_I2C_Read... [10:59:30]Read from MH i2c: E2 03 00 [10:59:30]MH_I2C_Read... [10:59:30]Read from MH i2c: E2 03 00 70 0C 00 90 00 F0 [10:59:30]RAPDU: 90 00 [10:59:30]wFMCommunicate OK [10:59:30]wFMCommunicate request_size=10 [10:59:30]MH_SAM_APDU [10:59:30]CAPDU: 80 0D 02 02 05 07 B6 25 12 0E [10:59:30]Write to MH i2c: E2 0D 00 71 0C 80 0D 02 02 05 00 07 B6 25 12 0E 00 00 03 [10:59:30]Write i2c OK [10:59:30]MH_I2C_Read... [10:59:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:31]Read from MH i2c: E2 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 03 00 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 03 00 71 0C 00 90 00 F1 [10:59:31]RAPDU: 90 00 [10:59:31]wFMCommunicate OK [10:59:31]wFMCommunicate request_size=4 [10:59:31]MH_SAM_APDU [10:59:31]CAPDU: 80 0D 03 02 [10:59:31]Write to MH i2c: E2 08 00 72 0C 80 0D 03 02 00 00 00 00 F9 [10:59:31]Write i2c OK [10:59:31]MH_I2C_Read... [10:59:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:31]Read from MH i2c: E2 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 0B 00 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 0B 00 72 0C 00 0E 2E F0 9D D2 23 49 C7 90 00 C8 [10:59:31]RAPDU: 0E 2E F0 9D D2 23 49 C7 90 00 [10:59:31]wFMCommunicate OK [10:59:31]SAM_PROTO_SignData done [10:59:31]FM_MakeSignedData done [10:59:31]CreateOFDProtocolMessage [10:59:31]wFMCommunicate request_size=4 [10:59:31]MH_SAM_APDU [10:59:31]CAPDU: 80 11 00 00 [10:59:31]Write to MH i2c: E2 08 00 73 0C 80 11 00 00 00 00 00 00 F9 [10:59:31]Write i2c OK [10:59:31]MH_I2C_Read... [10:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:31]Read from MH i2c: E2 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 17 00 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: E2 17 00 73 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 48 [10:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:59:31]wFMCommunicate OK [10:59:31]CreateOFDProtocolMessage done [10:59:31]OFDSenderStorePacket 29793 [10:59:31]StoreOFDPacket docnum=29793 [10:59:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A9 47 07 01 EE DC 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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 12 5A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 74 00 00 35 04 06 00 E1 07 B6 25 12 0E 0E 2E F0 9D D2 23 49 C7 [10:59:31]CheckFolder [10:59:31]dirname=/storage/ofd_packets [10:59:31]CheckFolder done [10:59:31]ProducePacketName [10:59:31]name=ofd_packets/00029793 [10:59:31]NVStorageSaveData ofd_packets/00029793 [10:59:31]File name is /storage/ofd_packets/00029793 [10:59:31]Write 301 bytes [10:59:31]NVStorageSaveData done [10:59:31]OFDSenderStorePacket done [10:59:31]KKMCreateOFDPacket done [10:59:31]NVStorageSaveData kkm_last_timestamp [10:59:31]File name is /storage/kkm_last_timestamp [10:59:31]Write 4 bytes [10:59:31]NVStorageSaveData done [10:59:31]ExternCall_PrintAddStr [10:59:31]wPrintStart [10:59:31]Write to MH i2c: 01 00 00 74 0C 80 [10:59:31]Write i2c OK [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: 01 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: 01 07 00 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: 01 07 00 74 0C 00 00 00 00 00 FF 0F 95 [10:59:31]RasterBufferAndPrint [10:59:31]line Счет N : (1)348288 [10:59:31]line ИНН: 02508201610067 [10:59:31]line Контрольно-Кассовый Чек [10:59:31]line ПРОДАЖА [10:59:31]line ТРК (МРК, ГНК) : 42 [10:59:31]line Товар: 2710124130 [10:59:31]line Аи-92-К-5 [10:59:31]line 9.260 * 64.80 [10:59:31]line = 600.05 [10:59:31]line НДС 12% НСП 1% [10:59:31]line > о реализуемом товаре [10:59:31]line ИТОГО: 600.05 [10:59:31]line НСП 1% : 5.31 [10:59:31]line НДС 12% : 63.72 [10:59:31]line Наличными: 0.00 [10:59:31]line Безнал.: 600.05 [10:59:31]line Место: АЗС № 108 "Партнер Нефть" [10:59:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:59:31]line СНО: Общий режим [10:59:31]line Чек 67 16.04.2024 10:59 [10:59:31]line Смена: 118 ФФД: 1.0 [10:59:31]line ЗНМ: 0300000027 [10:59:31]line РНМ: 0000138879044617 [10:59:31]line Версия ККМ: 001 [10:59:31]line Платежная система: Бакай Банк [10:59:31]line ФМ: 0000000000963154 [10:59:31]line ФД: 29793 [10:59:31]line ФПД: 247423236903438 [10:59:31]line 1/tax-web-control/client/api/v1/ticket?date=20240416T105930&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29793&fm=247423236903438&tin=02508201610067®Number=0000138879044617&sum=60005 [10:59:31]OFD Sender: Processing packet 29793 [packets to send 8, broken 7] [10:59:31]ProducePacketName [10:59:31]name=ofd_packets/00029793 [10:59:31]OFD Sender: To server: pG, [10:59:31]CommunicateWithHost lk.salyk.kg:30040 [10:59:31]ConnectInit lk.salyk.kg [10:59:31]written 0, free lines is 4095 [10:59:31]Connected sock=10 [10:59:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A9 47 07 01 EE DC 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 2C 24 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 65 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 12 5A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 74 00 00 35 04 06 00 E1 07 B6 25 12 0E 0E 2E F0 9D D2 23 49 C7 [10:59:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DF AE 47 00 37 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 36 33 31 35 34 10 04 04 00 61 74 00 00 F4 03 04 00 B1 04 1E 66 B6 04 01 00 00 BD AE 65 A5 DC 42 7A 95 [10:59:31]CommunicateWithHost err = 0 [10:59:31]CheckOFDResponse [10:59:31]1017 (14) - 77093643461234 [10:59:31]1041 (16) - 0000000000963154 [10:59:31]1040 (4) - 29793 [10:59:31]1012 (4) - 16.04.2024 04:55 [10:59:31]1206 (1) - 0 [10:59:31]OFD Sender: Remove packet 29793 [10:59:31]ProducePacketName [10:59:31]name=ofd_packets/00029793 [10:59:31]NVStorageDeleteData [10:59:31]Write to MH i2c: 01 00 00 9D 0C A9 [10:59:31]Write i2c OK [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: 01 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: 01 07 00 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: 01 07 00 9D 0C 00 00 00 00 00 E0 0C 9C [10:59:31]RasterBufferAndPrint [10:59:31]line [10:59:31]line [10:59:31]line [10:59:31]line [10:59:31]line [10:59:31]written 0, free lines is 3302 [10:59:31]MH_Cut [10:59:31]Write to MH i2c: D1 01 00 A4 0C 01 82 [10:59:31]Write i2c OK [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: D1 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: D1 01 00 [10:59:31]MH_I2C_Read... [10:59:31]Read from MH i2c: D1 01 00 A4 0C 00 81 [10:59:31]Write to MH i2c: 01 00 00 A5 0C B1 [10:59:31]Write i2c OK [10:59:31]MH_I2C_Read... [10:59:32]OFD Sender: No OFD packet to send [10:59:32]*** Cut start [10:59:32]*** Partial cut [10:59:32]*** CUTSNS_PIN = 1 [10:59:32]*** CUTSNS_PIN = 0 [10:59:32]*** Brake cut motor [10:59:33]Read from MH i2c: 01 [10:59:33]MH_I2C_Read... [10:59:33]*** Stop cut motor [10:59:33]*** Cut end [10:59:33]Read from MH i2c: 01 07 00 [10:59:33]MH_I2C_Read... [10:59:33]Read from MH i2c: 01 07 00 A5 0C 00 00 00 00 00 FF 0F C6 [10:59:33]process_action close_receipt done [10:59:33]requested_data is exist [10:59:33]produce_requested_data [10:59:33]requested_item fm.sn is exist - process it [10:59:33]wFMCommunicate request_size=4 [10:59:33]MH_SAM_APDU [10:59:33]CAPDU: 80 11 00 00 [10:59:33]Write to MH i2c: E2 08 00 A6 0C 80 11 00 00 00 00 00 00 2C [10:59:33]Write i2c OK [10:59:33]MH_I2C_Read... [10:59:33]Read from MH i2c: E2 [10:59:33]MH_I2C_Read... [10:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:33]Read from MH i2c: E2 17 00 [10:59:33]MH_I2C_Read... [10:59:33]Read from MH i2c: E2 17 00 A6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7B [10:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:59:33]wFMCommunicate OK [10:59:33]requested_item fd.num is exist - process it [10:59:33]SAM_PROTO_GetFieldsCounters [10:59:33]wFMCommunicate request_size=4 [10:59:33]MH_SAM_APDU [10:59:33]CAPDU: 80 13 00 00 [10:59:33]Write to MH i2c: E2 08 00 A7 0C 80 13 00 00 00 00 00 00 2F [10:59:33]Write i2c OK [10:59:33]MH_I2C_Read... [10:59:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:33]Read from MH i2c: E2 [10:59:33]MH_I2C_Read... [10:59:33]Read from MH i2c: E2 62 00 [10:59:33]MH_I2C_Read... [10:59:33]Read from MH i2c: E2 62 00 A7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 61 74 00 00 0E 04 04 00 76 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 81 [10:59:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 61 74 00 00 0E 04 04 00 76 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 [10:59:33]wFMCommunicate OK [10:59:33]SAM_PROTO_GetFieldsCounters done [10:59:33]requested_item shift.num is exist - process it [10:59:33]requested_item shift.opened is exist - process it [10:59:33]req_shift_opened [10:59:33]FM_GetShiftState [10:59:33]SAM_PROTO_GetShiftState [10:59:33]wFMCommunicate request_size=4 [10:59:33]MH_SAM_APDU [10:59:33]CAPDU: 80 13 01 00 [10:59:33]Write to MH i2c: E2 08 00 A8 0C 80 13 01 00 00 00 00 00 31 [10:59:33]Write i2c OK [10:59:33]MH_I2C_Read... [10:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:33]Read from MH i2c: E2 [10:59:33]MH_I2C_Read... [10:59:33]Read from MH i2c: E2 0E 00 [10:59:33]MH_I2C_Read... [10:59:33]Read from MH i2c: E2 0E 00 A8 0C 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 DF [10:59:33]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:59:33]wFMCommunicate OK [10:59:33]SAM_PROTO_GetShiftState done [10:59:33]FM_GetShiftState done [10:59:33]req_shift_opened done [10:59:33]requested_item shift.open_date is exist - process it [10:59:33]req_shift_open_date [10:59:33]req_shift_open_date done [10:59:33]produce_requested_data done [10:59:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29793,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:59:33]process_action_free close_receipt [10:59:33]json_value_free [10:59:33]json_value_free done [10:59:33]process_json_proto returns [10:59:33]Send response to host [10:59:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29793,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:59:33]free response buf [10:59:33]execute_script done [10:59:33]execute_script returns [10:59:33]free content buf [10:59:33]Sock 9.Close socket [10:59:33]Sock 9.Thread stoped [10:59:37]OFD Sender: No OFD packet to send [10:59:42]OFD Sender: No OFD packet to send [10:59:43]accept exits with 7 [10:59:43]New connection [10:59:43]New thread 3067276644 created [10:59:43]Thread 3067133284 joined [10:59:43]Waiting for new connection... [10:59:43] Sock 7.Parse request [10:59:43]Sock 7.Check first char [10:59:43]Sock 7.First char is OK [10:59:43]request: POST /json_proto HTTP/1.0 [10:59:43]Method: POST [10:59:43]URL: /json_proto [10:59:43]Method is POST - this is cgi request [10:59:43]url: /json_proto [10:59:43]query_string will be loaded in cgi processing [10:59:43]execute_cgi json_proto POST (null) [10:59:43]execute_cgi path=json_proto method=POST [10:59:43]POST find Content-Length [10:59:43]Host: 172.17.33.3:8080 [10:59:43]Content-Length: 677 [10:59:43]Content-Type: application/json [10:59:43] [10:59:43]POST finish read [10:59:43]Found Content-Length = 677 [10:59:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:43]execute_script... [10:59:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 4.630, "sum" : 300.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:43]POST & json_proto [10:59:43]process_json_proto [10:59:43]json parsed OK: [10:59:43]protocol is kg_v1.0 [10:59:43]action value=close_receipt [10:59:43]process_action close_receipt [10:59:43]cmd_close_receipt [10:59:43]MH_GetDate [10:59:43]Write to MH i2c: F0 00 00 A9 0C A4 [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: F0 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: F0 09 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: F0 09 00 A9 0C 00 20 5A 1E 66 23 5B 8F 65 1D [10:59:43]GetLastDocTimeStamp 1713265170 [10:59:43]current date 1713265184 [10:59:43]FM_GetShiftState [10:59:43]SAM_PROTO_GetShiftState [10:59:43]wFMCommunicate request_size=4 [10:59:43]MH_SAM_APDU [10:59:43]CAPDU: 80 13 01 00 [10:59:43]Write to MH i2c: E2 08 00 AA 0C 80 13 01 00 00 00 00 00 33 [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:43]Read from MH i2c: E2 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 0E 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 0E 00 AA 0C 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 E1 [10:59:43]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:59:43]wFMCommunicate OK [10:59:43]SAM_PROTO_GetShiftState done [10:59:43]FM_GetShiftState done [10:59:43]opened in 1713226843 [10:59:43]opened+sec_in_day 1713313243 [10:59:43]quantity*price = 30002 [10:59:43]sum+1 = 30003 [10:59:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 68 16.04.2024 10:59 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29794 ФПД: 57568345661113 1/tax-web-control/client/api/v1/ticket?date=20240416T105944&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29794&fm=57568345661113&tin=02508201610067®Number=0000138879044617&sum=30000 [10:59:44]StoreToDocumentArchive [10:59:44]shift 118 fd 29794 [10:59:44]save to /storage/0118/doc_00029794 [10:59:44]save last doc name /storage/0118/doc_00029794 to /storage/kkm_last_doc_name [10:59:44]save OK [10:59:44]Clear old archive folders... [10:59:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:44]tlvbuf is 0017D8A0 [10:59:44]SAM_PROTO_ClearQueue [10:59:44]wFMCommunicate request_size=4 [10:59:44]MH_SAM_APDU [10:59:44]CAPDU: 80 09 00 00 [10:59:44]Write to MH i2c: E2 08 00 B7 0C 80 09 00 00 00 00 00 00 35 [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:44]Read from MH i2c: E2 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 03 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 03 00 B7 0C 00 90 00 37 [10:59:44]RAPDU: 90 00 [10:59:44]wFMCommunicate OK [10:59:44]SAM_PROTO_ClearQueue done [10:59:44]KKMCreateOFDPacket [10:59:44]OFDProtocolAddRootSTLVToBuf [10:59:44]FM_MakeSignedData [10:59:44]FM_MakeSignedData [10:59:44]SAM_PROTO_SignData [10:59:44]wFMCommunicate request_size=4 [10:59:44]MH_SAM_APDU [10:59:44]CAPDU: 80 0D 01 02 [10:59:44]Write to MH i2c: E2 08 00 B8 0C 80 0D 01 02 00 00 00 00 3D [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:44]Read from MH i2c: E2 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 03 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 03 00 B8 0C 00 90 00 38 [10:59:44]RAPDU: 90 00 [10:59:44]wFMCommunicate OK [10:59:44]wFMCommunicate request_size=255 [10:59:44]MH_SAM_APDU [10:59:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 20 5A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 74 00 00 35 04 06 00 34 [10:59:44]Write to MH i2c: E2 02 01 B9 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 20 5A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 74 00 00 35 04 06 00 34 00 00 30 [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:44]Read from MH i2c: E2 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 03 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 03 00 B9 0C 00 90 00 39 [10:59:44]RAPDU: 90 00 [10:59:44]wFMCommunicate OK [10:59:44]wFMCommunicate request_size=10 [10:59:44]MH_SAM_APDU [10:59:44]CAPDU: 80 0D 02 02 05 5B AC CB 1E B9 [10:59:44]Write to MH i2c: E2 0D 00 BA 0C 80 0D 02 02 05 00 5B AC CB 1E B9 00 00 F3 [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:44]Read from MH i2c: E2 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 03 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 03 00 BA 0C 00 90 00 3A [10:59:44]RAPDU: 90 00 [10:59:44]wFMCommunicate OK [10:59:44]wFMCommunicate request_size=4 [10:59:44]MH_SAM_APDU [10:59:44]CAPDU: 80 0D 03 02 [10:59:44]Write to MH i2c: E2 08 00 BB 0C 80 0D 03 02 00 00 00 00 42 [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:44]Read from MH i2c: E2 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 0B 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 0B 00 BB 0C 00 B0 95 19 AC C3 C0 BB 85 90 00 10 [10:59:44]RAPDU: B0 95 19 AC C3 C0 BB 85 90 00 [10:59:44]wFMCommunicate OK [10:59:44]SAM_PROTO_SignData done [10:59:44]FM_MakeSignedData done [10:59:44]CreateOFDProtocolMessage [10:59:44]wFMCommunicate request_size=4 [10:59:44]MH_SAM_APDU [10:59:44]CAPDU: 80 11 00 00 [10:59:44]Write to MH i2c: E2 08 00 BC 0C 80 11 00 00 00 00 00 00 42 [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:45]Read from MH i2c: E2 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 17 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: E2 17 00 BC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 91 [10:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:59:45]wFMCommunicate OK [10:59:45]CreateOFDProtocolMessage done [10:59:45]OFDSenderStorePacket 29794 [10:59:45]StoreOFDPacket docnum=29794 [10:59:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2A 62 07 01 13 CA 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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 20 5A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 74 00 00 35 04 06 00 34 5B AC CB 1E B9 B0 95 19 AC C3 C0 BB 85 [10:59:45]CheckFolder [10:59:45]dirname=/storage/ofd_packets [10:59:45]CheckFolder done [10:59:45]ProducePacketName [10:59:45]name=ofd_packets/00029794 [10:59:45]NVStorageSaveData ofd_packets/00029794 [10:59:45]File name is /storage/ofd_packets/00029794 [10:59:45]Write 301 bytes [10:59:45]NVStorageSaveData done [10:59:45]OFDSenderStorePacket done [10:59:45]KKMCreateOFDPacket done [10:59:45]NVStorageSaveData kkm_last_timestamp [10:59:45]File name is /storage/kkm_last_timestamp [10:59:45]Write 4 bytes [10:59:45]NVStorageSaveData done [10:59:45]ExternCall_PrintAddStr [10:59:45]wPrintStart [10:59:45]Write to MH i2c: 01 00 00 BD 0C C9 [10:59:45]Write i2c OK [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: 01 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: 01 07 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: 01 07 00 BD 0C 00 00 00 00 00 FF 0F DE [10:59:45]RasterBufferAndPrint [10:59:45]line Счет N : (1)348289 [10:59:45]line ИНН: 02508201610067 [10:59:45]line Контрольно-Кассовый Чек [10:59:45]line ПРОДАЖА [10:59:45]line ТРК (МРК, ГНК) : 32 [10:59:45]line Товар: 2710124130 [10:59:45]line Аи-92-К-5 [10:59:45]line 4.630 * 64.80 [10:59:45]line = 300.02 [10:59:45]line НДС 12% НСП 1% [10:59:45]line > о реализуемом товаре [10:59:45]line ОКРУГЛЕНИЕ: -0.02 [10:59:45]line ИТОГО: 300.00 [10:59:45]line Внесено: 300.00 [10:59:45]line СДАЧА: 0.00 [10:59:45]line НСП 1% : 2.65 [10:59:45]line НДС 12% : 31.86 [10:59:45]line Наличными: 300.00 [10:59:45]line Безнал.: 0.00 [10:59:45]line Место: АЗС № 108 "Партнер Нефть" [10:59:45]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:59:45]line СНО: Общий режим [10:59:45]line Чек 68 16.04.2024 10:59 [10:59:45]line Смена: 118 ФФД: 1.0 [10:59:45]line ЗНМ: 0300000027 [10:59:45]line РНМ: 0000138879044617 [10:59:45]line Версия ККМ: 001 [10:59:45]line ФМ: 0000000000963154 [10:59:45]line ФД: 29794 [10:59:45]line ФПД: 57568345661113 [10:59:45]line 1/tax-web-control/client/api/v1/ticket?date=20240416T105944&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29794&fm=57568345661113&tin=02508201610067®Number=0000138879044617&sum=30000 [10:59:45]written 0, free lines is 4095 [10:59:45]OFD Sender: Processing packet 29794 [packets to send 8, broken 7] [10:59:45]ProducePacketName [10:59:45]name=ofd_packets/00029794 [10:59:45]OFD Sender: To server: pG, [10:59:45]CommunicateWithHost lk.salyk.kg:30040 [10:59:45]ConnectInit lk.salyk.kg [10:59:45]Connected sock=10 [10:59:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2A 62 07 01 13 CA 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 16 12 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 32 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 20 5A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 74 00 00 35 04 06 00 34 5B AC CB 1E B9 B0 95 19 AC C3 C0 BB 85 [10:59:45]Write to MH i2c: 01 00 00 E7 0C F3 [10:59:45]Write i2c OK [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: 01 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: 01 07 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: 01 07 00 E7 0C 00 00 00 00 00 D3 0C D9 [10:59:45]RasterBufferAndPrint [10:59:45]line [10:59:45]line [10:59:45]line [10:59:45]line [10:59:45]line [10:59:45]written 0, free lines is 3289 [10:59:45]MH_Cut [10:59:45]Write to MH i2c: D1 01 00 EE 0C 01 CC [10:59:45]Write i2c OK [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: D1 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: D1 01 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: D1 01 00 EE 0C 00 CB [10:59:45]Write to MH i2c: 01 00 00 EF 0C FB [10:59:45]Write i2c OK [10:59:45]MH_I2C_Read... [10:59:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D6 C2 47 00 CF 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 36 33 31 35 34 10 04 04 00 62 74 00 00 F4 03 04 00 BF 04 1E 66 B6 04 01 00 00 01 E6 AB D1 5A 89 01 D5 [10:59:45]CommunicateWithHost err = 0 [10:59:45]CheckOFDResponse [10:59:45]1017 (14) - 77093643461234 [10:59:45]1041 (16) - 0000000000963154 [10:59:45]1040 (4) - 29794 [10:59:45]1012 (4) - 16.04.2024 04:55 [10:59:45]1206 (1) - 0 [10:59:45]OFD Sender: Remove packet 29794 [10:59:45]ProducePacketName [10:59:45]name=ofd_packets/00029794 [10:59:45]NVStorageDeleteData [10:59:46]OFD Sender: No OFD packet to send [10:59:46]*** Cut start [10:59:46]*** Partial cut [10:59:46]*** CUTSNS_PIN = 1 [10:59:46]*** CUTSNS_PIN = 0 [10:59:46]*** Brake cut motor [10:59:46]Read from MH i2c: 01 [10:59:46]MH_I2C_Read... [10:59:46]*** Stop cut motor [10:59:46]*** Cut end [10:59:46]Read from MH i2c: 01 07 00 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: 01 07 00 EF 0C 00 00 00 00 00 FF 0F 10 [10:59:46]process_action close_receipt done [10:59:46]requested_data is exist [10:59:46]produce_requested_data [10:59:46]requested_item fm.sn is exist - process it [10:59:46]wFMCommunicate request_size=4 [10:59:46]MH_SAM_APDU [10:59:46]CAPDU: 80 11 00 00 [10:59:46]Write to MH i2c: E2 08 00 F0 0C 80 11 00 00 00 00 00 00 76 [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:46]Read from MH i2c: E2 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 17 00 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 17 00 F0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C5 [10:59:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:59:46]wFMCommunicate OK [10:59:46]requested_item fd.num is exist - process it [10:59:46]SAM_PROTO_GetFieldsCounters [10:59:46]wFMCommunicate request_size=4 [10:59:46]MH_SAM_APDU [10:59:46]CAPDU: 80 13 00 00 [10:59:46]Write to MH i2c: E2 08 00 F1 0C 80 13 00 00 00 00 00 00 79 [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:47]Read from MH i2c: E2 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 62 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 62 00 F1 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 62 74 00 00 0E 04 04 00 76 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 CF [10:59:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 62 74 00 00 0E 04 04 00 76 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 [10:59:47]wFMCommunicate OK [10:59:47]SAM_PROTO_GetFieldsCounters done [10:59:47]requested_item shift.num is exist - process it [10:59:47]requested_item shift.opened is exist - process it [10:59:47]req_shift_opened [10:59:47]FM_GetShiftState [10:59:47]SAM_PROTO_GetShiftState [10:59:47]wFMCommunicate request_size=4 [10:59:47]MH_SAM_APDU [10:59:47]CAPDU: 80 13 01 00 [10:59:47]Write to MH i2c: E2 08 00 F2 0C 80 13 01 00 00 00 00 00 7B [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:47]Read from MH i2c: E2 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 0E 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 0E 00 F2 0C 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 29 [10:59:47]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [10:59:47]wFMCommunicate OK [10:59:47]SAM_PROTO_GetShiftState done [10:59:47]FM_GetShiftState done [10:59:47]req_shift_opened done [10:59:47]requested_item shift.open_date is exist - process it [10:59:47]req_shift_open_date [10:59:47]req_shift_open_date done [10:59:47]produce_requested_data done [10:59:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29794,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [10:59:47]process_action_free close_receipt [10:59:47]json_value_free [10:59:47]json_value_free done [10:59:47]process_json_proto returns [10:59:47]Send response to host [10:59:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29794,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [10:59:47]free response buf [10:59:47]execute_script done [10:59:47]execute_script returns [10:59:47]free content buf [10:59:47]Sock 7.Close socket [10:59:47]Sock 7.Thread stoped [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:34]accept exits with 9 [11:03:34]New connection [11:03:34]New thread 3067133284 created [11:03:34]Thread 3067276644 joined [11:03:34]Waiting for new connection... [11:03:34] Sock 9.Parse request [11:03:34]Sock 9.Check first char [11:03:34]Sock 9.First char is OK [11:03:34]request: POST /json_proto HTTP/1.0 [11:03:34]Method: POST [11:03:34]URL: /json_proto [11:03:34]Method is POST - this is cgi request [11:03:34]url: /json_proto [11:03:34]query_string will be loaded in cgi processing [11:03:34]execute_cgi json_proto POST (null) [11:03:34]execute_cgi path=json_proto method=POST [11:03:34]POST find Content-Length [11:03:34]Host: 172.17.33.3:8080 [11:03:34]Content-Length: 675 [11:03:34]Content-Type: application/json [11:03:34] [11:03:34]POST finish read [11:03:34]Found Content-Length = 675 [11:03:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:34]execute_script... [11:03:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:34]POST & json_proto [11:03:34]process_json_proto [11:03:34]json parsed OK: [11:03:34]protocol is kg_v1.0 [11:03:34]action value=close_receipt [11:03:34]process_action close_receipt [11:03:34]cmd_close_receipt [11:03:34]MH_GetDate [11:03:34]Write to MH i2c: F0 00 00 F3 0C EE [11:03:34]Write i2c OK [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: F0 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: F0 09 00 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: F0 09 00 F3 0C 00 07 5B 1E 66 23 5B 8F 65 4F [11:03:34]GetLastDocTimeStamp 1713265184 [11:03:34]current date 1713265415 [11:03:34]FM_GetShiftState [11:03:34]SAM_PROTO_GetShiftState [11:03:34]wFMCommunicate request_size=4 [11:03:34]MH_SAM_APDU [11:03:34]CAPDU: 80 13 01 00 [11:03:34]Write to MH i2c: E2 08 00 F4 0C 80 13 01 00 00 00 00 00 7D [11:03:34]Write i2c OK [11:03:34]MH_I2C_Read... [11:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:34]Read from MH i2c: E2 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: E2 0E 00 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: E2 0E 00 F4 0C 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 2B [11:03:34]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:03:34]wFMCommunicate OK [11:03:34]SAM_PROTO_GetShiftState done [11:03:34]FM_GetShiftState done [11:03:34]opened in 1713226843 [11:03:34]opened+sec_in_day 1713313243 [11:03:34]quantity*price = 100016 [11:03:34]sum+1 = 100017 [11:03:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 69 16.04.2024 11:03 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29795 ФПД: 253311264524319 1/tax-web-control/client/api/v1/ticket?date=20240416T110335&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29795&fm=253311264524319&tin=02508201610067®Number=0000138879044617&sum=100000 [11:03:35]StoreToDocumentArchive [11:03:35]shift 118 fd 29795 [11:03:35]save to /storage/0118/doc_00029795 [11:03:35]save last doc name /storage/0118/doc_00029795 to /storage/kkm_last_doc_name [11:03:35]save OK [11:03:35]Clear old archive folders... [11:03:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:03:35]tlvbuf is 0017FDC0 [11:03:35]SAM_PROTO_ClearQueue [11:03:35]wFMCommunicate request_size=4 [11:03:35]MH_SAM_APDU [11:03:35]CAPDU: 80 09 00 00 [11:03:35]Write to MH i2c: E2 08 00 01 0D 80 09 00 00 00 00 00 00 80 [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:35]Read from MH i2c: E2 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 01 0D 00 90 00 82 [11:03:35]RAPDU: 90 00 [11:03:35]wFMCommunicate OK [11:03:35]SAM_PROTO_ClearQueue done [11:03:35]KKMCreateOFDPacket [11:03:35]OFDProtocolAddRootSTLVToBuf [11:03:35]FM_MakeSignedData [11:03:35]FM_MakeSignedData [11:03:35]SAM_PROTO_SignData [11:03:35]wFMCommunicate request_size=4 [11:03:35]MH_SAM_APDU [11:03:35]CAPDU: 80 0D 01 02 [11:03:35]Write to MH i2c: E2 08 00 02 0D 80 0D 01 02 00 00 00 00 88 [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:35]Read from MH i2c: E2 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 02 0D 00 90 00 83 [11:03:35]RAPDU: 90 00 [11:03:35]wFMCommunicate OK [11:03:35]wFMCommunicate request_size=255 [11:03:35]MH_SAM_APDU [11:03:35]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 07 5B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 74 00 00 35 04 06 00 [11:03:35]Write to MH i2c: E2 02 01 03 0D 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 07 5B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 74 00 00 35 04 06 00 00 00 DC [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:35]Read from MH i2c: E2 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 03 0D 00 90 00 84 [11:03:35]RAPDU: 90 00 [11:03:35]wFMCommunicate OK [11:03:35]wFMCommunicate request_size=11 [11:03:35]MH_SAM_APDU [11:03:35]CAPDU: 80 0D 02 02 06 E6 62 9F F0 88 1F [11:03:35]Write to MH i2c: E2 0E 00 04 0D 80 0D 02 02 06 00 E6 62 9F F0 88 1F 00 00 15 [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:35]Read from MH i2c: E2 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 04 0D 00 90 00 85 [11:03:35]RAPDU: 90 00 [11:03:35]wFMCommunicate OK [11:03:35]wFMCommunicate request_size=4 [11:03:35]MH_SAM_APDU [11:03:35]CAPDU: 80 0D 03 02 [11:03:35]Write to MH i2c: E2 08 00 05 0D 80 0D 03 02 00 00 00 00 8D [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:35]Read from MH i2c: E2 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 0B 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 0B 00 05 0D 00 D1 A8 CA C0 6A 1E 7E 18 90 00 AF [11:03:35]RAPDU: D1 A8 CA C0 6A 1E 7E 18 90 00 [11:03:35]wFMCommunicate OK [11:03:35]SAM_PROTO_SignData done [11:03:35]FM_MakeSignedData done [11:03:35]CreateOFDProtocolMessage [11:03:35]wFMCommunicate request_size=4 [11:03:35]MH_SAM_APDU [11:03:35]CAPDU: 80 11 00 00 [11:03:35]Write to MH i2c: E2 08 00 06 0D 80 11 00 00 00 00 00 00 8D [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:35]Read from MH i2c: E2 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 17 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 17 00 06 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DC [11:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:03:35]wFMCommunicate OK [11:03:35]CreateOFDProtocolMessage done [11:03:35]OFDSenderStorePacket 29795 [11:03:35]StoreOFDPacket docnum=29795 [11:03:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 FC AE 08 01 BA C5 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 07 5B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 74 00 00 35 04 06 00 E6 62 9F F0 88 1F D1 A8 CA C0 6A 1E 7E 18 [11:03:35]CheckFolder [11:03:35]dirname=/storage/ofd_packets [11:03:35]CheckFolder done [11:03:35]ProducePacketName [11:03:35]name=ofd_packets/00029795 [11:03:35]NVStorageSaveData ofd_packets/00029795 [11:03:35]File name is /storage/ofd_packets/00029795 [11:03:35]Write 302 bytes [11:03:35]NVStorageSaveData done [11:03:35]OFDSenderStorePacket done [11:03:35]KKMCreateOFDPacket done [11:03:35]NVStorageSaveData kkm_last_timestamp [11:03:35]File name is /storage/kkm_last_timestamp [11:03:35]Write 4 bytes [11:03:35]NVStorageSaveData done [11:03:35]ExternCall_PrintAddStr [11:03:35]wPrintStart [11:03:35]Write to MH i2c: 01 00 00 07 0D 14 [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: 01 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: 01 07 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: 01 07 00 07 0D 00 00 00 00 00 FF 0F 29 [11:03:35]RasterBufferAndPrint [11:03:35]line Счет N : (1)348290 [11:03:35]line ИНН: 02508201610067 [11:03:35]line Контрольно-Кассовый Чек [11:03:35]line ПРОДАЖА [11:03:35]line ТРК (МРК, ГНК) : 31 [11:03:35]line Товар: 2710124130 [11:03:35]line SUPER-92-К-5 [11:03:35]line 15.200 * 65.80 [11:03:35]line = 1000.16 [11:03:35]line НДС 12% НСП 1% [11:03:35]line > о реализуемом товаре [11:03:35]line ОКРУГЛЕНИЕ: -0.16 [11:03:35]line ИТОГО: 1000.00 [11:03:35]line Внесено: 1000.00 [11:03:35]line СДАЧА: 0.00 [11:03:35]line НСП 1% : 8.85 [11:03:35]line НДС 12% : 106.21 [11:03:35]line Наличными: 1000.00 [11:03:35]line Безнал.: 0.00 [11:03:35]line Место: АЗС № 108 "Партнер Нефть" [11:03:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:03:35]line СНО: Общий режим [11:03:35]line Чек 69 16.04.2024 11:03 [11:03:35]line Смена: 118 ФФД: 1.0 [11:03:35]line ЗНМ: 0300000027 [11:03:35]line РНМ: 0000138879044617 [11:03:35]line Версия ККМ: 001 [11:03:35]line ФМ: 0000000000963154 [11:03:35]line ФД: 29795 [11:03:35]line ФПД: 253311264524319 [11:03:35]line 1/tax-web-control/client/api/v1/ticket?date=20240416T110335&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29795&fm=253311264524319&tin=02508201610067®Number=0000138879044617&sum=100000 [11:03:36]OFD Sender: Processing packet 29795 [packets to send 8, broken 7] [11:03:36]ProducePacketName [11:03:36]name=ofd_packets/00029795 [11:03:36]OFD Sender: To server: pG, [11:03:36]CommunicateWithHost lk.salyk.kg:30040 [11:03:36]ConnectInit lk.salyk.kg [11:03:36]written 0, free lines is 4095 [11:03:36]Connected sock=10 [11:03:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 FC AE 08 01 BA C5 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 07 5B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 74 00 00 35 04 06 00 E6 62 9F F0 88 1F D1 A8 CA C0 6A 1E 7E 18 [11:03:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8D 4D 47 00 1F 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 74 00 00 F4 03 04 00 A5 05 1E 66 B6 04 01 00 00 B1 47 E0 6B C7 55 CA D3 [11:03:36]CommunicateWithHost err = 0 [11:03:36]CheckOFDResponse [11:03:36]1017 (14) - 77093643461234 [11:03:36]1041 (16) - 0000000000963154 [11:03:36]1040 (4) - 29795 [11:03:36]1012 (4) - 16.04.2024 04:59 [11:03:36]1206 (1) - 0 [11:03:36]OFD Sender: Remove packet 29795 [11:03:36]ProducePacketName [11:03:36]name=ofd_packets/00029795 [11:03:36]NVStorageDeleteData [11:03:36]Write to MH i2c: 01 00 00 31 0D 3E [11:03:36]Write i2c OK [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: 01 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: 01 07 00 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: 01 07 00 31 0D 00 00 00 00 00 CD 0C 1E [11:03:36]RasterBufferAndPrint [11:03:36]line [11:03:36]line [11:03:36]line [11:03:36]line [11:03:36]line [11:03:36]written 0, free lines is 3282 [11:03:36]MH_Cut [11:03:36]Write to MH i2c: D1 01 00 38 0D 01 17 [11:03:36]Write i2c OK [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: D1 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: D1 01 00 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: D1 01 00 38 0D 00 16 [11:03:36]Write to MH i2c: 01 00 00 39 0D 46 [11:03:36]Write i2c OK [11:03:36]MH_I2C_Read... [11:03:37]OFD Sender: No OFD packet to send [11:03:37]*** Cut start [11:03:37]*** Partial cut [11:03:37]*** CUTSNS_PIN = 1 [11:03:37]*** CUTSNS_PIN = 0 [11:03:37]*** Brake cut motor [11:03:38]Read from MH i2c: 01 [11:03:38]MH_I2C_Read... [11:03:38]*** Stop cut motor [11:03:38]*** Cut end [11:03:38]Read from MH i2c: 01 07 00 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: 01 07 00 39 0D 00 00 00 00 00 FF 0F 5B [11:03:38]process_action close_receipt done [11:03:38]requested_data is exist [11:03:38]produce_requested_data [11:03:38]requested_item fm.sn is exist - process it [11:03:38]wFMCommunicate request_size=4 [11:03:38]MH_SAM_APDU [11:03:38]CAPDU: 80 11 00 00 [11:03:38]Write to MH i2c: E2 08 00 3A 0D 80 11 00 00 00 00 00 00 C1 [11:03:38]Write i2c OK [11:03:38]MH_I2C_Read... [11:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:38]Read from MH i2c: E2 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: E2 17 00 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: E2 17 00 3A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 10 [11:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:03:38]wFMCommunicate OK [11:03:38]requested_item fd.num is exist - process it [11:03:38]SAM_PROTO_GetFieldsCounters [11:03:38]wFMCommunicate request_size=4 [11:03:38]MH_SAM_APDU [11:03:38]CAPDU: 80 13 00 00 [11:03:38]Write to MH i2c: E2 08 00 3B 0D 80 13 00 00 00 00 00 00 C4 [11:03:38]Write i2c OK [11:03:38]MH_I2C_Read... [11:03:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:38]Read from MH i2c: E2 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: E2 62 00 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: E2 62 00 3B 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 63 74 00 00 0E 04 04 00 76 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 1E [11:03:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 63 74 00 00 0E 04 04 00 76 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 [11:03:38]wFMCommunicate OK [11:03:38]SAM_PROTO_GetFieldsCounters done [11:03:38]requested_item shift.num is exist - process it [11:03:38]requested_item shift.opened is exist - process it [11:03:38]req_shift_opened [11:03:38]FM_GetShiftState [11:03:38]SAM_PROTO_GetShiftState [11:03:38]wFMCommunicate request_size=4 [11:03:38]MH_SAM_APDU [11:03:38]CAPDU: 80 13 01 00 [11:03:38]Write to MH i2c: E2 08 00 3C 0D 80 13 01 00 00 00 00 00 C6 [11:03:38]Write i2c OK [11:03:38]MH_I2C_Read... [11:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:38]Read from MH i2c: E2 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: E2 0E 00 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: E2 0E 00 3C 0D 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 74 [11:03:38]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:03:38]wFMCommunicate OK [11:03:38]SAM_PROTO_GetShiftState done [11:03:38]FM_GetShiftState done [11:03:38]req_shift_opened done [11:03:38]requested_item shift.open_date is exist - process it [11:03:38]req_shift_open_date [11:03:38]req_shift_open_date done [11:03:38]produce_requested_data done [11:03:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29795,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:03:38]process_action_free close_receipt [11:03:38]json_value_free [11:03:38]json_value_free done [11:03:38]process_json_proto returns [11:03:38]Send response to host [11:03:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29795,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:03:38]free response buf [11:03:38]execute_script done [11:03:38]execute_script returns [11:03:38]free content buf [11:03:38]Sock 9.Close socket [11:03:38]Sock 9.Thread stoped [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07: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:04]accept exits with 7 [11:08:04]New connection [11:08:04]New thread 3067276644 created [11:08:04]Thread 3067133284 joined [11:08:04]Waiting for new connection... [11:08:04] Sock 7.Parse request [11:08:04]Sock 7.Check first char [11:08:04]Sock 7.First char is OK [11:08:04]request: POST /json_proto HTTP/1.0 [11:08:04]Method: POST [11:08:04]URL: /json_proto [11:08:04]Method is POST - this is cgi request [11:08:04]url: /json_proto [11:08:04]query_string will be loaded in cgi processing [11:08:04]execute_cgi json_proto POST (null) [11:08:04]execute_cgi path=json_proto method=POST [11:08:04]POST find Content-Length [11:08:04]Host: 172.17.33.3:8080 [11:08:04]Content-Length: 841 [11:08:04]Content-Type: application/json [11:08:04] [11:08:04]POST finish read [11:08:04]Found Content-Length = 841 [11:08:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 12.480, "sum" : 808.70, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 808.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:04]execute_script... [11:08:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 12.480, "sum" : 808.70, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 808.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:04]POST & json_proto [11:08:04]process_json_proto [11:08:04]json parsed OK: [11:08:04]protocol is kg_v1.0 [11:08:04]action value=close_receipt [11:08:04]process_action close_receipt [11:08:04]cmd_close_receipt [11:08:04]MH_GetDate [11:08:04]Write to MH i2c: F0 00 00 3D 0D 39 [11:08:04]Write i2c OK [11:08:04]MH_I2C_Read... [11:08:04]Read from MH i2c: F0 [11:08:04]MH_I2C_Read... [11:08:04]Read from MH i2c: F0 09 00 [11:08:04]MH_I2C_Read... [11:08:04]Read from MH i2c: F0 09 00 3D 0D 00 15 5C 1E 66 23 5B 8F 65 A9 [11:08:04]GetLastDocTimeStamp 1713265415 [11:08:04]current date 1713265685 [11:08:04]FM_GetShiftState [11:08:04]SAM_PROTO_GetShiftState [11:08:04]wFMCommunicate request_size=4 [11:08:04]MH_SAM_APDU [11:08:04]CAPDU: 80 13 01 00 [11:08:04]Write to MH i2c: E2 08 00 3E 0D 80 13 01 00 00 00 00 00 C8 [11:08:04]Write i2c OK [11:08:04]MH_I2C_Read... [11:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:04]Read from MH i2c: E2 [11:08:04]MH_I2C_Read... [11:08:04]Read from MH i2c: E2 0E 00 [11:08:04]MH_I2C_Read... [11:08:04]Read from MH i2c: E2 0E 00 3E 0D 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 76 [11:08:04]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:08:04]wFMCommunicate OK [11:08:04]SAM_PROTO_GetShiftState done [11:08:04]FM_GetShiftState done [11:08:04]opened in 1713226843 [11:08:04]opened+sec_in_day 1713313243 [11:08:04]quantity*price = 80870 [11:08:04]sum+1 = 80871 [11:08:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 808.70 НСП 1% : 7.16 НДС 12% : 85.88 Наличными: 0.00 Безнал.: 808.70 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 70 16.04.2024 11:08 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29796 ФПД: 121936128153871 1/tax-web-control/client/api/v1/ticket?date=20240416T110805&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29796&fm=121936128153871&tin=02508201610067®Number=0000138879044617&sum=80870 [11:08:05]StoreToDocumentArchive [11:08:05]shift 118 fd 29796 [11:08:05]save to /storage/0118/doc_00029796 [11:08:05]save last doc name /storage/0118/doc_00029796 to /storage/kkm_last_doc_name [11:08:05]save OK [11:08:05]Clear old archive folders... [11:08:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:05]tlvbuf is 002134A0 [11:08:05]SAM_PROTO_ClearQueue [11:08:05]wFMCommunicate request_size=4 [11:08:05]MH_SAM_APDU [11:08:05]CAPDU: 80 09 00 00 [11:08:05]Write to MH i2c: E2 08 00 4B 0D 80 09 00 00 00 00 00 00 CA [11:08:05]Write i2c OK [11:08:05]MH_I2C_Read... [11:08:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:05]Read from MH i2c: E2 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 03 00 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 03 00 4B 0D 00 90 00 CC [11:08:05]RAPDU: 90 00 [11:08:05]wFMCommunicate OK [11:08:05]SAM_PROTO_ClearQueue done [11:08:05]KKMCreateOFDPacket [11:08:05]OFDProtocolAddRootSTLVToBuf [11:08:05]FM_MakeSignedData [11:08:05]FM_MakeSignedData [11:08:05]SAM_PROTO_SignData [11:08:05]wFMCommunicate request_size=4 [11:08:05]MH_SAM_APDU [11:08:05]CAPDU: 80 0D 01 02 [11:08:05]Write to MH i2c: E2 08 00 4C 0D 80 0D 01 02 00 00 00 00 D2 [11:08:05]Write i2c OK [11:08:05]MH_I2C_Read... [11:08:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:05]Read from MH i2c: E2 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 03 00 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 03 00 4C 0D 00 90 00 CD [11:08:05]RAPDU: 90 00 [11:08:05]wFMCommunicate OK [11:08:05]wFMCommunicate request_size=255 [11:08:05]MH_SAM_APDU [11:08:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 30 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 E6 3B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 3B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 3B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 15 5C 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 74 00 00 35 04 06 00 6E [11:08:05]Write to MH i2c: E2 02 01 4D 0D 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 C0 30 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 E6 3B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 3B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 3B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 15 5C 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 74 00 00 35 04 06 00 6E 00 00 2A [11:08:05]Write i2c OK [11:08:05]MH_I2C_Read... [11:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:06]Read from MH i2c: E2 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: E2 03 00 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: E2 03 00 4D 0D 00 90 00 CE [11:08:06]RAPDU: 90 00 [11:08:06]wFMCommunicate OK [11:08:06]wFMCommunicate request_size=10 [11:08:06]MH_SAM_APDU [11:08:06]CAPDU: 80 0D 02 02 05 E6 77 9A 99 0F [11:08:06]Write to MH i2c: E2 0D 00 4E 0D 80 0D 02 02 05 00 E6 77 9A 99 0F 00 00 7E [11:08:06]Write i2c OK [11:08:06]MH_I2C_Read... [11:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:06]Read from MH i2c: E2 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: E2 03 00 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: E2 03 00 4E 0D 00 90 00 CF [11:08:06]RAPDU: 90 00 [11:08:06]wFMCommunicate OK [11:08:06]wFMCommunicate request_size=4 [11:08:06]MH_SAM_APDU [11:08:06]CAPDU: 80 0D 03 02 [11:08:06]Write to MH i2c: E2 08 00 4F 0D 80 0D 03 02 00 00 00 00 D7 [11:08:06]Write i2c OK [11:08:06]MH_I2C_Read... [11:08:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:06]Read from MH i2c: E2 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: E2 0B 00 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: E2 0B 00 4F 0D 00 2D 8A 06 90 3A 14 1D 51 90 00 E1 [11:08:06]RAPDU: 2D 8A 06 90 3A 14 1D 51 90 00 [11:08:06]wFMCommunicate OK [11:08:06]SAM_PROTO_SignData done [11:08:06]FM_MakeSignedData done [11:08:06]CreateOFDProtocolMessage [11:08:06]wFMCommunicate request_size=4 [11:08:06]MH_SAM_APDU [11:08:06]CAPDU: 80 11 00 00 [11:08:06]Write to MH i2c: E2 08 00 50 0D 80 11 00 00 00 00 00 00 D7 [11:08:06]Write i2c OK [11:08:06]MH_I2C_Read... [11:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:06]Read from MH i2c: E2 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: E2 17 00 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: E2 17 00 50 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 26 [11:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:08:06]wFMCommunicate OK [11:08:06]CreateOFDProtocolMessage done [11:08:06]OFDSenderStorePacket 29796 [11:08:06]StoreOFDPacket docnum=29796 [11:08:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 97 91 07 01 C0 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 30 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 E6 3B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 3B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 3B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 15 5C 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 74 00 00 35 04 06 00 6E E6 77 9A 99 0F 2D 8A 06 90 3A 14 1D 51 [11:08:06]CheckFolder [11:08:06]dirname=/storage/ofd_packets [11:08:06]CheckFolder done [11:08:06]ProducePacketName [11:08:06]name=ofd_packets/00029796 [11:08:06]NVStorageSaveData ofd_packets/00029796 [11:08:06]File name is /storage/ofd_packets/00029796 [11:08:06]Write 301 bytes [11:08:06]NVStorageSaveData done [11:08:06]OFDSenderStorePacket done [11:08:06]KKMCreateOFDPacket done [11:08:06]NVStorageSaveData kkm_last_timestamp [11:08:06]File name is /storage/kkm_last_timestamp [11:08:06]Write 4 bytes [11:08:06]NVStorageSaveData done [11:08:06]ExternCall_PrintAddStr [11:08:06]wPrintStart [11:08:06]Write to MH i2c: 01 00 00 51 0D 5E [11:08:06]Write i2c OK [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: 01 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: 01 07 00 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: 01 07 00 51 0D 00 00 00 00 00 FF 0F 73 [11:08:06]RasterBufferAndPrint [11:08:06]line Счет N : (1)348291 [11:08:06]line ИНН: 02508201610067 [11:08:06]line Контрольно-Кассовый Чек [11:08:06]line ПРОДАЖА [11:08:06]line ТРК (МРК, ГНК) : 13 [11:08:06]line Товар: 2710124130 [11:08:06]line Аи-92-К-5 [11:08:06]line 12.480 * 64.80 [11:08:06]line = 808.70 [11:08:06]line НДС 12% НСП 1% [11:08:06]line > о реализуемом товаре [11:08:06]line ИТОГО: 808.70 [11:08:06]line НСП 1% : 7.16 [11:08:06]line НДС 12% : 85.88 [11:08:06]line Наличными: 0.00 [11:08:06]line Безнал.: 808.70 [11:08:06]line Место: АЗС № 108 "Партнер Нефть" [11:08:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:08:06]line СНО: Общий режим [11:08:06]line Чек 70 16.04.2024 11:08 [11:08:06]line Смена: 118 ФФД: 1.0 [11:08:06]line ЗНМ: 0300000027 [11:08:06]line РНМ: 0000138879044617 [11:08:06]line Версия ККМ: 001 [11:08:06]line Платежная система: АКБ Кыргызстан [11:08:06]line ФМ: 0000000000963154 [11:08:06]line ФД: 29796 [11:08:06]line ФПД: 121936128153871 [11:08:06]line 1/tax-web-control/client/api/v1/ticket?date=20240416T110805&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29796&fm=121936128153871&tin=02508201610067®Number=0000138879044617&sum=80870 [11:08:06]OFD Sender: Processing packet 29796 [packets to send 8, broken 7] [11:08:06]ProducePacketName [11:08:06]name=ofd_packets/00029796 [11:08:06]OFD Sender: To server: pG, [11:08:06]CommunicateWithHost lk.salyk.kg:30040 [11:08:06]ConnectInit lk.salyk.kg [11:08:06]written 0, free lines is 4095 [11:08:06]Connected sock=10 [11:08:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 97 91 07 01 C0 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 30 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 E6 3B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 3B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 3B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 15 5C 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 74 00 00 35 04 06 00 6E E6 77 9A 99 0F 2D 8A 06 90 3A 14 1D 51 [11:08:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EC 6D 47 00 EC 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 36 33 31 35 34 10 04 04 00 64 74 00 00 F4 03 04 00 B4 06 1E 66 B6 04 01 00 00 6A 0C C1 B0 0B E8 81 D1 [11:08:06]CommunicateWithHost err = 0 [11:08:06]CheckOFDResponse [11:08:06]1017 (14) - 77093643461234 [11:08:06]1041 (16) - 0000000000963154 [11:08:06]1040 (4) - 29796 [11:08:06]1012 (4) - 16.04.2024 05:03 [11:08:06]1206 (1) - 0 [11:08:06]OFD Sender: Remove packet 29796 [11:08:06]ProducePacketName [11:08:06]name=ofd_packets/00029796 [11:08:06]NVStorageDeleteData [11:08:06]Write to MH i2c: 01 00 00 7A 0D 87 [11:08:06]Write i2c OK [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: 01 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: 01 07 00 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: 01 07 00 7A 0D 00 00 00 00 00 DF 0C 79 [11:08:07]RasterBufferAndPrint [11:08:07]line [11:08:07]line [11:08:07]line [11:08:07]line [11:08:07]line [11:08:07]written 0, free lines is 3301 [11:08:07]MH_Cut [11:08:07]Write to MH i2c: D1 01 00 81 0D 01 60 [11:08:07]Write i2c OK [11:08:07]MH_I2C_Read... [11:08:07]Read from MH i2c: D1 [11:08:07]MH_I2C_Read... [11:08:07]Read from MH i2c: D1 01 00 [11:08:07]MH_I2C_Read... [11:08:07]Read from MH i2c: D1 01 00 81 0D 00 5F [11:08:07]Write to MH i2c: 01 00 00 82 0D 8F [11:08:07]Write i2c OK [11:08:07]MH_I2C_Read... [11:08:07]OFD Sender: No OFD packet to send [11:08:07]*** Cut start [11:08:07]*** Partial cut [11:08:07]*** CUTSNS_PIN = 1 [11:08:07]*** CUTSNS_PIN = 0 [11:08:08]*** Brake cut motor [11:08:08]Read from MH i2c: 01 [11:08:08]MH_I2C_Read... [11:08:08]*** Stop cut motor [11:08:08]*** Cut end [11:08:08]Read from MH i2c: 01 07 00 [11:08:08]MH_I2C_Read... [11:08:08]Read from MH i2c: 01 07 00 82 0D 00 00 00 00 00 FF 0F A4 [11:08:08]process_action close_receipt done [11:08:08]requested_data is exist [11:08:08]produce_requested_data [11:08:08]requested_item fm.sn is exist - process it [11:08:08]wFMCommunicate request_size=4 [11:08:08]MH_SAM_APDU [11:08:08]CAPDU: 80 11 00 00 [11:08:08]Write to MH i2c: E2 08 00 83 0D 80 11 00 00 00 00 00 00 0A [11:08:08]Write i2c OK [11:08:08]MH_I2C_Read... [11:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:08]Read from MH i2c: E2 [11:08:08]MH_I2C_Read... [11:08:08]Read from MH i2c: E2 17 00 [11:08:08]MH_I2C_Read... [11:08:08]Read from MH i2c: E2 17 00 83 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 59 [11:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:08:08]wFMCommunicate OK [11:08:08]requested_item fd.num is exist - process it [11:08:08]SAM_PROTO_GetFieldsCounters [11:08:08]wFMCommunicate request_size=4 [11:08:08]MH_SAM_APDU [11:08:08]CAPDU: 80 13 00 00 [11:08:08]Write to MH i2c: E2 08 00 84 0D 80 13 00 00 00 00 00 00 0D [11:08:08]Write i2c OK [11:08:08]MH_I2C_Read... [11:08:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:08]Read from MH i2c: E2 [11:08:08]MH_I2C_Read... [11:08:08]Read from MH i2c: E2 62 00 [11:08:08]MH_I2C_Read... [11:08:08]Read from MH i2c: E2 62 00 84 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 64 74 00 00 0E 04 04 00 76 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 6B [11:08:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 64 74 00 00 0E 04 04 00 76 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 [11:08:08]wFMCommunicate OK [11:08:08]SAM_PROTO_GetFieldsCounters done [11:08:08]requested_item shift.num is exist - process it [11:08:08]requested_item shift.opened is exist - process it [11:08:08]req_shift_opened [11:08:08]FM_GetShiftState [11:08:08]SAM_PROTO_GetShiftState [11:08:08]wFMCommunicate request_size=4 [11:08:08]MH_SAM_APDU [11:08:08]CAPDU: 80 13 01 00 [11:08:08]Write to MH i2c: E2 08 00 85 0D 80 13 01 00 00 00 00 00 0F [11:08:08]Write i2c OK [11:08:08]MH_I2C_Read... [11:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:08]Read from MH i2c: E2 [11:08:08]MH_I2C_Read... [11:08:08]Read from MH i2c: E2 0E 00 [11:08:08]MH_I2C_Read... [11:08:08]Read from MH i2c: E2 0E 00 85 0D 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 BD [11:08:08]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:08:08]wFMCommunicate OK [11:08:08]SAM_PROTO_GetShiftState done [11:08:08]FM_GetShiftState done [11:08:08]req_shift_opened done [11:08:08]requested_item shift.open_date is exist - process it [11:08:08]req_shift_open_date [11:08:08]req_shift_open_date done [11:08:08]produce_requested_data done [11:08:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29796,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:08:08]process_action_free close_receipt [11:08:08]json_value_free [11:08:08]json_value_free done [11:08:08]process_json_proto returns [11:08:08]Send response to host [11:08:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29796,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:08:08]free response buf [11:08:08]execute_script done [11:08:08]execute_script returns [11:08:08]free content buf [11:08:08]Sock 7.Close socket [11:08:08]Sock 7.Thread stoped [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:26]accept exits with 9 [11:08:26]New connection [11:08:26]New thread 3067133284 created [11:08:26]Thread 3067276644 joined [11:08:26]Waiting for new connection... [11:08:26] Sock 9.Parse request [11:08:26]Sock 9.Check first char [11:08:26]Sock 9.First char is OK [11:08:26]request: POST /json_proto HTTP/1.0 [11:08:26]Method: POST [11:08:26]URL: /json_proto [11:08:26]Method is POST - this is cgi request [11:08:26]url: /json_proto [11:08:26]query_string will be loaded in cgi processing [11:08:26]execute_cgi json_proto POST (null) [11:08:26]execute_cgi path=json_proto method=POST [11:08:26]POST find Content-Length [11:08:26]Host: 172.17.33.3:8080 [11:08:26]Content-Length: 812 [11:08:26]Content-Type: application/json [11:08:26] [11:08:26]POST finish read [11:08:26]Found Content-Length = 812 [11:08:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 59.720, "sum" : 3929.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3929.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:26]execute_script... [11:08:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 59.720, "sum" : 3929.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3929.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:26]POST & json_proto [11:08:26]process_json_proto [11:08:26]json parsed OK: [11:08:26]protocol is kg_v1.0 [11:08:26]action value=close_receipt [11:08:26]process_action close_receipt [11:08:26]cmd_close_receipt [11:08:26]MH_GetDate [11:08:26]Write to MH i2c: F0 00 00 86 0D 82 [11:08:26]Write i2c OK [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: F0 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: F0 09 00 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: F0 09 00 86 0D 00 2C 5C 1E 66 23 5B 8F 65 09 [11:08:26]GetLastDocTimeStamp 1713265685 [11:08:26]current date 1713265708 [11:08:26]FM_GetShiftState [11:08:26]SAM_PROTO_GetShiftState [11:08:26]wFMCommunicate request_size=4 [11:08:26]MH_SAM_APDU [11:08:26]CAPDU: 80 13 01 00 [11:08:26]Write to MH i2c: E2 08 00 87 0D 80 13 01 00 00 00 00 00 11 [11:08:26]Write i2c OK [11:08:26]MH_I2C_Read... [11:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:26]Read from MH i2c: E2 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 0E 00 [11:08:26]MH_I2C_Read... [11:08:26]Read from MH i2c: E2 0E 00 87 0D 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 BF [11:08:26]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:08:26]wFMCommunicate OK [11:08:26]SAM_PROTO_GetShiftState done [11:08:26]FM_GetShiftState done [11:08:26]opened in 1713226843 [11:08:26]opened+sec_in_day 1713313243 [11:08:26]quantity*price = 392957 [11:08:26]sum+1 = 392959 [11:08:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3929.58 НСП 1% : 34.77 НДС 12% : 417.30 Наличными: 0.00 Безнал.: 3929.58 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 71 16.04.2024 11:08 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29797 ФПД: 180476390804899 1/tax-web-control/client/api/v1/ticket?date=20240416T110828&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29797&fm=180476390804899&tin=02508201610067®Number=0000138879044617&sum=392958 [11:08:27]StoreToDocumentArchive [11:08:27]shift 118 fd 29797 [11:08:27]save to /storage/0118/doc_00029797 [11:08:27]save last doc name /storage/0118/doc_00029797 to /storage/kkm_last_doc_name [11:08:27]save OK [11:08:27]Clear old archive folders... [11:08:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:08:27]tlvbuf is 00213370 [11:08:27]SAM_PROTO_ClearQueue [11:08:27]wFMCommunicate request_size=4 [11:08:27]MH_SAM_APDU [11:08:27]CAPDU: 80 09 00 00 [11:08:27]Write to MH i2c: E2 08 00 94 0D 80 09 00 00 00 00 00 00 13 [11:08:27]Write i2c OK [11:08:27]MH_I2C_Read... [11:08:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:27]Read from MH i2c: E2 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: E2 03 00 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: E2 03 00 94 0D 00 90 00 15 [11:08:27]RAPDU: 90 00 [11:08:27]wFMCommunicate OK [11:08:27]SAM_PROTO_ClearQueue done [11:08:27]KKMCreateOFDPacket [11:08:27]OFDProtocolAddRootSTLVToBuf [11:08:27]FM_MakeSignedData [11:08:27]FM_MakeSignedData [11:08:27]SAM_PROTO_SignData [11:08:27]wFMCommunicate request_size=4 [11:08:27]MH_SAM_APDU [11:08:27]CAPDU: 80 0D 01 02 [11:08:27]Write to MH i2c: E2 08 00 95 0D 80 0D 01 02 00 00 00 00 1B [11:08:27]Write i2c OK [11:08:27]MH_I2C_Read... [11:08:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:28]Read from MH i2c: E2 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 03 00 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 03 00 95 0D 00 90 00 16 [11:08:28]RAPDU: 90 00 [11:08:28]wFMCommunicate OK [11:08:28]wFMCommunicate request_size=255 [11:08:28]MH_SAM_APDU [11:08: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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 E9 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 FE FE 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FE FE 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 A3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FE FE 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 2C 5C 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 74 00 00 35 04 06 00 [11:08:28]Write to MH i2c: E2 02 01 96 0D 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 E9 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 FE FE 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FE FE 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 A3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FE FE 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 2C 5C 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 74 00 00 35 04 06 00 00 00 D6 [11:08:28]Write i2c OK [11:08:28]MH_I2C_Read... [11:08:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:28]Read from MH i2c: E2 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 03 00 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 03 00 96 0D 00 90 00 17 [11:08:28]RAPDU: 90 00 [11:08:28]wFMCommunicate OK [11:08:28]wFMCommunicate request_size=11 [11:08:28]MH_SAM_APDU [11:08:28]CAPDU: 80 0D 02 02 06 A4 24 6F 2A 0D A3 [11:08:28]Write to MH i2c: E2 0E 00 97 0D 80 0D 02 02 06 00 A4 24 6F 2A 0D A3 00 00 3B [11:08:28]Write i2c OK [11:08:28]MH_I2C_Read... [11:08:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:28]Read from MH i2c: E2 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 03 00 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 03 00 97 0D 00 90 00 18 [11:08:28]RAPDU: 90 00 [11:08:28]wFMCommunicate OK [11:08:28]wFMCommunicate request_size=4 [11:08:28]MH_SAM_APDU [11:08:28]CAPDU: 80 0D 03 02 [11:08:28]Write to MH i2c: E2 08 00 98 0D 80 0D 03 02 00 00 00 00 20 [11:08:28]Write i2c OK [11:08:28]MH_I2C_Read... [11:08:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:28]Read from MH i2c: E2 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 0B 00 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 0B 00 98 0D 00 77 56 F3 FA 3A 72 3B 99 90 00 5B [11:08:28]RAPDU: 77 56 F3 FA 3A 72 3B 99 90 00 [11:08:28]wFMCommunicate OK [11:08:28]SAM_PROTO_SignData done [11:08:28]FM_MakeSignedData done [11:08:28]CreateOFDProtocolMessage [11:08:28]wFMCommunicate request_size=4 [11:08:28]MH_SAM_APDU [11:08:28]CAPDU: 80 11 00 00 [11:08:28]Write to MH i2c: E2 08 00 99 0D 80 11 00 00 00 00 00 00 20 [11:08:28]Write i2c OK [11:08:28]MH_I2C_Read... [11:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:28]Read from MH i2c: E2 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 17 00 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 17 00 99 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6F [11:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:08:28]wFMCommunicate OK [11:08:28]CreateOFDProtocolMessage done [11:08:28]OFDSenderStorePacket 29797 [11:08:28]StoreOFDPacket docnum=29797 [11:08:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 56 26 08 01 6C 1D 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 E9 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 FE FE 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FE FE 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 A3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FE FE 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 2C 5C 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 74 00 00 35 04 06 00 A4 24 6F 2A 0D A3 77 56 F3 FA 3A 72 3B 99 [11:08:28]CheckFolder [11:08:28]dirname=/storage/ofd_packets [11:08:28]CheckFolder done [11:08:28]ProducePacketName [11:08:28]name=ofd_packets/00029797 [11:08:28]NVStorageSaveData ofd_packets/00029797 [11:08:28]File name is /storage/ofd_packets/00029797 [11:08:28]Write 302 bytes [11:08:28]NVStorageSaveData done [11:08:28]OFDSenderStorePacket done [11:08:28]KKMCreateOFDPacket done [11:08:28]NVStorageSaveData kkm_last_timestamp [11:08:28]File name is /storage/kkm_last_timestamp [11:08:28]Write 4 bytes [11:08:28]NVStorageSaveData done [11:08:28]OFD Sender: Processing packet 29797 [packets to send 8, broken 7] [11:08:28]ProducePacketName [11:08:28]name=ofd_packets/00029797 [11:08:28]OFD Sender: To server: pG, [11:08:28]CommunicateWithHost lk.salyk.kg:30040 [11:08:28]ConnectInit lk.salyk.kg [11:08:28]ExternCall_PrintAddStr [11:08:28]wPrintStart [11:08:28]Write to MH i2c: 01 00 00 9A 0D A7 [11:08:28]Write i2c OK [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: 01 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: 01 07 00 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: 01 07 00 9A 0D 00 00 00 00 00 FF 0F BC [11:08:28]RasterBufferAndPrint [11:08:28]line Счет N : (1)348292 [11:08:28]line ИНН: 02508201610067 [11:08:28]line Контрольно-Кассовый Чек [11:08:28]line ПРОДАЖА [11:08:28]line ТРК (МРК, ГНК) : 31 [11:08:28]line Товар: 2710124130 [11:08:28]line SUPER-92-К-5 [11:08:28]line 59.720 * 65.80 [11:08:28]line = 3929.58 [11:08:28]line НДС 12% НСП 1% [11:08:28]line > о реализуемом товаре [11:08:28]line ИТОГО: 3929.58 [11:08:28]line НСП 1% : 34.77 [11:08:28]line НДС 12% : 417.30 [11:08:28]line Наличными: 0.00 [11:08:28]line Безнал.: 3929.58 [11:08:28]line Место: АЗС № 108 "Партнер Нефть" [11:08:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:08:28]line СНО: Общий режим [11:08:28]line Чек 71 16.04.2024 11:08 [11:08:28]line Смена: 118 ФФД: 1.0 [11:08:28]line ЗНМ: 0300000027 [11:08:28]line РНМ: 0000138879044617 [11:08:28]line Версия ККМ: 001 [11:08:28]line Платежная система: Бакай Банк [11:08:28]line ФМ: 0000000000963154 [11:08:28]line ФД: 29797 [11:08:28]line ФПД: 180476390804899 [11:08:28]line 1/tax-web-control/client/api/v1/ticket?date=20240416T110828&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29797&fm=180476390804899&tin=02508201610067®Number=0000138879044617&sum=392958 [11:08:28]Connected sock=11 [11:08:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 56 26 08 01 6C 1D 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 E9 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 FE FE 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FE FE 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 A3 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FE FE 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 2C 5C 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 74 00 00 35 04 06 00 A4 24 6F 2A 0D A3 77 56 F3 FA 3A 72 3B 99 [11:08:28]written 0, free lines is 4095 [11:08:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3B 7F 47 00 EB F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 74 00 00 F4 03 04 00 CA 06 1E 66 B6 04 01 00 00 CD 2B B1 CA FB 61 97 11 [11:08:28]CommunicateWithHost err = 0 [11:08:28]CheckOFDResponse [11:08:28]1017 (14) - 77093643461234 [11:08:28]1041 (16) - 0000000000963154 [11:08:28]1040 (4) - 29797 [11:08:28]1012 (4) - 16.04.2024 05:04 [11:08:28]1206 (1) - 0 [11:08:28]OFD Sender: Remove packet 29797 [11:08:28]ProducePacketName [11:08:28]name=ofd_packets/00029797 [11:08:28]NVStorageDeleteData [11:08:29]Write to MH i2c: 01 00 00 C3 0D D0 [11:08:29]Write i2c OK [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: 01 [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: 01 07 00 [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: 01 07 00 C3 0D 00 00 00 00 00 F1 0C D4 [11:08:29]RasterBufferAndPrint [11:08:29]line [11:08:29]line [11:08:29]line [11:08:29]line [11:08:29]line [11:08:29]written 0, free lines is 3320 [11:08:29]MH_Cut [11:08:29]Write to MH i2c: D1 01 00 CA 0D 01 A9 [11:08:29]Write i2c OK [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: D1 [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: D1 01 00 [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: D1 01 00 CA 0D 00 A8 [11:08:29]Write to MH i2c: 01 00 00 CB 0D D8 [11:08:29]Write i2c OK [11:08:29]MH_I2C_Read... [11:08:29]OFD Sender: No OFD packet to send [11:08:30]*** Cut start [11:08:30]*** Partial cut [11:08:30]*** CUTSNS_PIN = 1 [11:08:30]*** CUTSNS_PIN = 0 [11:08:30]*** Brake cut motor [11:08:30]Read from MH i2c: 01 [11:08:30]MH_I2C_Read... [11:08:30]*** Stop cut motor [11:08:30]*** Cut end [11:08:30]Read from MH i2c: 01 07 00 [11:08:30]MH_I2C_Read... [11:08:30]Read from MH i2c: 01 07 00 CB 0D 00 00 00 00 00 FF 0F ED [11:08:30]process_action close_receipt done [11:08:30]requested_data is exist [11:08:30]produce_requested_data [11:08:30]requested_item fm.sn is exist - process it [11:08:30]wFMCommunicate request_size=4 [11:08:30]MH_SAM_APDU [11:08:30]CAPDU: 80 11 00 00 [11:08:30]Write to MH i2c: E2 08 00 CC 0D 80 11 00 00 00 00 00 00 53 [11:08:30]Write i2c OK [11:08:30]MH_I2C_Read... [11:08:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:30]Read from MH i2c: E2 [11:08:30]MH_I2C_Read... [11:08:30]Read from MH i2c: E2 17 00 [11:08:30]MH_I2C_Read... [11:08:30]Read from MH i2c: E2 17 00 CC 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A2 [11:08:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:08:30]wFMCommunicate OK [11:08:30]requested_item fd.num is exist - process it [11:08:30]SAM_PROTO_GetFieldsCounters [11:08:30]wFMCommunicate request_size=4 [11:08:30]MH_SAM_APDU [11:08:30]CAPDU: 80 13 00 00 [11:08:30]Write to MH i2c: E2 08 00 CD 0D 80 13 00 00 00 00 00 00 56 [11:08:30]Write i2c OK [11:08:30]MH_I2C_Read... [11:08:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:30]Read from MH i2c: E2 [11:08:30]MH_I2C_Read... [11:08:30]Read from MH i2c: E2 62 00 [11:08:30]MH_I2C_Read... [11:08:30]Read from MH i2c: E2 62 00 CD 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 65 74 00 00 0E 04 04 00 76 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 B8 [11:08:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 65 74 00 00 0E 04 04 00 76 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 [11:08:30]wFMCommunicate OK [11:08:30]SAM_PROTO_GetFieldsCounters done [11:08:30]requested_item shift.num is exist - process it [11:08:30]requested_item shift.opened is exist - process it [11:08:30]req_shift_opened [11:08:30]FM_GetShiftState [11:08:30]SAM_PROTO_GetShiftState [11:08:30]wFMCommunicate request_size=4 [11:08:30]MH_SAM_APDU [11:08:30]CAPDU: 80 13 01 00 [11:08:30]Write to MH i2c: E2 08 00 CE 0D 80 13 01 00 00 00 00 00 58 [11:08:30]Write i2c OK [11:08:30]MH_I2C_Read... [11:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:30]Read from MH i2c: E2 [11:08:30]MH_I2C_Read... [11:08:30]Read from MH i2c: E2 0E 00 [11:08:30]MH_I2C_Read... [11:08:30]Read from MH i2c: E2 0E 00 CE 0D 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 06 [11:08:30]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:08:30]wFMCommunicate OK [11:08:30]SAM_PROTO_GetShiftState done [11:08:30]FM_GetShiftState done [11:08:30]req_shift_opened done [11:08:30]requested_item shift.open_date is exist - process it [11:08:30]req_shift_open_date [11:08:30]req_shift_open_date done [11:08:30]produce_requested_data done [11:08:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29797,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:08:30]process_action_free close_receipt [11:08:30]json_value_free [11:08:30]json_value_free done [11:08:30]process_json_proto returns [11:08:30]Send response to host [11:08:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29797,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:08:30]free response buf [11:08:30]execute_script done [11:08:30]execute_script returns [11:08:30]free content buf [11:08:30]Sock 9.Close socket [11:08:30]Sock 9.Thread stoped [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:55]accept exits with 7 [11:14:55]New connection [11:14:55]New thread 3067276644 created [11:14:55]Thread 3067133284 joined [11:14:55]Waiting for new connection... [11:14:55] Sock 7.Parse request [11:14:55]Sock 7.Check first char [11:14:55]Sock 7.First char is OK [11:14:55]request: POST /json_proto HTTP/1.0 [11:14:55]Method: POST [11:14:55]URL: /json_proto [11:14:55]Method is POST - this is cgi request [11:14:55]url: /json_proto [11:14:55]query_string will be loaded in cgi processing [11:14:55]execute_cgi json_proto POST (null) [11:14:55]execute_cgi path=json_proto method=POST [11:14:55]POST find Content-Length [11:14:55]Host: 172.17.33.3:8080 [11:14:55]Content-Length: 677 [11:14:55]Content-Type: application/json [11:14:55] [11:14:55]POST finish read [11:14:55]Found Content-Length = 677 [11:14:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.950, "sum" : 450.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:55]execute_script... [11:14:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.950, "sum" : 450.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:55]POST & json_proto [11:14:55]process_json_proto [11:14:55]json parsed OK: [11:14:55]protocol is kg_v1.0 [11:14:55]action value=close_receipt [11:14:55]process_action close_receipt [11:14:55]cmd_close_receipt [11:14:55]MH_GetDate [11:14:55]Write to MH i2c: F0 00 00 CF 0D CB [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: F0 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: F0 09 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: F0 09 00 CF 0D 00 B0 5D 1E 66 23 5B 8F 65 D7 [11:14:55]GetLastDocTimeStamp 1713265708 [11:14:55]current date 1713266096 [11:14:55]FM_GetShiftState [11:14:55]SAM_PROTO_GetShiftState [11:14:55]wFMCommunicate request_size=4 [11:14:55]MH_SAM_APDU [11:14:55]CAPDU: 80 13 01 00 [11:14:55]Write to MH i2c: E2 08 00 D0 0D 80 13 01 00 00 00 00 00 5A [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:55]Read from MH i2c: E2 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 0E 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 0E 00 D0 0D 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 08 [11:14:55]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:14:55]wFMCommunicate OK [11:14:55]SAM_PROTO_GetShiftState done [11:14:55]FM_GetShiftState done [11:14:55]opened in 1713226843 [11:14:55]opened+sec_in_day 1713313243 [11:14:55]quantity*price = 45036 [11:14:55]sum+1 = 45037 [11:14:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.83 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 72 16.04.2024 11:14 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29798 ФПД: 10409659650432 1/tax-web-control/client/api/v1/ticket?date=20240416T111456&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29798&fm=10409659650432&tin=02508201610067®Number=0000138879044617&sum=45000 [11:14:56]StoreToDocumentArchive [11:14:56]shift 118 fd 29798 [11:14:56]save to /storage/0118/doc_00029798 [11:14:56]save last doc name /storage/0118/doc_00029798 to /storage/kkm_last_doc_name [11:14:56]save OK [11:14:56]Clear old archive folders... [11:14:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:56]tlvbuf is 0018E7F0 [11:14:56]SAM_PROTO_ClearQueue [11:14:56]wFMCommunicate request_size=4 [11:14:56]MH_SAM_APDU [11:14:56]CAPDU: 80 09 00 00 [11:14:56]Write to MH i2c: E2 08 00 DD 0D 80 09 00 00 00 00 00 00 5C [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:56]Read from MH i2c: E2 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 DD 0D 00 90 00 5E [11:14:56]RAPDU: 90 00 [11:14:56]wFMCommunicate OK [11:14:56]SAM_PROTO_ClearQueue done [11:14:56]KKMCreateOFDPacket [11:14:56]OFDProtocolAddRootSTLVToBuf [11:14:56]FM_MakeSignedData [11:14:56]FM_MakeSignedData [11:14:56]SAM_PROTO_SignData [11:14:56]wFMCommunicate request_size=4 [11:14:56]MH_SAM_APDU [11:14:56]CAPDU: 80 0D 01 02 [11:14:56]Write to MH i2c: E2 08 00 DE 0D 80 0D 01 02 00 00 00 00 64 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:56]Read from MH i2c: E2 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 DE 0D 00 90 00 5F [11:14:56]RAPDU: 90 00 [11:14:56]wFMCommunicate OK [11:14:56]wFMCommunicate request_size=255 [11:14:56]MH_SAM_APDU [11:14:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 1B 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 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 B0 5D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 74 00 00 35 04 06 00 09 [11:14:56]Write to MH i2c: E2 02 01 DF 0D 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 26 1B 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 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 B0 5D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 74 00 00 35 04 06 00 09 00 00 40 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:56]Read from MH i2c: E2 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 DF 0D 00 90 00 60 [11:14:56]RAPDU: 90 00 [11:14:56]wFMCommunicate OK [11:14:56]wFMCommunicate request_size=10 [11:14:56]MH_SAM_APDU [11:14:56]CAPDU: 80 0D 02 02 05 77 B0 10 D1 80 [11:14:56]Write to MH i2c: E2 0D 00 E0 0D 80 0D 02 02 05 00 77 B0 10 D1 80 00 00 F9 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:56]Read from MH i2c: E2 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 E0 0D 00 90 00 61 [11:14:56]RAPDU: 90 00 [11:14:56]wFMCommunicate OK [11:14:56]wFMCommunicate request_size=4 [11:14:56]MH_SAM_APDU [11:14:56]CAPDU: 80 0D 03 02 [11:14:56]Write to MH i2c: E2 08 00 E1 0D 80 0D 03 02 00 00 00 00 69 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:56]Read from MH i2c: E2 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 0B 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 0B 00 E1 0D 00 B8 67 4F DB 35 0F 8E 01 90 00 86 [11:14:56]RAPDU: B8 67 4F DB 35 0F 8E 01 90 00 [11:14:56]wFMCommunicate OK [11:14:56]SAM_PROTO_SignData done [11:14:56]FM_MakeSignedData done [11:14:56]CreateOFDProtocolMessage [11:14:56]wFMCommunicate request_size=4 [11:14:56]MH_SAM_APDU [11:14:56]CAPDU: 80 11 00 00 [11:14:56]Write to MH i2c: E2 08 00 E2 0D 80 11 00 00 00 00 00 00 69 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:56]Read from MH i2c: E2 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 17 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 17 00 E2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B8 [11:14:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:14:56]wFMCommunicate OK [11:14:56]CreateOFDProtocolMessage done [11:14:56]OFDSenderStorePacket 29798 [11:14:56]StoreOFDPacket docnum=29798 [11:14:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D0 A8 07 01 5B 99 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 26 1B 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 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 B0 5D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 74 00 00 35 04 06 00 09 77 B0 10 D1 80 B8 67 4F DB 35 0F 8E 01 [11:14:56]CheckFolder [11:14:56]dirname=/storage/ofd_packets [11:14:56]CheckFolder done [11:14:56]ProducePacketName [11:14:56]name=ofd_packets/00029798 [11:14:56]NVStorageSaveData ofd_packets/00029798 [11:14:56]File name is /storage/ofd_packets/00029798 [11:14:56]Write 301 bytes [11:14:56]NVStorageSaveData done [11:14:56]OFDSenderStorePacket done [11:14:56]KKMCreateOFDPacket done [11:14:56]NVStorageSaveData kkm_last_timestamp [11:14:56]File name is /storage/kkm_last_timestamp [11:14:56]Write 4 bytes [11:14:56]NVStorageSaveData done [11:14:56]ExternCall_PrintAddStr [11:14:56]wPrintStart [11:14:56]Write to MH i2c: 01 00 00 E3 0D F0 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: 01 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: 01 07 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: 01 07 00 E3 0D 00 00 00 00 00 FF 0F 05 [11:14:56]RasterBufferAndPrint [11:14:56]line Счет N : (1)348294 [11:14:56]line ИНН: 02508201610067 [11:14:56]line Контрольно-Кассовый Чек [11:14:56]line ПРОДАЖА [11:14:56]line ТРК (МРК, ГНК) : 42 [11:14:56]line Товар: 2710124130 [11:14:56]line Аи-92-К-5 [11:14:56]line 6.950 * 64.80 [11:14:56]line = 450.36 [11:14:56]line НДС 12% НСП 1% [11:14:56]line > о реализуемом товаре [11:14:56]line ОКРУГЛЕНИЕ: -0.36 [11:14:56]line ИТОГО: 450.00 [11:14:56]line Внесено: 450.00 [11:14:56]line СДАЧА: 0.00 [11:14:56]line НСП 1% : 3.98 [11:14:56]line НДС 12% : 47.83 [11:14:56]line Наличными: 450.00 [11:14:56]line Безнал.: 0.00 [11:14:56]line Место: АЗС № 108 "Партнер Нефть" [11:14:56]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:14:56]line СНО: Общий режим [11:14:56]line Чек 72 16.04.2024 11:14 [11:14:56]line Смена: 118 ФФД: 1.0 [11:14:56]line ЗНМ: 0300000027 [11:14:56]line РНМ: 0000138879044617 [11:14:56]line Версия ККМ: 001 [11:14:56]line ФМ: 0000000000963154 [11:14:56]line ФД: 29798 [11:14:56]line ФПД: 10409659650432 [11:14:56]line 1/tax-web-control/client/api/v1/ticket?date=20240416T111456&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29798&fm=10409659650432&tin=02508201610067®Number=0000138879044617&sum=45000 [11:14:57]OFD Sender: Processing packet 29798 [packets to send 8, broken 7] [11:14:57]ProducePacketName [11:14:57]name=ofd_packets/00029798 [11:14:57]OFD Sender: To server: pG, [11:14:57]CommunicateWithHost lk.salyk.kg:30040 [11:14:57]ConnectInit lk.salyk.kg [11:14:57]written 0, free lines is 4095 [11:14:57]Connected sock=10 [11:14:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D0 A8 07 01 5B 99 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 26 1B 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 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 B0 5D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 74 00 00 35 04 06 00 09 77 B0 10 D1 80 B8 67 4F DB 35 0F 8E 01 [11:14:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0B 8C 47 00 F8 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 74 00 00 F4 03 04 00 4E 08 1E 66 B6 04 01 00 00 15 6D 1E 30 49 5F 3C 7A [11:14:57]CommunicateWithHost err = 0 [11:14:57]CheckOFDResponse [11:14:57]1017 (14) - 77093643461234 [11:14:57]1041 (16) - 0000000000963154 [11:14:57]1040 (4) - 29798 [11:14:57]1012 (4) - 16.04.2024 05:10 [11:14:57]1206 (1) - 0 [11:14:57]OFD Sender: Remove packet 29798 [11:14:57]ProducePacketName [11:14:57]name=ofd_packets/00029798 [11:14:57]NVStorageDeleteData [11:14:57]Write to MH i2c: 01 00 00 0D 0E 1B [11:14:57]Write i2c OK [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: 01 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: 01 07 00 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: 01 07 00 0D 0E 00 00 00 00 00 CE 0C FC [11:14:57]RasterBufferAndPrint [11:14:57]line [11:14:57]line [11:14:57]line [11:14:57]line [11:14:57]line [11:14:57]written 0, free lines is 3286 [11:14:57]MH_Cut [11:14:57]Write to MH i2c: D1 01 00 14 0E 01 F4 [11:14:57]Write i2c OK [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: D1 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: D1 01 00 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: D1 01 00 14 0E 00 F3 [11:14:57]Write to MH i2c: 01 00 00 15 0E 23 [11:14:57]Write i2c OK [11:14:57]MH_I2C_Read... [11:14:57]OFD Sender: No OFD packet to send [11:14:58]*** Cut start [11:14:58]*** Partial cut [11:14:58]*** CUTSNS_PIN = 1 [11:14:58]*** CUTSNS_PIN = 0 [11:14:58]*** Brake cut motor [11:14:58]Read from MH i2c: 01 [11:14:58]MH_I2C_Read... [11:14:58]*** Stop cut motor [11:14:58]*** Cut end [11:14:58]Read from MH i2c: 01 07 00 [11:14:58]MH_I2C_Read... [11:14:58]Read from MH i2c: 01 07 00 15 0E 00 00 00 00 00 FF 0F 38 [11:14:58]process_action close_receipt done [11:14:58]requested_data is exist [11:14:58]produce_requested_data [11:14:58]requested_item fm.sn is exist - process it [11:14:58]wFMCommunicate request_size=4 [11:14:58]MH_SAM_APDU [11:14:58]CAPDU: 80 11 00 00 [11:14:58]Write to MH i2c: E2 08 00 16 0E 80 11 00 00 00 00 00 00 9E [11:14:58]Write i2c OK [11:14:58]MH_I2C_Read... [11:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 17 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 17 00 16 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 ED [11:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:14:59]wFMCommunicate OK [11:14:59]requested_item fd.num is exist - process it [11:14:59]SAM_PROTO_GetFieldsCounters [11:14:59]wFMCommunicate request_size=4 [11:14:59]MH_SAM_APDU [11:14:59]CAPDU: 80 13 00 00 [11:14:59]Write to MH i2c: E2 08 00 17 0E 80 13 00 00 00 00 00 00 A1 [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 62 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 62 00 17 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 66 74 00 00 0E 04 04 00 76 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 07 [11:14:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 66 74 00 00 0E 04 04 00 76 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 [11:14:59]wFMCommunicate OK [11:14:59]SAM_PROTO_GetFieldsCounters done [11:14:59]requested_item shift.num is exist - process it [11:14:59]requested_item shift.opened is exist - process it [11:14:59]req_shift_opened [11:14:59]FM_GetShiftState [11:14:59]SAM_PROTO_GetShiftState [11:14:59]wFMCommunicate request_size=4 [11:14:59]MH_SAM_APDU [11:14:59]CAPDU: 80 13 01 00 [11:14:59]Write to MH i2c: E2 08 00 18 0E 80 13 01 00 00 00 00 00 A3 [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 0E 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 0E 00 18 0E 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 51 [11:14:59]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:14:59]wFMCommunicate OK [11:14:59]SAM_PROTO_GetShiftState done [11:14:59]FM_GetShiftState done [11:14:59]req_shift_opened done [11:14:59]requested_item shift.open_date is exist - process it [11:14:59]req_shift_open_date [11:14:59]req_shift_open_date done [11:14:59]produce_requested_data done [11:14:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29798,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:14:59]process_action_free close_receipt [11:14:59]json_value_free [11:14:59]json_value_free done [11:14:59]process_json_proto returns [11:14:59]Send response to host [11:14:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29798,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:14:59]free response buf [11:14:59]execute_script done [11:14:59]execute_script returns [11:14:59]free content buf [11:14:59]Sock 7.Close socket [11:14:59]Sock 7.Thread stoped [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:11]accept exits with 9 [11:15:11]New connection [11:15:11]New thread 3067133284 created [11:15:11]Thread 3067276644 joined [11:15:11]Waiting for new connection... [11:15:11] Sock 9.Parse request [11:15:11]Sock 9.Check first char [11:15:11]Sock 9.First char is OK [11:15:11]request: POST /json_proto HTTP/1.0 [11:15:11]Method: POST [11:15:11]URL: /json_proto [11:15:11]Method is POST - this is cgi request [11:15:11]url: /json_proto [11:15:11]query_string will be loaded in cgi processing [11:15:11]execute_cgi json_proto POST (null) [11:15:11]execute_cgi path=json_proto method=POST [11:15:11]POST find Content-Length [11:15:11]Host: 172.17.33.3:8080 [11:15:11]Content-Length: 677 [11:15:11]Content-Type: application/json [11:15:11] [11:15:11]POST finish read [11:15:11]Found Content-Length = 677 [11:15:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "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" ] } } [11:15:11]execute_script... [11:15: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)348293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "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" ] } } [11:15:11]POST & json_proto [11:15:11]process_json_proto [11:15:11]json parsed OK: [11:15:11]protocol is kg_v1.0 [11:15:11]action value=close_receipt [11:15:11]process_action close_receipt [11:15:11]cmd_close_receipt [11:15:11]MH_GetDate [11:15:11]Write to MH i2c: F0 00 00 19 0E 16 [11:15:11]Write i2c OK [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: F0 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: F0 09 00 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: F0 09 00 19 0E 00 C1 5D 1E 66 23 5B 8F 65 33 [11:15:11]GetLastDocTimeStamp 1713266096 [11:15:11]current date 1713266113 [11:15:11]FM_GetShiftState [11:15:11]SAM_PROTO_GetShiftState [11:15:11]wFMCommunicate request_size=4 [11:15:11]MH_SAM_APDU [11:15:11]CAPDU: 80 13 01 00 [11:15:11]Write to MH i2c: E2 08 00 1A 0E 80 13 01 00 00 00 00 00 A5 [11:15:11]Write i2c OK [11:15:11]MH_I2C_Read... [11:15:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:11]Read from MH i2c: E2 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: E2 0E 00 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: E2 0E 00 1A 0E 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 53 [11:15:11]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:15:11]wFMCommunicate OK [11:15:11]SAM_PROTO_GetShiftState done [11:15:11]FM_GetShiftState done [11:15:11]opened in 1713226843 [11:15:11]opened+sec_in_day 1713313243 [11:15:11]quantity*price = 50025 [11:15:11]sum+1 = 50027 [11:15:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 73 16.04.2024 11:15 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29799 ФПД: 73831497504587 1/tax-web-control/client/api/v1/ticket?date=20240416T111513&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29799&fm=73831497504587&tin=02508201610067®Number=0000138879044617&sum=50000 [11:15:13]StoreToDocumentArchive [11:15:13]shift 118 fd 29799 [11:15:13]save to /storage/0118/doc_00029799 [11:15:13]save last doc name /storage/0118/doc_00029799 to /storage/kkm_last_doc_name [11:15:13]save OK [11:15:13]Clear old archive folders... [11:15:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:13]tlvbuf is 0018E190 [11:15:13]SAM_PROTO_ClearQueue [11:15:13]wFMCommunicate request_size=4 [11:15:13]MH_SAM_APDU [11:15:13]CAPDU: 80 09 00 00 [11:15:13]Write to MH i2c: E2 08 00 27 0E 80 09 00 00 00 00 00 00 A7 [11:15:13]Write i2c OK [11:15:13]MH_I2C_Read... [11:15:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:13]Read from MH i2c: E2 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 03 00 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 03 00 27 0E 00 90 00 A9 [11:15:13]RAPDU: 90 00 [11:15:13]wFMCommunicate OK [11:15:13]SAM_PROTO_ClearQueue done [11:15:13]KKMCreateOFDPacket [11:15:13]OFDProtocolAddRootSTLVToBuf [11:15:13]FM_MakeSignedData [11:15:13]FM_MakeSignedData [11:15:13]SAM_PROTO_SignData [11:15:13]wFMCommunicate request_size=4 [11:15:13]MH_SAM_APDU [11:15:13]CAPDU: 80 0D 01 02 [11:15:13]Write to MH i2c: E2 08 00 28 0E 80 0D 01 02 00 00 00 00 AF [11:15:13]Write i2c OK [11:15:13]MH_I2C_Read... [11:15:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:13]Read from MH i2c: E2 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 03 00 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 03 00 28 0E 00 90 00 AA [11:15:13]RAPDU: 90 00 [11:15:13]wFMCommunicate OK [11:15:13]wFMCommunicate request_size=255 [11:15:13]MH_SAM_APDU [11:15:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 49 00 00 00 F4 03 04 00 C1 5D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 74 00 00 35 04 06 00 43 [11:15:13]Write to MH i2c: E2 02 01 29 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 49 00 00 00 F4 03 04 00 C1 5D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 74 00 00 35 04 06 00 43 00 00 E7 [11:15:13]Write i2c OK [11:15:13]MH_I2C_Read... [11:15:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:13]Read from MH i2c: E2 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 03 00 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 03 00 29 0E 00 90 00 AB [11:15:13]RAPDU: 90 00 [11:15:13]wFMCommunicate OK [11:15:13]wFMCommunicate request_size=10 [11:15:13]MH_SAM_APDU [11:15:13]CAPDU: 80 0D 02 02 05 26 3C 2E 97 4B [11:15:13]Write to MH i2c: E2 0D 00 2A 0E 80 0D 02 02 05 00 26 3C 2E 97 4B 00 00 2E [11:15:13]Write i2c OK [11:15:13]MH_I2C_Read... [11:15:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:13]Read from MH i2c: E2 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 03 00 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 03 00 2A 0E 00 90 00 AC [11:15:13]RAPDU: 90 00 [11:15:13]wFMCommunicate OK [11:15:13]wFMCommunicate request_size=4 [11:15:13]MH_SAM_APDU [11:15:13]CAPDU: 80 0D 03 02 [11:15:13]Write to MH i2c: E2 08 00 2B 0E 80 0D 03 02 00 00 00 00 B4 [11:15:13]Write i2c OK [11:15:13]MH_I2C_Read... [11:15:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:13]Read from MH i2c: E2 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 0B 00 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 0B 00 2B 0E 00 A6 BF 89 46 1A 83 09 BB 90 00 4A [11:15:13]RAPDU: A6 BF 89 46 1A 83 09 BB 90 00 [11:15:13]wFMCommunicate OK [11:15:13]SAM_PROTO_SignData done [11:15:13]FM_MakeSignedData done [11:15:13]CreateOFDProtocolMessage [11:15:13]wFMCommunicate request_size=4 [11:15:13]MH_SAM_APDU [11:15:13]CAPDU: 80 11 00 00 [11:15:13]Write to MH i2c: E2 08 00 2C 0E 80 11 00 00 00 00 00 00 B4 [11:15:13]Write i2c OK [11:15:13]MH_I2C_Read... [11:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:13]Read from MH i2c: E2 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 17 00 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 17 00 2C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 03 [11:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:15:13]wFMCommunicate OK [11:15:13]CreateOFDProtocolMessage done [11:15:13]OFDSenderStorePacket 29799 [11:15:13]StoreOFDPacket docnum=29799 [11:15:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 71 B1 07 01 35 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 49 00 00 00 F4 03 04 00 C1 5D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 74 00 00 35 04 06 00 43 26 3C 2E 97 4B A6 BF 89 46 1A 83 09 BB [11:15:13]CheckFolder [11:15:13]dirname=/storage/ofd_packets [11:15:13]CheckFolder done [11:15:13]ProducePacketName [11:15:13]name=ofd_packets/00029799 [11:15:13]NVStorageSaveData ofd_packets/00029799 [11:15:13]File name is /storage/ofd_packets/00029799 [11:15:13]Write 301 bytes [11:15:13]NVStorageSaveData done [11:15:13]OFDSenderStorePacket done [11:15:13]KKMCreateOFDPacket done [11:15:13]NVStorageSaveData kkm_last_timestamp [11:15:13]File name is /storage/kkm_last_timestamp [11:15:13]Write 4 bytes [11:15:13]NVStorageSaveData done [11:15:13]ExternCall_PrintAddStr [11:15:13]wPrintStart [11:15:13]Write to MH i2c: 01 00 00 2D 0E 3B [11:15:13]Write i2c OK [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: 01 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: 01 07 00 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: 01 07 00 2D 0E 00 00 00 00 00 FF 0F 50 [11:15:13]RasterBufferAndPrint [11:15:13]line Счет N : (1)348293 [11:15:13]line ИНН: 02508201610067 [11:15:13]line Контрольно-Кассовый Чек [11:15:13]line ПРОДАЖА [11:15:13]line ТРК (МРК, ГНК) : 32 [11:15:13]line Товар: 2710124130 [11:15:13]line Аи-92-К-5 [11:15:13]line 7.720 * 64.80 [11:15:13]line = 500.26 [11:15:13]line НДС 12% НСП 1% [11:15:13]line > о реализуемом товаре [11:15:13]line ОКРУГЛЕНИЕ: -0.26 [11:15:13]line ИТОГО: 500.00 [11:15:13]line Внесено: 500.00 [11:15:13]line СДАЧА: 0.00 [11:15:13]line НСП 1% : 4.43 [11:15:13]line НДС 12% : 53.12 [11:15:13]line Наличными: 500.00 [11:15:13]line Безнал.: 0.00 [11:15:13]line Место: АЗС № 108 "Партнер Нефть" [11:15:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:15:13]line СНО: Общий режим [11:15:13]line Чек 73 16.04.2024 11:15 [11:15:13]line Смена: 118 ФФД: 1.0 [11:15:13]line ЗНМ: 0300000027 [11:15:13]line РНМ: 0000138879044617 [11:15:13]line Версия ККМ: 001 [11:15:13]line ФМ: 0000000000963154 [11:15:13]line ФД: 29799 [11:15:13]line ФПД: 73831497504587 [11:15:13]line 1/tax-web-control/client/api/v1/ticket?date=20240416T111513&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29799&fm=73831497504587&tin=02508201610067®Number=0000138879044617&sum=50000 [11:15:13]OFD Sender: Processing packet 29799 [packets to send 8, broken 7] [11:15:13]ProducePacketName [11:15:13]name=ofd_packets/00029799 [11:15:13]OFD Sender: To server: pG, [11:15:13]CommunicateWithHost lk.salyk.kg:30040 [11:15:13]ConnectInit lk.salyk.kg [11:15:13]written 0, free lines is 4095 [11:15:13]Connected sock=10 [11:15:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 71 B1 07 01 35 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 49 00 00 00 F4 03 04 00 C1 5D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 74 00 00 35 04 06 00 43 26 3C 2E 97 4B A6 BF 89 46 1A 83 09 BB [11:15:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CA F5 47 00 5D F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 74 00 00 F4 03 04 00 5F 08 1E 66 B6 04 01 00 00 6C CA 77 C3 E1 33 9F 2F [11:15:14]CommunicateWithHost err = 0 [11:15:14]CheckOFDResponse [11:15:14]1017 (14) - 77093643461234 [11:15:14]1041 (16) - 0000000000963154 [11:15:14]1040 (4) - 29799 [11:15:14]1012 (4) - 16.04.2024 05:10 [11:15:14]1206 (1) - 0 [11:15:14]OFD Sender: Remove packet 29799 [11:15:14]ProducePacketName [11:15:14]name=ofd_packets/00029799 [11:15:14]NVStorageDeleteData [11:15:14]Write to MH i2c: 01 00 00 57 0E 65 [11:15:14]Write i2c OK [11:15:14]MH_I2C_Read... [11:15:14]Read from MH i2c: 01 [11:15:14]MH_I2C_Read... [11:15:14]Read from MH i2c: 01 07 00 [11:15:14]MH_I2C_Read... [11:15:14]Read from MH i2c: 01 07 00 57 0E 00 00 00 00 00 C2 0C 3A [11:15:14]RasterBufferAndPrint [11:15:14]line [11:15:14]line [11:15:14]line [11:15:14]line [11:15:14]line [11:15:14]written 0, free lines is 3272 [11:15:14]MH_Cut [11:15:14]Write to MH i2c: D1 01 00 5E 0E 01 3E [11:15:14]Write i2c OK [11:15:14]MH_I2C_Read... [11:15:14]Read from MH i2c: D1 [11:15:14]MH_I2C_Read... [11:15:14]Read from MH i2c: D1 01 00 [11:15:14]MH_I2C_Read... [11:15:14]Read from MH i2c: D1 01 00 5E 0E 00 3D [11:15:14]Write to MH i2c: 01 00 00 5F 0E 6D [11:15:14]Write i2c OK [11:15:14]MH_I2C_Read... [11:15:14]OFD Sender: No OFD packet to send [11:15:15]*** Cut start [11:15:15]*** Partial cut [11:15:15]*** CUTSNS_PIN = 1 [11:15:15]*** CUTSNS_PIN = 0 [11:15:15]*** Brake cut motor [11:15:15]Read from MH i2c: 01 [11:15:15]MH_I2C_Read... [11:15:15]*** Stop cut motor [11:15:15]*** Cut end [11:15:15]Read from MH i2c: 01 07 00 [11:15:15]MH_I2C_Read... [11:15:15]Read from MH i2c: 01 07 00 5F 0E 00 00 00 00 00 FF 0F 82 [11:15:15]process_action close_receipt done [11:15:15]requested_data is exist [11:15:15]produce_requested_data [11:15:15]requested_item fm.sn is exist - process it [11:15:15]wFMCommunicate request_size=4 [11:15:15]MH_SAM_APDU [11:15:15]CAPDU: 80 11 00 00 [11:15:15]Write to MH i2c: E2 08 00 60 0E 80 11 00 00 00 00 00 00 E8 [11:15:15]Write i2c OK [11:15:15]MH_I2C_Read... [11:15:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:15]Read from MH i2c: E2 [11:15:15]MH_I2C_Read... [11:15:15]Read from MH i2c: E2 17 00 [11:15:15]MH_I2C_Read... [11:15:15]Read from MH i2c: E2 17 00 60 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 37 [11:15:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:15:15]wFMCommunicate OK [11:15:15]requested_item fd.num is exist - process it [11:15:15]SAM_PROTO_GetFieldsCounters [11:15:15]wFMCommunicate request_size=4 [11:15:15]MH_SAM_APDU [11:15:15]CAPDU: 80 13 00 00 [11:15:15]Write to MH i2c: E2 08 00 61 0E 80 13 00 00 00 00 00 00 EB [11:15:15]Write i2c OK [11:15:15]MH_I2C_Read... [11:15:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:15]Read from MH i2c: E2 [11:15:15]MH_I2C_Read... [11:15:15]Read from MH i2c: E2 62 00 [11:15:15]MH_I2C_Read... [11:15:15]Read from MH i2c: E2 62 00 61 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 67 74 00 00 0E 04 04 00 76 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 55 [11:15:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 67 74 00 00 0E 04 04 00 76 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 [11:15:15]wFMCommunicate OK [11:15:15]SAM_PROTO_GetFieldsCounters done [11:15:15]requested_item shift.num is exist - process it [11:15:15]requested_item shift.opened is exist - process it [11:15:15]req_shift_opened [11:15:15]FM_GetShiftState [11:15:15]SAM_PROTO_GetShiftState [11:15:15]wFMCommunicate request_size=4 [11:15:15]MH_SAM_APDU [11:15:15]CAPDU: 80 13 01 00 [11:15:15]Write to MH i2c: E2 08 00 62 0E 80 13 01 00 00 00 00 00 ED [11:15:15]Write i2c OK [11:15:15]MH_I2C_Read... [11:15:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:16]Read from MH i2c: E2 [11:15:16]MH_I2C_Read... [11:15:16]Read from MH i2c: E2 0E 00 [11:15:16]MH_I2C_Read... [11:15:16]Read from MH i2c: E2 0E 00 62 0E 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 9B [11:15:16]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:15:16]wFMCommunicate OK [11:15:16]SAM_PROTO_GetShiftState done [11:15:16]FM_GetShiftState done [11:15:16]req_shift_opened done [11:15:16]requested_item shift.open_date is exist - process it [11:15:16]req_shift_open_date [11:15:16]req_shift_open_date done [11:15:16]produce_requested_data done [11:15:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29799,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:15:16]process_action_free close_receipt [11:15:16]json_value_free [11:15:16]json_value_free done [11:15:16]process_json_proto returns [11:15:16]Send response to host [11:15:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29799,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:15:16]free response buf [11:15:16]execute_script done [11:15:16]execute_script returns [11:15:16]free content buf [11:15:16]Sock 9.Close socket [11:15:16]Sock 9.Thread stoped [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:35]accept exits with 7 [11:15:35]New connection [11:15:35]New thread 3067276644 created [11:15:35]Thread 3067133284 joined [11:15:35]Waiting for new connection... [11:15:35] Sock 7.Parse request [11:15:35]Sock 7.Check first char [11:15:35]Sock 7.First char is OK [11:15:35]request: POST /json_proto HTTP/1.0 [11:15:35]Method: POST [11:15:35]URL: /json_proto [11:15:35]Method is POST - this is cgi request [11:15:35]url: /json_proto [11:15:35]query_string will be loaded in cgi processing [11:15:35]execute_cgi json_proto POST (null) [11:15:35]execute_cgi path=json_proto method=POST [11:15:35]POST find Content-Length [11:15:35]Host: 172.17.33.3:8080 [11:15:35]Content-Length: 674 [11:15:35]Content-Type: application/json [11:15:35] [11:15:35]POST finish read [11:15:35]Found Content-Length = 674 [11:15:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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" ] } } [11:15:35]execute_script... [11:15:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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" ] } } [11:15:35]POST & json_proto [11:15:35]process_json_proto [11:15:35]json parsed OK: [11:15:35]protocol is kg_v1.0 [11:15:35]action value=close_receipt [11:15:35]process_action close_receipt [11:15:35]cmd_close_receipt [11:15:35]MH_GetDate [11:15:35]Write to MH i2c: F0 00 00 63 0E 60 [11:15:35]Write i2c OK [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: F0 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: F0 09 00 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: F0 09 00 63 0E 00 D9 5D 1E 66 23 5B 8F 65 95 [11:15:35]GetLastDocTimeStamp 1713266113 [11:15:35]current date 1713266137 [11:15:35]FM_GetShiftState [11:15:35]SAM_PROTO_GetShiftState [11:15:35]wFMCommunicate request_size=4 [11:15:35]MH_SAM_APDU [11:15:35]CAPDU: 80 13 01 00 [11:15:35]Write to MH i2c: E2 08 00 64 0E 80 13 01 00 00 00 00 00 EF [11:15:35]Write i2c OK [11:15:35]MH_I2C_Read... [11:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:35]Read from MH i2c: E2 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: E2 0E 00 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: E2 0E 00 64 0E 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 9D [11:15:35]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:15:35]wFMCommunicate OK [11:15:35]SAM_PROTO_GetShiftState done [11:15:35]FM_GetShiftState done [11:15:35]opened in 1713226843 [11:15:35]opened+sec_in_day 1713313243 [11:15:35]quantity*price = 50009 [11:15:35]sum+1 = 50010 [11:15:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 74 16.04.2024 11:15 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29800 ФПД: 84520893637216 1/tax-web-control/client/api/v1/ticket?date=20240416T111537&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29800&fm=84520893637216&tin=02508201610067®Number=0000138879044617&sum=50000 [11:15:36]StoreToDocumentArchive [11:15:36]shift 118 fd 29800 [11:15:36]save to /storage/0118/doc_00029800 [11:15:36]save last doc name /storage/0118/doc_00029800 to /storage/kkm_last_doc_name [11:15:36]save OK [11:15:36]Clear old archive folders... [11:15:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:15:36]tlvbuf is 001AB220 [11:15:36]SAM_PROTO_ClearQueue [11:15:36]wFMCommunicate request_size=4 [11:15:36]MH_SAM_APDU [11:15:36]CAPDU: 80 09 00 00 [11:15:36]Write to MH i2c: E2 08 00 71 0E 80 09 00 00 00 00 00 00 F1 [11:15:36]Write i2c OK [11:15:36]MH_I2C_Read... [11:15:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:36]Read from MH i2c: E2 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 03 00 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [11:15:36]RAPDU: 90 00 [11:15:36]wFMCommunicate OK [11:15:36]SAM_PROTO_ClearQueue done [11:15:36]KKMCreateOFDPacket [11:15:36]OFDProtocolAddRootSTLVToBuf [11:15:36]FM_MakeSignedData [11:15:36]FM_MakeSignedData [11:15:36]SAM_PROTO_SignData [11:15:36]wFMCommunicate request_size=4 [11:15:36]MH_SAM_APDU [11:15:36]CAPDU: 80 0D 01 02 [11:15:36]Write to MH i2c: E2 08 00 72 0E 80 0D 01 02 00 00 00 00 F9 [11:15:36]Write i2c OK [11:15:36]MH_I2C_Read... [11:15:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:37]Read from MH i2c: E2 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 03 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [11:15:37]RAPDU: 90 00 [11:15:37]wFMCommunicate OK [11:15:37]wFMCommunicate request_size=255 [11:15:37]MH_SAM_APDU [11:15:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 4A 00 00 00 F4 03 04 00 D9 5D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 74 00 00 35 04 06 00 4C DF 0D D7 [11:15:37]Write to MH i2c: E2 02 01 73 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 4A 00 00 00 F4 03 04 00 D9 5D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 74 00 00 35 04 06 00 4C DF 0D D7 00 00 25 [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 [11:15:37]MH_I2C_Read... [11:15:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:37]Read from MH i2c: E2 03 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 03 00 73 0E 00 90 00 F5 [11:15:37]RAPDU: 90 00 [11:15:37]wFMCommunicate OK [11:15:37]wFMCommunicate request_size=7 [11:15:37]MH_SAM_APDU [11:15:37]CAPDU: 80 0D 02 02 02 62 60 [11:15:37]Write to MH i2c: E2 0A 00 74 0E 80 0D 02 02 02 00 62 60 00 00 C2 [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:37]Read from MH i2c: E2 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 03 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 03 00 74 0E 00 90 00 F6 [11:15:37]RAPDU: 90 00 [11:15:37]wFMCommunicate OK [11:15:37]wFMCommunicate request_size=4 [11:15:37]MH_SAM_APDU [11:15:37]CAPDU: 80 0D 03 02 [11:15:37]Write to MH i2c: E2 08 00 75 0E 80 0D 03 02 00 00 00 00 FE [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:37]Read from MH i2c: E2 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 0B 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 0B 00 75 0E 00 BB 1B A0 86 3C 3E D2 3A 90 00 81 [11:15:37]RAPDU: BB 1B A0 86 3C 3E D2 3A 90 00 [11:15:37]wFMCommunicate OK [11:15:37]SAM_PROTO_SignData done [11:15:37]FM_MakeSignedData done [11:15:37]CreateOFDProtocolMessage [11:15:37]wFMCommunicate request_size=4 [11:15:37]MH_SAM_APDU [11:15:37]CAPDU: 80 11 00 00 [11:15:37]Write to MH i2c: E2 08 00 76 0E 80 11 00 00 00 00 00 00 FE [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:37]Read from MH i2c: E2 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 17 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 17 00 76 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4D [11:15:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:15:37]wFMCommunicate OK [11:15:37]CreateOFDProtocolMessage done [11:15:37]OFDSenderStorePacket 29800 [11:15:37]StoreOFDPacket docnum=29800 [11:15:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 3E 6B 04 01 0B 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 4A 00 00 00 F4 03 04 00 D9 5D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 74 00 00 35 04 06 00 4C DF 0D D7 62 60 BB 1B A0 86 3C 3E D2 3A [11:15:37]CheckFolder [11:15:37]dirname=/storage/ofd_packets [11:15:37]CheckFolder done [11:15:37]ProducePacketName [11:15:37]name=ofd_packets/00029800 [11:15:37]NVStorageSaveData ofd_packets/00029800 [11:15:37]File name is /storage/ofd_packets/00029800 [11:15:37]Write 298 bytes [11:15:37]NVStorageSaveData done [11:15:37]OFDSenderStorePacket done [11:15:37]KKMCreateOFDPacket done [11:15:37]NVStorageSaveData kkm_last_timestamp [11:15:37]File name is /storage/kkm_last_timestamp [11:15:37]Write 4 bytes [11:15:37]NVStorageSaveData done [11:15:37]ExternCall_PrintAddStr [11:15:37]wPrintStart [11:15:37]Write to MH i2c: 01 00 00 77 0E 85 [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: 01 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: 01 07 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: 01 07 00 77 0E 00 00 00 00 00 FF 0F 9A [11:15:37]RasterBufferAndPrint [11:15:37]line Счет N : (1)348295 [11:15:37]line ИНН: 02508201610067 [11:15:37]line Контрольно-Кассовый Чек [11:15:37]line ПРОДАЖА [11:15:37]line ТРК (МРК, ГНК) : 51 [11:15:37]line Товар: 2710194210 [11:15:37]line ДТ-К-5 [11:15:37]line 6.860 * 72.90 [11:15:37]line = 500.09 [11:15:37]line НДС 12% НСП 1% [11:15:37]line > о реализуемом товаре [11:15:37]line ОКРУГЛЕНИЕ: -0.09 [11:15:37]line ИТОГО: 500.00 [11:15:37]line Внесено: 500.00 [11:15:37]line СДАЧА: 0.00 [11:15:37]line НСП 1% : 4.43 [11:15:37]line НДС 12% : 53.11 [11:15:37]line Наличными: 500.00 [11:15:37]line Безнал.: 0.00 [11:15:37]line Место: АЗС № 108 "Партнер Нефть" [11:15:37]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:15:37]line СНО: Общий режим [11:15:37]line Чек 74 16.04.2024 11:15 [11:15:37]line Смена: 118 ФФД: 1.0 [11:15:37]line ЗНМ: 0300000027 [11:15:37]line РНМ: 0000138879044617 [11:15:37]line Версия ККМ: 001 [11:15:37]line ФМ: 0000000000963154 [11:15:37]line ФД: 29800 [11:15:37]line ФПД: 84520893637216 [11:15:37]line 1/tax-web-control/client/api/v1/ticket?date=20240416T111537&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29800&fm=84520893637216&tin=02508201610067®Number=0000138879044617&sum=50000 [11:15:37]OFD Sender: Processing packet 29800 [packets to send 8, broken 7] [11:15:37]ProducePacketName [11:15:37]name=ofd_packets/00029800 [11:15:37]OFD Sender: To server: pG, [11:15:37]CommunicateWithHost lk.salyk.kg:30040 [11:15:37]ConnectInit lk.salyk.kg [11:15:37]written 0, free lines is 4095 [11:15:37]Connected sock=10 [11:15:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 3E 6B 04 01 0B 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 4A 00 00 00 F4 03 04 00 D9 5D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 74 00 00 35 04 06 00 4C DF 0D D7 62 60 BB 1B A0 86 3C 3E D2 3A [11:15:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 52 31 47 00 24 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 36 33 31 35 34 10 04 04 00 68 74 00 00 F4 03 04 00 77 08 1E 66 B6 04 01 00 00 BC EB 0D D5 C8 7C CB 40 [11:15:38]CommunicateWithHost err = 0 [11:15:38]CheckOFDResponse [11:15:38]1017 (14) - 77093643461234 [11:15:38]1041 (16) - 0000000000963154 [11:15:38]1040 (4) - 29800 [11:15:38]1012 (4) - 16.04.2024 05:11 [11:15:38]1206 (1) - 0 [11:15:38]OFD Sender: Remove packet 29800 [11:15:38]ProducePacketName [11:15:38]name=ofd_packets/00029800 [11:15:38]NVStorageDeleteData [11:15:38]Write to MH i2c: 01 00 00 A1 0E AF [11:15:38]Write i2c OK [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: 01 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: 01 07 00 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: 01 07 00 A1 0E 00 00 00 00 00 C6 0C 88 [11:15:38]RasterBufferAndPrint [11:15:38]line [11:15:38]line [11:15:38]line [11:15:38]line [11:15:38]line [11:15:38]written 0, free lines is 3274 [11:15:38]MH_Cut [11:15:38]Write to MH i2c: D1 01 00 A8 0E 01 88 [11:15:38]Write i2c OK [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: D1 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: D1 01 00 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: D1 01 00 A8 0E 00 87 [11:15:38]Write to MH i2c: 01 00 00 A9 0E B7 [11:15:38]Write i2c OK [11:15:38]MH_I2C_Read... [11:15:38]OFD Sender: No OFD packet to send [11:15:39]*** Cut start [11:15:39]*** Partial cut [11:15:39]*** CUTSNS_PIN = 1 [11:15:39]*** CUTSNS_PIN = 0 [11:15:39]*** Brake cut motor [11:15:39]Read from MH i2c: 01 [11:15:39]MH_I2C_Read... [11:15:39]*** Stop cut motor [11:15:39]*** Cut end [11:15:39]Read from MH i2c: 01 07 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: 01 07 00 A9 0E 00 00 00 00 00 FF 0F CC [11:15:39]process_action close_receipt done [11:15:39]requested_data is exist [11:15:39]produce_requested_data [11:15:39]requested_item fm.sn is exist - process it [11:15:39]wFMCommunicate request_size=4 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 11 00 00 [11:15:39]Write to MH i2c: E2 08 00 AA 0E 80 11 00 00 00 00 00 00 32 [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 17 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 17 00 AA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 81 [11:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:15:39]wFMCommunicate OK [11:15:39]requested_item fd.num is exist - process it [11:15:39]SAM_PROTO_GetFieldsCounters [11:15:39]wFMCommunicate request_size=4 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 13 00 00 [11:15:39]Write to MH i2c: E2 08 00 AB 0E 80 13 00 00 00 00 00 00 35 [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 62 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 62 00 AB 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 68 74 00 00 0E 04 04 00 76 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 A3 [11:15:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 68 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:39]wFMCommunicate OK [11:15:39]SAM_PROTO_GetFieldsCounters done [11:15:39]requested_item shift.num is exist - process it [11:15:39]requested_item shift.opened is exist - process it [11:15:39]req_shift_opened [11:15:39]FM_GetShiftState [11:15:39]SAM_PROTO_GetShiftState [11:15:39]wFMCommunicate request_size=4 [11:15:39]MH_SAM_APDU [11:15:39]CAPDU: 80 13 01 00 [11:15:39]Write to MH i2c: E2 08 00 AC 0E 80 13 01 00 00 00 00 00 37 [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:39]Read from MH i2c: E2 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 0E 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: E2 0E 00 AC 0E 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 E5 [11:15:39]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:15:39]wFMCommunicate OK [11:15:39]SAM_PROTO_GetShiftState done [11:15:39]FM_GetShiftState done [11:15:39]req_shift_opened done [11:15:39]requested_item shift.open_date is exist - process it [11:15:39]req_shift_open_date [11:15:39]req_shift_open_date done [11:15:39]produce_requested_data done [11:15:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29800,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:15:39]process_action_free close_receipt [11:15:39]json_value_free [11:15:39]json_value_free done [11:15:39]process_json_proto returns [11:15:39]Send response to host [11:15:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29800,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:15:39]free response buf [11:15:39]execute_script done [11:15:39]execute_script returns [11:15:39]free content buf [11:15:39]Sock 7.Close socket [11:15:39]Sock 7.Thread stoped [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:01]accept exits with 9 [11:23:01]New connection [11:23:01]New thread 3067133284 created [11:23:01]Thread 3067276644 joined [11:23:01]Waiting for new connection... [11:23:01] Sock 9.Parse request [11:23:01]Sock 9.Check first char [11:23:01]Sock 9.First char is OK [11:23:01]request: POST /json_proto HTTP/1.0 [11:23:01]Method: POST [11:23:01]URL: /json_proto [11:23:01]Method is POST - this is cgi request [11:23:01]url: /json_proto [11:23:01]query_string will be loaded in cgi processing [11:23:01]execute_cgi json_proto POST (null) [11:23:01]execute_cgi path=json_proto method=POST [11:23:01]POST find Content-Length [11:23:01]Host: 172.17.33.3:8080 [11:23:01]Content-Length: 808 [11:23:01]Content-Type: application/json [11:23:01] [11:23:01]POST finish read [11:23:01]Found Content-Length = 808 [11:23:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 29.790, "sum" : 1930.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1930.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:01]execute_script... [11:23:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 29.790, "sum" : 1930.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1930.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:01]POST & json_proto [11:23:01]process_json_proto [11:23:01]json parsed OK: [11:23:01]protocol is kg_v1.0 [11:23:01]action value=close_receipt [11:23:01]process_action close_receipt [11:23:01]cmd_close_receipt [11:23:01]MH_GetDate [11:23:01]Write to MH i2c: F0 00 00 AD 0E AA [11:23:01]Write i2c OK [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: F0 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: F0 09 00 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: F0 09 00 AD 0E 00 97 5F 1E 66 23 5B 8F 65 9F [11:23:01]GetLastDocTimeStamp 1713266137 [11:23:01]current date 1713266583 [11:23:01]FM_GetShiftState [11:23:01]SAM_PROTO_GetShiftState [11:23:01]wFMCommunicate request_size=4 [11:23:01]MH_SAM_APDU [11:23:01]CAPDU: 80 13 01 00 [11:23:01]Write to MH i2c: E2 08 00 AE 0E 80 13 01 00 00 00 00 00 39 [11:23:01]Write i2c OK [11:23:01]MH_I2C_Read... [11:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:02]Read from MH i2c: E2 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 0E 00 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 0E 00 AE 0E 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 E7 [11:23:02]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:23:02]wFMCommunicate OK [11:23:02]SAM_PROTO_GetShiftState done [11:23:02]FM_GetShiftState done [11:23:02]opened in 1713226843 [11:23:02]opened+sec_in_day 1713313243 [11:23:02]quantity*price = 193039 [11:23:02]sum+1 = 193040 [11:23:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1930.39 НСП 1% : 17.08 НДС 12% : 205.00 Наличными: 0.00 Безнал.: 1930.39 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 75 16.04.2024 11:23 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29801 ФПД: 264191488400318 1/tax-web-control/client/api/v1/ticket?date=20240416T112303&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29801&fm=264191488400318&tin=02508201610067®Number=0000138879044617&sum=193039 [11:23:03]StoreToDocumentArchive [11:23:03]shift 118 fd 29801 [11:23:03]save to /storage/0118/doc_00029801 [11:23:03]save last doc name /storage/0118/doc_00029801 to /storage/kkm_last_doc_name [11:23:03]save OK [11:23:03]Clear old archive folders... [11:23:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:03]tlvbuf is B6F104B0 [11:23:03]SAM_PROTO_ClearQueue [11:23:03]wFMCommunicate request_size=4 [11:23:03]MH_SAM_APDU [11:23:03]CAPDU: 80 09 00 00 [11:23:03]Write to MH i2c: E2 08 00 BB 0E 80 09 00 00 00 00 00 00 3B [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:03]Read from MH i2c: E2 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 03 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 03 00 BB 0E 00 90 00 3D [11:23:03]RAPDU: 90 00 [11:23:03]wFMCommunicate OK [11:23:03]SAM_PROTO_ClearQueue done [11:23:03]KKMCreateOFDPacket [11:23:03]OFDProtocolAddRootSTLVToBuf [11:23:03]FM_MakeSignedData [11:23:03]FM_MakeSignedData [11:23:03]SAM_PROTO_SignData [11:23:03]wFMCommunicate request_size=4 [11:23:03]MH_SAM_APDU [11:23:03]CAPDU: 80 0D 01 02 [11:23:03]Write to MH i2c: E2 08 00 BC 0E 80 0D 01 02 00 00 00 00 43 [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:03]Read from MH i2c: E2 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 03 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 03 00 BC 0E 00 90 00 3E [11:23:03]RAPDU: 90 00 [11:23:03]wFMCommunicate OK [11:23:03]wFMCommunicate request_size=255 [11:23:03]MH_SAM_APDU [11:23:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 74 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 0F F2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F F2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 50 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F F2 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 97 5F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 74 00 00 35 04 06 00 F0 [11:23:03]Write to MH i2c: E2 02 01 BD 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 74 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 0F F2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F F2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 50 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F F2 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 97 5F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 74 00 00 35 04 06 00 F0 00 00 CC [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:03]Read from MH i2c: E2 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 03 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 03 00 BD 0E 00 90 00 3F [11:23:03]RAPDU: 90 00 [11:23:03]wFMCommunicate OK [11:23:03]wFMCommunicate request_size=10 [11:23:03]MH_SAM_APDU [11:23:03]CAPDU: 80 0D 02 02 05 47 DF D1 9B BE [11:23:03]Write to MH i2c: E2 0D 00 BE 0E 80 0D 02 02 05 00 47 DF D1 9B BE 00 00 A0 [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:03]Read from MH i2c: E2 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 03 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 03 00 BE 0E 00 90 00 40 [11:23:03]RAPDU: 90 00 [11:23:03]wFMCommunicate OK [11:23:03]wFMCommunicate request_size=4 [11:23:03]MH_SAM_APDU [11:23:03]CAPDU: 80 0D 03 02 [11:23:03]Write to MH i2c: E2 08 00 BF 0E 80 0D 03 02 00 00 00 00 48 [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:03]Read from MH i2c: E2 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 0B 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 0B 00 BF 0E 00 92 8F 62 A7 2E 4D 64 06 90 00 58 [11:23:03]RAPDU: 92 8F 62 A7 2E 4D 64 06 90 00 [11:23:03]wFMCommunicate OK [11:23:03]SAM_PROTO_SignData done [11:23:03]FM_MakeSignedData done [11:23:03]CreateOFDProtocolMessage [11:23:03]wFMCommunicate request_size=4 [11:23:03]MH_SAM_APDU [11:23:03]CAPDU: 80 11 00 00 [11:23:03]Write to MH i2c: E2 08 00 C0 0E 80 11 00 00 00 00 00 00 48 [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:03]Read from MH i2c: E2 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 17 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: E2 17 00 C0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 97 [11:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:23:03]wFMCommunicate OK [11:23:03]CreateOFDProtocolMessage done [11:23:03]OFDSenderStorePacket 29801 [11:23:03]StoreOFDPacket docnum=29801 [11:23:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BF EF 07 01 A8 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 74 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 0F F2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F F2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 50 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F F2 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 97 5F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 74 00 00 35 04 06 00 F0 47 DF D1 9B BE 92 8F 62 A7 2E 4D 64 06 [11:23:03]CheckFolder [11:23:03]dirname=/storage/ofd_packets [11:23:03]CheckFolder done [11:23:03]ProducePacketName [11:23:03]name=ofd_packets/00029801 [11:23:03]NVStorageSaveData ofd_packets/00029801 [11:23:03]File name is /storage/ofd_packets/00029801 [11:23:03]Write 301 bytes [11:23:03]NVStorageSaveData done [11:23:03]OFDSenderStorePacket done [11:23:03]KKMCreateOFDPacket done [11:23:03]NVStorageSaveData kkm_last_timestamp [11:23:03]File name is /storage/kkm_last_timestamp [11:23:03]Write 4 bytes [11:23:03]NVStorageSaveData done [11:23:03]ExternCall_PrintAddStr [11:23:03]wPrintStart [11:23:03]Write to MH i2c: 01 00 00 C1 0E CF [11:23:03]OFD Sender: Processing packet 29801 [packets to send 8, broken 7] [11:23:03]ProducePacketName [11:23:03]name=ofd_packets/00029801 [11:23:03]OFD Sender: To server: pG, [11:23:03]CommunicateWithHost lk.salyk.kg:30040 [11:23:03]ConnectInit lk.salyk.kg [11:23:03]Write i2c OK [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: 01 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: 01 07 00 [11:23:03]MH_I2C_Read... [11:23:03]Read from MH i2c: 01 07 00 C1 0E 00 00 00 00 00 FF 0F E4 [11:23:03]RasterBufferAndPrint [11:23:03]line Счет N : (1)348296 [11:23:03]line ИНН: 02508201610067 [11:23:03]line Контрольно-Кассовый Чек [11:23:03]line ПРОДАЖА [11:23:03]line ТРК (МРК, ГНК) : 13 [11:23:03]line Товар: 2710124130 [11:23:03]line Аи-92-К-5 [11:23:03]line 29.790 * 64.80 [11:23:03]line = 1930.39 [11:23:03]line НДС 12% НСП 1% [11:23:03]line > о реализуемом товаре [11:23:03]line ИТОГО: 1930.39 [11:23:03]line НСП 1% : 17.08 [11:23:03]line НДС 12% : 205.00 [11:23:03]line Наличными: 0.00 [11:23:03]line Безнал.: 1930.39 [11:23:03]line Место: АЗС № 108 "Партнер Нефть" [11:23:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:23:03]line СНО: Общий режим [11:23:03]line Чек 75 16.04.2024 11:23 [11:23:03]line Смена: 118 ФФД: 1.0 [11:23:03]line ЗНМ: 0300000027 [11:23:03]line РНМ: 0000138879044617 [11:23:03]line Версия ККМ: 001 [11:23:03]line Платежная система: О! деньги [11:23:03]line ФМ: 0000000000963154 [11:23:03]line ФД: 29801 [11:23:03]line ФПД: 264191488400318 [11:23:03]line 1/tax-web-control/client/api/v1/ticket?date=20240416T112303&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29801&fm=264191488400318&tin=02508201610067®Number=0000138879044617&sum=193039 [11:23:04]Connected sock=7 [11:23:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BF EF 07 01 A8 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 74 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 0F F2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F F2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 50 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F F2 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 97 5F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 74 00 00 35 04 06 00 F0 47 DF D1 9B BE 92 8F 62 A7 2E 4D 64 06 [11:23:04]written 0, free lines is 4095 [11:23:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 61 2C 47 00 F4 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 74 00 00 F4 03 04 00 35 0A 1E 66 B6 04 01 00 00 7A E1 3C 38 D1 AE 70 D9 [11:23:04]CommunicateWithHost err = 0 [11:23:04]CheckOFDResponse [11:23:04]1017 (14) - 77093643461234 [11:23:04]1041 (16) - 0000000000963154 [11:23:04]1040 (4) - 29801 [11:23:04]1012 (4) - 16.04.2024 05:18 [11:23:04]1206 (1) - 0 [11:23:04]OFD Sender: Remove packet 29801 [11:23:04]ProducePacketName [11:23:04]name=ofd_packets/00029801 [11:23:04]NVStorageDeleteData [11:23:04]Write to MH i2c: 01 00 00 EA 0E F8 [11:23:04]Write i2c OK [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: 01 [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: 01 07 00 [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: 01 07 00 EA 0E 00 00 00 00 00 E2 0C ED [11:23:04]RasterBufferAndPrint [11:23:04]line [11:23:04]line [11:23:04]line [11:23:04]line [11:23:04]line [11:23:04]written 0, free lines is 3304 [11:23:04]MH_Cut [11:23:04]Write to MH i2c: D1 01 00 F1 0E 01 D1 [11:23:04]Write i2c OK [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: D1 [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: D1 01 00 [11:23:04]MH_I2C_Read... [11:23:04]Read from MH i2c: D1 01 00 F1 0E 00 D0 [11:23:04]Write to MH i2c: 01 00 00 F2 0E 00 [11:23:04]Write i2c OK [11:23:04]MH_I2C_Read... [11:23:04]OFD Sender: No OFD packet to send [11:23:05]*** Cut start [11:23:05]*** Partial cut [11:23:05]*** CUTSNS_PIN = 1 [11:23:05]*** CUTSNS_PIN = 0 [11:23:05]*** Brake cut motor [11:23:05]Read from MH i2c: 01 [11:23:05]MH_I2C_Read... [11:23:05]*** Stop cut motor [11:23:05]*** Cut end [11:23:05]Read from MH i2c: 01 07 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: 01 07 00 F2 0E 00 00 00 00 00 FF 0F 15 [11:23:05]process_action close_receipt done [11:23:05]requested_data is exist [11:23:05]produce_requested_data [11:23:05]requested_item fm.sn is exist - process it [11:23:05]wFMCommunicate request_size=4 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 11 00 00 [11:23:05]Write to MH i2c: E2 08 00 F3 0E 80 11 00 00 00 00 00 00 7B [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 17 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 17 00 F3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CA [11:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:23:05]wFMCommunicate OK [11:23:05]requested_item fd.num is exist - process it [11:23:05]SAM_PROTO_GetFieldsCounters [11:23:05]wFMCommunicate request_size=4 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 13 00 00 [11:23:05]Write to MH i2c: E2 08 00 F4 0E 80 13 00 00 00 00 00 00 7E [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 62 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 62 00 F4 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 69 74 00 00 0E 04 04 00 76 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 F0 [11:23:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 69 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:06]wFMCommunicate OK [11:23:06]SAM_PROTO_GetFieldsCounters done [11:23:06]requested_item shift.num is exist - process it [11:23:06]requested_item shift.opened is exist - process it [11:23:06]req_shift_opened [11:23:06]FM_GetShiftState [11:23:06]SAM_PROTO_GetShiftState [11:23:06]wFMCommunicate request_size=4 [11:23:06]MH_SAM_APDU [11:23:06]CAPDU: 80 13 01 00 [11:23:06]Write to MH i2c: E2 08 00 F5 0E 80 13 01 00 00 00 00 00 80 [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 0E 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 0E 00 F5 0E 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 2E [11:23:06]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:23:06]wFMCommunicate OK [11:23:06]SAM_PROTO_GetShiftState done [11:23:06]FM_GetShiftState done [11:23:06]req_shift_opened done [11:23:06]requested_item shift.open_date is exist - process it [11:23:06]req_shift_open_date [11:23:06]req_shift_open_date done [11:23:06]produce_requested_data done [11:23:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29801,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:23:06]process_action_free close_receipt [11:23:06]json_value_free [11:23:06]json_value_free done [11:23:06]process_json_proto returns [11:23:06]Send response to host [11:23:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29801,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:23:06]free response buf [11:23:06]execute_script done [11:23:06]execute_script returns [11:23:06]free content buf [11:23:06]Sock 9.Close socket [11:23:06]Sock 9.Thread stoped [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:16]accept exits with 10 [11:28:16]New connection [11:28:16]New thread 3067276644 created [11:28:16]Thread 3067133284 joined [11:28:16]Waiting for new connection... [11:28:16] Sock 10.Parse request [11:28:16]Sock 10.Check first char [11:28:16]Sock 10.First char is OK [11:28:16]request: POST /json_proto HTTP/1.0 [11:28:16]Method: POST [11:28:16]URL: /json_proto [11:28:16]Method is POST - this is cgi request [11:28:16]url: /json_proto [11:28:16]query_string will be loaded in cgi processing [11:28:16]execute_cgi json_proto POST (null) [11:28:16]execute_cgi path=json_proto method=POST [11:28:16]POST find Content-Length [11:28:16]Host: 172.17.33.3:8080 [11:28:16]Content-Length: 677 [11:28:16]Content-Type: application/json [11:28:16] [11:28:16]POST finish read [11:28:16]Found Content-Length = 677 [11:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "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" ] } } [11:28:16]execute_script... [11:28:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "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" ] } } [11:28:16]POST & json_proto [11:28:16]process_json_proto [11:28:16]json parsed OK: [11:28:16]protocol is kg_v1.0 [11:28:16]action value=close_receipt [11:28:16]process_action close_receipt [11:28:16]cmd_close_receipt [11:28:16]MH_GetDate [11:28:16]Write to MH i2c: F0 00 00 F6 0E F3 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: F0 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: F0 09 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: F0 09 00 F6 0E 00 D2 60 1E 66 23 5B 8F 65 24 [11:28:16]GetLastDocTimeStamp 1713266583 [11:28:16]current date 1713266898 [11:28:16]FM_GetShiftState [11:28:16]SAM_PROTO_GetShiftState [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 13 01 00 [11:28:16]Write to MH i2c: E2 08 00 F7 0E 80 13 01 00 00 00 00 00 82 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0E 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0E 00 F7 0E 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 30 [11:28:16]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:28:16]wFMCommunicate OK [11:28:16]SAM_PROTO_GetShiftState done [11:28:16]FM_GetShiftState done [11:28:16]opened in 1713226843 [11:28:16]opened+sec_in_day 1713313243 [11:28:16]quantity*price = 50025 [11:28:16]sum+1 = 50027 [11:28:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 76 16.04.2024 11:28 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29802 ФПД: 115746550373557 1/tax-web-control/client/api/v1/ticket?date=20240416T112818&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29802&fm=115746550373557&tin=02508201610067®Number=0000138879044617&sum=50000 [11:28:18]StoreToDocumentArchive [11:28:18]shift 118 fd 29802 [11:28:18]save to /storage/0118/doc_00029802 [11:28:18]save last doc name /storage/0118/doc_00029802 to /storage/kkm_last_doc_name [11:28:18]save OK [11:28:18]Clear old archive folders... [11:28:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:18]tlvbuf is 001754A0 [11:28:18]SAM_PROTO_ClearQueue [11:28:18]wFMCommunicate request_size=4 [11:28:18]MH_SAM_APDU [11:28:18]CAPDU: 80 09 00 00 [11:28:18]Write to MH i2c: E2 08 00 04 0F 80 09 00 00 00 00 00 00 85 [11:28:18]Write i2c OK [11:28:18]MH_I2C_Read... [11:28:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:18]Read from MH i2c: E2 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: E2 03 00 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: E2 03 00 04 0F 00 90 00 87 [11:28:18]RAPDU: 90 00 [11:28:18]wFMCommunicate OK [11:28:18]SAM_PROTO_ClearQueue done [11:28:18]KKMCreateOFDPacket [11:28:18]OFDProtocolAddRootSTLVToBuf [11:28:18]FM_MakeSignedData [11:28:18]FM_MakeSignedData [11:28:18]SAM_PROTO_SignData [11:28:18]wFMCommunicate request_size=4 [11:28:18]MH_SAM_APDU [11:28:18]CAPDU: 80 0D 01 02 [11:28:18]Write to MH i2c: E2 08 00 05 0F 80 0D 01 02 00 00 00 00 8D [11:28:18]Write i2c OK [11:28:18]MH_I2C_Read... [11:28:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:18]Read from MH i2c: E2 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: E2 03 00 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: E2 03 00 05 0F 00 90 00 88 [11:28:18]RAPDU: 90 00 [11:28:18]wFMCommunicate OK [11:28:18]wFMCommunicate request_size=255 [11:28:18]MH_SAM_APDU [11:28:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 4C 00 00 00 F4 03 04 00 D2 60 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 74 00 00 35 04 06 00 69 [11:28:18]Write to MH i2c: E2 02 01 06 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 4C 00 00 00 F4 03 04 00 D2 60 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 74 00 00 35 04 06 00 69 00 00 05 [11:28:18]Write i2c OK [11:28:18]MH_I2C_Read... [11:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:18]Read from MH i2c: E2 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: E2 03 00 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: E2 03 00 06 0F 00 90 00 89 [11:28:18]RAPDU: 90 00 [11:28:18]wFMCommunicate OK [11:28:18]wFMCommunicate request_size=10 [11:28:18]MH_SAM_APDU [11:28:18]CAPDU: 80 0D 02 02 05 45 58 04 DC B5 [11:28:18]Write to MH i2c: E2 0D 00 07 0F 80 0D 02 02 05 00 45 58 04 DC B5 00 00 CC [11:28:18]Write i2c OK [11:28:18]MH_I2C_Read... [11:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:18]Read from MH i2c: E2 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: E2 03 00 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: E2 03 00 07 0F 00 90 00 8A [11:28:18]RAPDU: 90 00 [11:28:18]wFMCommunicate OK [11:28:18]wFMCommunicate request_size=4 [11:28:18]MH_SAM_APDU [11:28:18]CAPDU: 80 0D 03 02 [11:28:18]Write to MH i2c: E2 08 00 08 0F 80 0D 03 02 00 00 00 00 92 [11:28:18]Write i2c OK [11:28:18]MH_I2C_Read... [11:28:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:18]Read from MH i2c: E2 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: E2 0B 00 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: E2 0B 00 08 0F 00 B1 F6 EF 8F 36 9D 29 C2 90 00 76 [11:28:18]RAPDU: B1 F6 EF 8F 36 9D 29 C2 90 00 [11:28:18]wFMCommunicate OK [11:28:18]SAM_PROTO_SignData done [11:28:18]FM_MakeSignedData done [11:28:18]CreateOFDProtocolMessage [11:28:18]wFMCommunicate request_size=4 [11:28:18]MH_SAM_APDU [11:28:18]CAPDU: 80 11 00 00 [11:28:18]Write to MH i2c: E2 08 00 09 0F 80 11 00 00 00 00 00 00 92 [11:28:18]Write i2c OK [11:28:18]MH_I2C_Read... [11:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:18]Read from MH i2c: E2 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: E2 17 00 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: E2 17 00 09 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E1 [11:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:28:18]wFMCommunicate OK [11:28:18]CreateOFDProtocolMessage done [11:28:18]OFDSenderStorePacket 29802 [11:28:18]StoreOFDPacket docnum=29802 [11:28:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 84 72 07 01 0E CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 4C 00 00 00 F4 03 04 00 D2 60 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 74 00 00 35 04 06 00 69 45 58 04 DC B5 B1 F6 EF 8F 36 9D 29 C2 [11:28:18]CheckFolder [11:28:18]dirname=/storage/ofd_packets [11:28:18]CheckFolder done [11:28:18]ProducePacketName [11:28:18]name=ofd_packets/00029802 [11:28:18]NVStorageSaveData ofd_packets/00029802 [11:28:18]File name is /storage/ofd_packets/00029802 [11:28:18]Write 301 bytes [11:28:18]NVStorageSaveData done [11:28:18]OFDSenderStorePacket done [11:28:18]KKMCreateOFDPacket done [11:28:18]NVStorageSaveData kkm_last_timestamp [11:28:18]File name is /storage/kkm_last_timestamp [11:28:18]Write 4 bytes [11:28:18]NVStorageSaveData done [11:28:18]ExternCall_PrintAddStr [11:28:18]wPrintStart [11:28:18]Write to MH i2c: 01 00 00 0A 0F 19 [11:28:18]Write i2c OK [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: 01 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: 01 07 00 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: 01 07 00 0A 0F 00 00 00 00 00 FF 0F 2E [11:28:18]RasterBufferAndPrint [11:28:18]line Счет N : (1)348298 [11:28:18]line ИНН: 02508201610067 [11:28:18]line Контрольно-Кассовый Чек [11:28:18]line ПРОДАЖА [11:28:18]line ТРК (МРК, ГНК) : 42 [11:28:18]line Товар: 2710124130 [11:28:18]line Аи-92-К-5 [11:28:18]line 7.720 * 64.80 [11:28:18]line = 500.26 [11:28:18]line НДС 12% НСП 1% [11:28:18]line > о реализуемом товаре [11:28:18]line ОКРУГЛЕНИЕ: -0.26 [11:28:18]line ИТОГО: 500.00 [11:28:18]line Внесено: 500.00 [11:28:18]line СДАЧА: 0.00 [11:28:18]line НСП 1% : 4.43 [11:28:18]line НДС 12% : 53.12 [11:28:18]line Наличными: 500.00 [11:28:18]line Безнал.: 0.00 [11:28:18]line Место: АЗС № 108 "Партнер Нефть" [11:28:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:28:18]line СНО: Общий режим [11:28:18]line Чек 76 16.04.2024 11:28 [11:28:18]line Смена: 118 ФФД: 1.0 [11:28:18]line ЗНМ: 0300000027 [11:28:18]line РНМ: 0000138879044617 [11:28:18]line Версия ККМ: 001 [11:28:18]line ФМ: 0000000000963154 [11:28:18]line ФД: 29802 [11:28:18]line ФПД: 115746550373557 [11:28:18]line 1/tax-web-control/client/api/v1/ticket?date=20240416T112818&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29802&fm=115746550373557&tin=02508201610067®Number=0000138879044617&sum=50000 [11:28:18]OFD Sender: Processing packet 29802 [packets to send 8, broken 7] [11:28:18]ProducePacketName [11:28:18]name=ofd_packets/00029802 [11:28:18]OFD Sender: To server: pG, [11:28:18]CommunicateWithHost lk.salyk.kg:30040 [11:28:19]ConnectInit lk.salyk.kg [11:28:19]written 0, free lines is 4095 [11:28:19]Connected sock=9 [11:28:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 84 72 07 01 0E CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 4C 00 00 00 F4 03 04 00 D2 60 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 74 00 00 35 04 06 00 69 45 58 04 DC B5 B1 F6 EF 8F 36 9D 29 C2 [11:28:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6E 15 47 00 AA D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 74 00 00 F4 03 04 00 70 0B 1E 66 B6 04 01 00 00 6D 16 52 94 D2 C6 7C 03 [11:28:19]CommunicateWithHost err = 0 [11:28:19]CheckOFDResponse [11:28:19]1017 (14) - 77093643461234 [11:28:19]1041 (16) - 0000000000963154 [11:28:19]1040 (4) - 29802 [11:28:19]1012 (4) - 16.04.2024 05:24 [11:28:19]1206 (1) - 0 [11:28:19]OFD Sender: Remove packet 29802 [11:28:19]ProducePacketName [11:28:19]name=ofd_packets/00029802 [11:28:19]NVStorageDeleteData [11:28:19]Write to MH i2c: 01 00 00 34 0F 43 [11:28:19]Write i2c OK [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: 01 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: 01 07 00 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: 01 07 00 34 0F 00 00 00 00 00 DE 0C 34 [11:28:19]RasterBufferAndPrint [11:28:19]line [11:28:19]line [11:28:19]line [11:28:19]line [11:28:19]line [11:28:19]written 0, free lines is 3301 [11:28:19]MH_Cut [11:28:19]Write to MH i2c: D1 01 00 3B 0F 01 1C [11:28:19]Write i2c OK [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: D1 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: D1 01 00 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: D1 01 00 3B 0F 00 1B [11:28:19]Write to MH i2c: 01 00 00 3C 0F 4B [11:28:19]Write i2c OK [11:28:19]MH_I2C_Read... [11:28:19]OFD Sender: No OFD packet to send [11:28:20]*** Cut start [11:28:20]*** Partial cut [11:28:20]*** CUTSNS_PIN = 1 [11:28:20]*** CUTSNS_PIN = 0 [11:28:20]*** Brake cut motor [11:28:20]Read from MH i2c: 01 [11:28:20]MH_I2C_Read... [11:28:20]*** Stop cut motor [11:28:20]*** Cut end [11:28:20]Read from MH i2c: 01 07 00 [11:28:20]MH_I2C_Read... [11:28:20]Read from MH i2c: 01 07 00 3C 0F 00 00 00 00 00 FF 0F 60 [11:28:20]process_action close_receipt done [11:28:20]requested_data is exist [11:28:20]produce_requested_data [11:28:20]requested_item fm.sn is exist - process it [11:28:20]wFMCommunicate request_size=4 [11:28:20]MH_SAM_APDU [11:28:20]CAPDU: 80 11 00 00 [11:28:20]Write to MH i2c: E2 08 00 3D 0F 80 11 00 00 00 00 00 00 C6 [11:28:20]Write i2c OK [11:28:20]MH_I2C_Read... [11:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:20]Read from MH i2c: E2 [11:28:20]MH_I2C_Read... [11:28:20]Read from MH i2c: E2 17 00 [11:28:20]MH_I2C_Read... [11:28:20]Read from MH i2c: E2 17 00 3D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 15 [11:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:28:20]wFMCommunicate OK [11:28:20]requested_item fd.num is exist - process it [11:28:20]SAM_PROTO_GetFieldsCounters [11:28:20]wFMCommunicate request_size=4 [11:28:20]MH_SAM_APDU [11:28:20]CAPDU: 80 13 00 00 [11:28:20]Write to MH i2c: E2 08 00 3E 0F 80 13 00 00 00 00 00 00 C9 [11:28:20]Write i2c OK [11:28:20]MH_I2C_Read... [11:28:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:21]Read from MH i2c: E2 [11:28:21]MH_I2C_Read... [11:28:21]Read from MH i2c: E2 62 00 [11:28:21]MH_I2C_Read... [11:28:21]Read from MH i2c: E2 62 00 3E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6A 74 00 00 0E 04 04 00 76 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 3F [11:28:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6A 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:21]wFMCommunicate OK [11:28:21]SAM_PROTO_GetFieldsCounters done [11:28:21]requested_item shift.num is exist - process it [11:28:21]requested_item shift.opened is exist - process it [11:28:21]req_shift_opened [11:28:21]FM_GetShiftState [11:28:21]SAM_PROTO_GetShiftState [11:28:21]wFMCommunicate request_size=4 [11:28:21]MH_SAM_APDU [11:28:21]CAPDU: 80 13 01 00 [11:28:21]Write to MH i2c: E2 08 00 3F 0F 80 13 01 00 00 00 00 00 CB [11:28:21]Write i2c OK [11:28:21]MH_I2C_Read... [11:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:21]Read from MH i2c: E2 [11:28:21]MH_I2C_Read... [11:28:21]Read from MH i2c: E2 0E 00 [11:28:21]MH_I2C_Read... [11:28:21]Read from MH i2c: E2 0E 00 3F 0F 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 79 [11:28:21]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:28:21]wFMCommunicate OK [11:28:21]SAM_PROTO_GetShiftState done [11:28:21]FM_GetShiftState done [11:28:21]req_shift_opened done [11:28:21]requested_item shift.open_date is exist - process it [11:28:21]req_shift_open_date [11:28:21]req_shift_open_date done [11:28:21]produce_requested_data done [11:28:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29802,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:28:21]process_action_free close_receipt [11:28:21]json_value_free [11:28:21]json_value_free done [11:28:21]process_json_proto returns [11:28:21]Send response to host [11:28:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29802,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:28:21]free response buf [11:28:21]execute_script done [11:28:21]execute_script returns [11:28:21]free content buf [11:28:21]Sock 10.Close socket [11:28:21]Sock 10.Thread stoped [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:41]accept exits with 7 [11:28:41]New connection [11:28:41]New thread 3067133284 created [11:28:41]Thread 3067276644 joined [11:28:41]Waiting for new connection... [11:28:41] Sock 7.Parse request [11:28:41]Sock 7.Check first char [11:28:41]Sock 7.First char is OK [11:28:41]request: POST /json_proto HTTP/1.0 [11:28:41]Method: POST [11:28:41]URL: /json_proto [11:28:41]Method is POST - this is cgi request [11:28:41]url: /json_proto [11:28:41]query_string will be loaded in cgi processing [11:28:41]execute_cgi json_proto POST (null) [11:28:41]execute_cgi path=json_proto method=POST [11:28:41]POST find Content-Length [11:28:41]Host: 172.17.33.3:8080 [11:28:41]Content-Length: 805 [11:28:41]Content-Type: application/json [11:28:41] [11:28:41]POST finish read [11:28:41]Found Content-Length = 805 [11:28:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:41]execute_script... [11:28:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:41]POST & json_proto [11:28:41]process_json_proto [11:28:41]json parsed OK: [11:28:41]protocol is kg_v1.0 [11:28:41]action value=close_receipt [11:28:41]process_action close_receipt [11:28:41]cmd_close_receipt [11:28:41]MH_GetDate [11:28:41]Write to MH i2c: F0 00 00 40 0F 3E [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: F0 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: F0 09 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: F0 09 00 40 0F 00 EB 60 1E 66 23 5B 8F 65 88 [11:28:41]GetLastDocTimeStamp 1713266898 [11:28:41]current date 1713266923 [11:28:41]FM_GetShiftState [11:28:41]SAM_PROTO_GetShiftState [11:28:41]wFMCommunicate request_size=4 [11:28:41]MH_SAM_APDU [11:28:41]CAPDU: 80 13 01 00 [11:28:41]Write to MH i2c: E2 08 00 41 0F 80 13 01 00 00 00 00 00 CD [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:41]Read from MH i2c: E2 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 0E 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 0E 00 41 0F 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 7B [11:28:41]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:28:41]wFMCommunicate OK [11:28:41]SAM_PROTO_GetShiftState done [11:28:41]FM_GetShiftState done [11:28:41]opened in 1713226843 [11:28:41]opened+sec_in_day 1713313243 [11:28:41]quantity*price = 300056 [11:28:41]sum+1 = 300057 [11:28:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.56 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.56 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 77 16.04.2024 11:28 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29803 ФПД: 10188473561408 1/tax-web-control/client/api/v1/ticket?date=20240416T112843&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29803&fm=10188473561408&tin=02508201610067®Number=0000138879044617&sum=300056 [11:28:42]StoreToDocumentArchive [11:28:42]shift 118 fd 29803 [11:28:42]save to /storage/0118/doc_00029803 [11:28:42]save last doc name /storage/0118/doc_00029803 to /storage/kkm_last_doc_name [11:28:42]save OK [11:28:42]Clear old archive folders... [11:28:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:28:42]tlvbuf is 001750A0 [11:28:42]SAM_PROTO_ClearQueue [11:28:42]wFMCommunicate request_size=4 [11:28:42]MH_SAM_APDU [11:28:42]CAPDU: 80 09 00 00 [11:28:42]Write to MH i2c: E2 08 00 4E 0F 80 09 00 00 00 00 00 00 CF [11:28:42]Write i2c OK [11:28:42]MH_I2C_Read... [11:28:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:42]Read from MH i2c: E2 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: E2 03 00 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: E2 03 00 4E 0F 00 90 00 D1 [11:28:42]RAPDU: 90 00 [11:28:42]wFMCommunicate OK [11:28:42]SAM_PROTO_ClearQueue done [11:28:42]KKMCreateOFDPacket [11:28:42]OFDProtocolAddRootSTLVToBuf [11:28:42]FM_MakeSignedData [11:28:42]FM_MakeSignedData [11:28:42]SAM_PROTO_SignData [11:28:42]wFMCommunicate request_size=4 [11:28:42]MH_SAM_APDU [11:28:42]CAPDU: 80 0D 01 02 [11:28:42]Write to MH i2c: E2 08 00 4F 0F 80 0D 01 02 00 00 00 00 D7 [11:28:42]Write i2c OK [11:28:42]MH_I2C_Read... [11:28:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:42]Read from MH i2c: E2 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: E2 03 00 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: E2 03 00 4F 0F 00 90 00 D2 [11:28:42]RAPDU: 90 00 [11:28:42]wFMCommunicate OK [11:28:42]wFMCommunicate request_size=255 [11:28:42]MH_SAM_APDU [11:28:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 EB 60 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 74 00 00 35 04 06 00 09 44 30 58 [11:28:42]Write to MH i2c: E2 02 01 50 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 EB 60 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 74 00 00 35 04 06 00 09 44 30 58 00 00 02 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 50 0F 00 90 00 D3 [11:28:43]RAPDU: 90 00 [11:28:43]wFMCommunicate OK [11:28:43]wFMCommunicate request_size=7 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 0D 02 02 02 F1 40 [11:28:43]Write to MH i2c: E2 0A 00 51 0F 80 0D 02 02 02 00 F1 40 00 00 0F [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 03 00 51 0F 00 90 00 D4 [11:28:43]RAPDU: 90 00 [11:28:43]wFMCommunicate OK [11:28:43]wFMCommunicate request_size=4 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 0D 03 02 [11:28:43]Write to MH i2c: E2 08 00 52 0F 80 0D 03 02 00 00 00 00 DC [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 0B 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 0B 00 52 0F 00 23 67 79 88 F3 74 69 BD 90 00 F5 [11:28:43]RAPDU: 23 67 79 88 F3 74 69 BD 90 00 [11:28:43]wFMCommunicate OK [11:28:43]SAM_PROTO_SignData done [11:28:43]FM_MakeSignedData done [11:28:43]CreateOFDProtocolMessage [11:28:43]wFMCommunicate request_size=4 [11:28:43]MH_SAM_APDU [11:28:43]CAPDU: 80 11 00 00 [11:28:43]Write to MH i2c: E2 08 00 53 0F 80 11 00 00 00 00 00 00 DC [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:43]Read from MH i2c: E2 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 17 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: E2 17 00 53 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2B [11:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:28:43]wFMCommunicate OK [11:28:43]CreateOFDProtocolMessage done [11:28:43]OFDSenderStorePacket 29803 [11:28:43]StoreOFDPacket docnum=29803 [11:28:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 9E 75 04 01 BF 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 EB 60 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 74 00 00 35 04 06 00 09 44 30 58 F1 40 23 67 79 88 F3 74 69 BD [11:28:43]CheckFolder [11:28:43]dirname=/storage/ofd_packets [11:28:43]CheckFolder done [11:28:43]ProducePacketName [11:28:43]name=ofd_packets/00029803 [11:28:43]NVStorageSaveData ofd_packets/00029803 [11:28:43]File name is /storage/ofd_packets/00029803 [11:28:43]Write 298 bytes [11:28:43]NVStorageSaveData done [11:28:43]OFDSenderStorePacket done [11:28:43]KKMCreateOFDPacket done [11:28:43]NVStorageSaveData kkm_last_timestamp [11:28:43]File name is /storage/kkm_last_timestamp [11:28:43]Write 4 bytes [11:28:43]NVStorageSaveData done [11:28:43]ExternCall_PrintAddStr [11:28:43]wPrintStart [11:28:43]Write to MH i2c: 01 00 00 54 0F 63 [11:28:43]Write i2c OK [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: 01 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: 01 07 00 [11:28:43]MH_I2C_Read... [11:28:43]Read from MH i2c: 01 07 00 54 0F 00 00 00 00 00 FF 0F 78 [11:28:43]RasterBufferAndPrint [11:28:43]line Счет N : (1)348297 [11:28:43]line ИНН: 02508201610067 [11:28:43]line Контрольно-Кассовый Чек [11:28:43]line ПРОДАЖА [11:28:43]line ТРК (МРК, ГНК) : 21 [11:28:43]line Товар: 2710194210 [11:28:43]line ДТ-К-5 [11:28:43]line 41.160 * 72.90 [11:28:43]line = 3000.56 [11:28:43]line НДС 12% НСП 1% [11:28:43]line > о реализуемом товаре [11:28:43]line ИТОГО: 3000.56 [11:28:43]line НСП 1% : 26.55 [11:28:43]line НДС 12% : 318.64 [11:28:43]line Наличными: 0.00 [11:28:43]line Безнал.: 3000.56 [11:28:43]line Место: АЗС № 108 "Партнер Нефть" [11:28:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:28:43]line СНО: Общий режим [11:28:43]line Чек 77 16.04.2024 11:28 [11:28:43]line Смена: 118 ФФД: 1.0 [11:28:43]line ЗНМ: 0300000027 [11:28:43]line РНМ: 0000138879044617 [11:28:43]line Версия ККМ: 001 [11:28:43]line Платежная система: О! деньги [11:28:43]line ФМ: 0000000000963154 [11:28:43]line ФД: 29803 [11:28:43]line ФПД: 10188473561408 [11:28:43]line 1/tax-web-control/client/api/v1/ticket?date=20240416T112843&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29803&fm=10188473561408&tin=02508201610067®Number=0000138879044617&sum=300056 [11:28:43]OFD Sender: Processing packet 29803 [packets to send 8, broken 7] [11:28:43]ProducePacketName [11:28:43]name=ofd_packets/00029803 [11:28:43]OFD Sender: To server: pG, [11:28:43]CommunicateWithHost lk.salyk.kg:30040 [11:28:43]ConnectInit lk.salyk.kg [11:28:43]written 0, free lines is 4095 [11:28:43]Connected sock=10 [11:28:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 9E 75 04 01 BF 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 EB 60 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 74 00 00 35 04 06 00 09 44 30 58 F1 40 23 67 79 88 F3 74 69 BD [11:28:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 27 B2 47 00 56 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 74 00 00 F4 03 04 00 89 0B 1E 66 B6 04 01 00 00 A7 74 70 8D 11 DC DA A4 [11:28:44]CommunicateWithHost err = 0 [11:28:44]CheckOFDResponse [11:28:44]1017 (14) - 77093643461234 [11:28:44]1041 (16) - 0000000000963154 [11:28:44]1040 (4) - 29803 [11:28:44]1012 (4) - 16.04.2024 05:24 [11:28:44]1206 (1) - 0 [11:28:44]OFD Sender: Remove packet 29803 [11:28:44]ProducePacketName [11:28:44]name=ofd_packets/00029803 [11:28:44]NVStorageDeleteData [11:28:44]Write to MH i2c: 01 00 00 7D 0F 8C [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: 01 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: 01 07 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: 01 07 00 7D 0F 00 00 00 00 00 EA 0C 89 [11:28:44]RasterBufferAndPrint [11:28:44]line [11:28:44]line [11:28:44]line [11:28:44]line [11:28:44]line [11:28:44]written 0, free lines is 3312 [11:28:44]MH_Cut [11:28:44]Write to MH i2c: D1 01 00 84 0F 01 65 [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: D1 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: D1 01 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: D1 01 00 84 0F 00 64 [11:28:44]Write to MH i2c: 01 00 00 85 0F 94 [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]OFD Sender: No OFD packet to send [11:28:44]*** Cut start [11:28:44]*** Partial cut [11:28:44]*** CUTSNS_PIN = 1 [11:28:44]*** CUTSNS_PIN = 0 [11:28:45]*** Brake cut motor [11:28:45]Read from MH i2c: 01 [11:28:45]MH_I2C_Read... [11:28:45]*** Stop cut motor [11:28:45]*** Cut end [11:28:45]Read from MH i2c: 01 07 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: 01 07 00 85 0F 00 00 00 00 00 FF 0F A9 [11:28:45]process_action close_receipt done [11:28:45]requested_data is exist [11:28:45]produce_requested_data [11:28:45]requested_item fm.sn is exist - process it [11:28:45]wFMCommunicate request_size=4 [11:28:45]MH_SAM_APDU [11:28:45]CAPDU: 80 11 00 00 [11:28:45]Write to MH i2c: E2 08 00 86 0F 80 11 00 00 00 00 00 00 0F [11:28:45]Write i2c OK [11:28:45]MH_I2C_Read... [11:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:45]Read from MH i2c: E2 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 17 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 17 00 86 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5E [11:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:28:45]wFMCommunicate OK [11:28:45]requested_item fd.num is exist - process it [11:28:45]SAM_PROTO_GetFieldsCounters [11:28:45]wFMCommunicate request_size=4 [11:28:45]MH_SAM_APDU [11:28:45]CAPDU: 80 13 00 00 [11:28:45]Write to MH i2c: E2 08 00 87 0F 80 13 00 00 00 00 00 00 12 [11:28:45]Write i2c OK [11:28:45]MH_I2C_Read... [11:28:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:45]Read from MH i2c: E2 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 62 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 62 00 87 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6B 74 00 00 0E 04 04 00 76 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 8C [11:28:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6B 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:45]wFMCommunicate OK [11:28:45]SAM_PROTO_GetFieldsCounters done [11:28:45]requested_item shift.num is exist - process it [11:28:45]requested_item shift.opened is exist - process it [11:28:45]req_shift_opened [11:28:45]FM_GetShiftState [11:28:45]SAM_PROTO_GetShiftState [11:28:45]wFMCommunicate request_size=4 [11:28:45]MH_SAM_APDU [11:28:45]CAPDU: 80 13 01 00 [11:28:45]Write to MH i2c: E2 08 00 88 0F 80 13 01 00 00 00 00 00 14 [11:28:45]Write i2c OK [11:28:45]MH_I2C_Read... [11:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:45]Read from MH i2c: E2 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 0E 00 [11:28:45]MH_I2C_Read... [11:28:45]Read from MH i2c: E2 0E 00 88 0F 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 C2 [11:28:45]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:28:45]wFMCommunicate OK [11:28:45]SAM_PROTO_GetShiftState done [11:28:45]FM_GetShiftState done [11:28:45]req_shift_opened done [11:28:45]requested_item shift.open_date is exist - process it [11:28:45]req_shift_open_date [11:28:45]req_shift_open_date done [11:28:45]produce_requested_data done [11:28:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29803,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:28:45]process_action_free close_receipt [11:28:45]json_value_free [11:28:45]json_value_free done [11:28:45]process_json_proto returns [11:28:45]Send response to host [11:28:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29803,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:28:45]free response buf [11:28:45]execute_script done [11:28:45]execute_script returns [11:28:45]free content buf [11:28:45]Sock 7.Close socket [11:28:45]Sock 7.Thread stoped [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:25]accept exits with 9 [11:33:25]New connection [11:33:25]New thread 3067276644 created [11:33:25]Thread 3067133284 joined [11:33:25]Waiting for new connection... [11:33:25] Sock 9.Parse request [11:33:25]Sock 9.Check first char [11:33:25]Sock 9.First char is OK [11:33:25]request: POST /json_proto HTTP/1.0 [11:33:25]Method: POST [11:33:25]URL: /json_proto [11:33:25]Method is POST - this is cgi request [11:33:25]url: /json_proto [11:33:25]query_string will be loaded in cgi processing [11:33:25]execute_cgi json_proto POST (null) [11:33:25]execute_cgi path=json_proto method=POST [11:33:25]POST find Content-Length [11:33:25]Host: 172.17.33.3:8080 [11:33:25]Content-Length: 1166 [11:33:25]Content-Type: application/json [11:33:25] [11:33:25]POST finish read [11:33:25]Found Content-Length = 1166 [11:33:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348300\u000A16.04.2024 11:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30081063\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:25]execute_script... [11:33:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348300\u000A16.04.2024 11:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30081063\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:25]POST & json_proto [11:33:25]process_json_proto [11:33:25]json parsed OK: [11:33:25]protocol is kg_v1.0 [11:33:25]action value=print_text [11:33:25]process_action print_text [11:33:25]cmd_print_text [11:33:25]ExternCall_PrintAddStr [11:33:25]wPrintStart [11:33:25]Write to MH i2c: 01 00 00 89 0F 98 [11:33:25]Write i2c OK [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: 01 [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: 01 07 00 [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: 01 07 00 89 0F 00 00 00 00 00 FF 0F AD [11:33:25]RasterBufferAndPrint [11:33:25]line *****ТОВАРНЫЙ ЧЕК***** [11:33:25]line АЗС 108 [11:33:25]line Партнер нефть [11:33:25]line 02508201610067 [11:33:25]line Кассир : Шадыканова Ж. [11:33:25]line Счет N : (1)348300 [11:33:25]line 16.04.2024 11:14 [11:33:25]line ПРОДАЖА [11:33:25]line ТРК (МРК, ГНК): 11 [11:33:25]line Вид ГСМ : 2710194210 [11:33:25]line ДТ-К-5 [11:33:25]line 60.000 x 72.90 [11:33:25]line ИТОГ: 4374.00 [11:33:25]line Тип оплаты: Талоны: ТК ГПНА Online [11:33:25]line 30081063 [11:33:25]line ______________________ [11:33:25]line (подпись) [11:33:25]written 0, free lines is 4095 [11:33:25]Write to MH i2c: 01 00 00 9E 0F AD [11:33:25]Write i2c OK [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: 01 [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: 01 07 00 [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: 01 07 00 9E 0F 00 00 00 00 00 F3 0D B4 [11:33:25]RasterBufferAndPrint [11:33:25]line [11:33:25]line [11:33:25]line [11:33:25]line [11:33:25]line [11:33:25]written 0, free lines is 3573 [11:33:25]MH_Cut [11:33:25]Write to MH i2c: D1 01 00 A5 0F 01 86 [11:33:25]Write i2c OK [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: D1 [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: D1 01 00 [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: D1 01 00 A5 0F 00 85 [11:33:25]Write to MH i2c: 01 00 00 A6 0F B5 [11:33:25]Write i2c OK [11:33:25]MH_I2C_Read... [11:33:25]*** Cut start [11:33:25]*** Partial cut [11:33:25]*** CUTSNS_PIN = 1 [11:33:26]*** CUTSNS_PIN = 0 [11:33:26]*** Brake cut motor [11:33:26]Read from MH i2c: 01 [11:33:26]MH_I2C_Read... [11:33:26]*** Stop cut motor [11:33:26]*** Cut end [11:33:26]Read from MH i2c: 01 07 00 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: 01 07 00 A6 0F 00 00 00 00 00 FF 0F CA [11:33:26]process_action print_text done [11:33:26]requested_data is exist [11:33:26]produce_requested_data [11:33:26]requested_item fm.sn is exist - process it [11:33:26]wFMCommunicate request_size=4 [11:33:26]MH_SAM_APDU [11:33:26]CAPDU: 80 11 00 00 [11:33:26]Write to MH i2c: E2 08 00 A7 0F 80 11 00 00 00 00 00 00 30 [11:33:26]Write i2c OK [11:33:26]MH_I2C_Read... [11:33:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:26]Read from MH i2c: E2 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 17 00 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 17 00 A7 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7F [11:33:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:33:26]wFMCommunicate OK [11:33:26]requested_item fd.num is exist - process it [11:33:26]SAM_PROTO_GetFieldsCounters [11:33:26]wFMCommunicate request_size=4 [11:33:26]MH_SAM_APDU [11:33:26]CAPDU: 80 13 00 00 [11:33:26]Write to MH i2c: E2 08 00 A8 0F 80 13 00 00 00 00 00 00 33 [11:33:26]Write i2c OK [11:33:26]MH_I2C_Read... [11:33:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:26]Read from MH i2c: E2 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 62 00 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 62 00 A8 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6B 74 00 00 0E 04 04 00 76 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 AD [11:33:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6B 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:26]wFMCommunicate OK [11:33:26]SAM_PROTO_GetFieldsCounters done [11:33:26]requested_item shift.num is exist - process it [11:33:26]requested_item shift.opened is exist - process it [11:33:26]req_shift_opened [11:33:26]FM_GetShiftState [11:33:26]SAM_PROTO_GetShiftState [11:33:26]wFMCommunicate request_size=4 [11:33:26]MH_SAM_APDU [11:33:26]CAPDU: 80 13 01 00 [11:33:26]Write to MH i2c: E2 08 00 A9 0F 80 13 01 00 00 00 00 00 35 [11:33:26]Write i2c OK [11:33:26]MH_I2C_Read... [11:33:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:26]Read from MH i2c: E2 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 0E 00 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 0E 00 A9 0F 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 E3 [11:33:26]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:33:26]wFMCommunicate OK [11:33:26]SAM_PROTO_GetShiftState done [11:33:26]FM_GetShiftState done [11:33:26]req_shift_opened done [11:33:26]requested_item shift.open_date is exist - process it [11:33:26]req_shift_open_date [11:33:26]req_shift_open_date done [11:33:26]produce_requested_data done [11:33:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29803,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:33:26]process_action_free print_text [11:33:26]json_value_free [11:33:26]json_value_free done [11:33:26]process_json_proto returns [11:33:26]Send response to host [11:33:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29803,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:33:26]free response buf [11:33:26]execute_script done [11:33:26]execute_script returns [11:33:26]free content buf [11:33:26]Sock 9.Close socket [11:33:26]Sock 9.Thread stoped [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:35]accept exits with 7 [11:33:35]New connection [11:33:35]New thread 3067133284 created [11:33:35]Thread 3067276644 joined [11:33:35]Waiting for new connection... [11:33:35] Sock 7.Parse request [11:33:35]Sock 7.Check first char [11:33:35]Sock 7.First char is OK [11:33:35]request: POST /json_proto HTTP/1.0 [11:33:35]Method: POST [11:33:35]URL: /json_proto [11:33:35]Method is POST - this is cgi request [11:33:35]url: /json_proto [11:33:35]query_string will be loaded in cgi processing [11:33:35]execute_cgi json_proto POST (null) [11:33:35]execute_cgi path=json_proto method=POST [11:33:35]POST find Content-Length [11:33:35]Host: 172.17.33.3:8080 [11:33:35]Content-Length: 1166 [11:33:35]Content-Type: application/json [11:33:35] [11:33:35]POST finish read [11:33:35]Found Content-Length = 1166 [11:33:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348299\u000A16.04.2024 11:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 70.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 5103.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30023891\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:35]execute_script... [11:33:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348299\u000A16.04.2024 11:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 70.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 5103.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30023891\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:35]POST & json_proto [11:33:35]process_json_proto [11:33:35]json parsed OK: [11:33:35]protocol is kg_v1.0 [11:33:35]action value=print_text [11:33:35]process_action print_text [11:33:35]cmd_print_text [11:33:35]ExternCall_PrintAddStr [11:33:35]wPrintStart [11:33:35]Write to MH i2c: 01 00 00 AA 0F B9 [11:33:35]Write i2c OK [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: 01 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: 01 07 00 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: 01 07 00 AA 0F 00 00 00 00 00 FF 0F CE [11:33:35]RasterBufferAndPrint [11:33:35]line *****ТОВАРНЫЙ ЧЕК***** [11:33:35]line АЗС 108 [11:33:35]line Партнер нефть [11:33:35]line 02508201610067 [11:33:35]line Кассир : Шадыканова Ж. [11:33:35]line Счет N : (1)348299 [11:33:35]line 16.04.2024 11:15 [11:33:35]line ПРОДАЖА [11:33:35]line ТРК (МРК, ГНК): 61 [11:33:35]line Вид ГСМ : 2710194210 [11:33:35]line ДТ-К-5 [11:33:35]line 70.000 x 72.90 [11:33:35]line ИТОГ: 5103.00 [11:33:35]line Тип оплаты: Талоны: ТК ГПНА Online [11:33:35]line 30023891 [11:33:35]line ______________________ [11:33:35]line (подпись) [11:33:35]written 0, free lines is 4095 [11:33:35]Write to MH i2c: 01 00 00 BF 0F CE [11:33:35]Write i2c OK [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: 01 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: 01 07 00 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: 01 07 00 BF 0F 00 00 00 00 00 F4 0D D6 [11:33:35]RasterBufferAndPrint [11:33:35]line [11:33:35]line [11:33:35]line [11:33:35]line [11:33:35]line [11:33:35]written 0, free lines is 3574 [11:33:35]MH_Cut [11:33:35]Write to MH i2c: D1 01 00 C6 0F 01 A7 [11:33:35]Write i2c OK [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: D1 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: D1 01 00 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: D1 01 00 C6 0F 00 A6 [11:33:35]Write to MH i2c: 01 00 00 C7 0F D6 [11:33:35]Write i2c OK [11:33:35]MH_I2C_Read... [11:33:36]*** Cut start [11:33:36]*** Partial cut [11:33:36]*** CUTSNS_PIN = 1 [11:33:36]*** CUTSNS_PIN = 0 [11:33:36]*** Brake cut motor [11:33:37]Read from MH i2c: 01 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: 01 07 00 [11:33:37]MH_I2C_Read... [11:33:37]*** Stop cut motor [11:33:37]*** Cut end [11:33:37]Read from MH i2c: 01 07 00 C7 0F 00 00 00 00 00 FF 0F EB [11:33:37]process_action print_text done [11:33:37]requested_data is exist [11:33:37]produce_requested_data [11:33:37]requested_item fm.sn is exist - process it [11:33:37]wFMCommunicate request_size=4 [11:33:37]MH_SAM_APDU [11:33:37]CAPDU: 80 11 00 00 [11:33:37]Write to MH i2c: E2 08 00 C8 0F 80 11 00 00 00 00 00 00 51 [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:37]Read from MH i2c: E2 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 17 00 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 17 00 C8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A0 [11:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:33:37]wFMCommunicate OK [11:33:37]requested_item fd.num is exist - process it [11:33:37]SAM_PROTO_GetFieldsCounters [11:33:37]wFMCommunicate request_size=4 [11:33:37]MH_SAM_APDU [11:33:37]CAPDU: 80 13 00 00 [11:33:37]Write to MH i2c: E2 08 00 C9 0F 80 13 00 00 00 00 00 00 54 [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:37]Read from MH i2c: E2 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 62 00 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 62 00 C9 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6B 74 00 00 0E 04 04 00 76 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 CE [11:33:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6B 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:37]wFMCommunicate OK [11:33:37]SAM_PROTO_GetFieldsCounters done [11:33:37]requested_item shift.num is exist - process it [11:33:37]requested_item shift.opened is exist - process it [11:33:37]req_shift_opened [11:33:37]FM_GetShiftState [11:33:37]SAM_PROTO_GetShiftState [11:33:37]wFMCommunicate request_size=4 [11:33:37]MH_SAM_APDU [11:33:37]CAPDU: 80 13 01 00 [11:33:37]Write to MH i2c: E2 08 00 CA 0F 80 13 01 00 00 00 00 00 56 [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:37]Read from MH i2c: E2 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 0E 00 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: E2 0E 00 CA 0F 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 04 [11:33:37]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:33:37]wFMCommunicate OK [11:33:37]SAM_PROTO_GetShiftState done [11:33:37]FM_GetShiftState done [11:33:37]req_shift_opened done [11:33:37]requested_item shift.open_date is exist - process it [11:33:37]req_shift_open_date [11:33:37]req_shift_open_date done [11:33:37]produce_requested_data done [11:33:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29803,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:33:37]process_action_free print_text [11:33:37]json_value_free [11:33:37]json_value_free done [11:33:37]process_json_proto returns [11:33:37]Send response to host [11:33:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29803,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:33:37]free response buf [11:33:37]execute_script done [11:33:37]execute_script returns [11:33:37]free content buf [11:33:37]Sock 7.Close socket [11:33:37]Sock 7.Thread stoped [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:35]accept exits with 9 [11:37:35]New connection [11:37:35]New thread 3067276644 created [11:37:35]Thread 3067133284 joined [11:37:35]Waiting for new connection... [11:37:35] Sock 9.Parse request [11:37:35]Sock 9.Check first char [11:37:35]Sock 9.First char is OK [11:37:35]request: POST /json_proto HTTP/1.0 [11:37:35]Method: POST [11:37:35]URL: /json_proto [11:37:35]Method is POST - this is cgi request [11:37:35]url: /json_proto [11:37:35]query_string will be loaded in cgi processing [11:37:35]execute_cgi json_proto POST (null) [11:37:35]execute_cgi path=json_proto method=POST [11:37:35]POST find Content-Length [11:37:35]Host: 172.17.33.3:8080 [11:37:35]Content-Length: 799 [11:37:35]Content-Type: application/json [11:37:35] [11:37:35]POST finish read [11:37:35]Found Content-Length = 799 [11:37:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 13.900, "sum" : 914.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 914.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:35]execute_script... [11:37:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 13.900, "sum" : 914.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 914.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:35]POST & json_proto [11:37:35]process_json_proto [11:37:35]json parsed OK: [11:37:35]protocol is kg_v1.0 [11:37:35]action value=close_receipt [11:37:35]process_action close_receipt [11:37:35]cmd_close_receipt [11:37:35]MH_GetDate [11:37:35]Write to MH i2c: F0 00 00 CB 0F C9 [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: F0 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: F0 09 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: F0 09 00 CB 0F 00 00 63 1E 66 23 5B 8F 65 2B [11:37:35]GetLastDocTimeStamp 1713266923 [11:37:35]current date 1713267456 [11:37:35]FM_GetShiftState [11:37:35]SAM_PROTO_GetShiftState [11:37:35]wFMCommunicate request_size=4 [11:37:35]MH_SAM_APDU [11:37:35]CAPDU: 80 13 01 00 [11:37:35]Write to MH i2c: E2 08 00 CC 0F 80 13 01 00 00 00 00 00 58 [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:35]Read from MH i2c: E2 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 0E 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 0E 00 CC 0F 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 06 [11:37:35]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:37:35]wFMCommunicate OK [11:37:35]SAM_PROTO_GetShiftState done [11:37:35]FM_GetShiftState done [11:37:35]opened in 1713226843 [11:37:35]opened+sec_in_day 1713313243 [11:37:35]quantity*price = 91462 [11:37:35]sum+1 = 91463 [11:37:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 914.62 НСП 1% : 8.09 НДС 12% : 97.13 Наличными: 0.00 Безнал.: 914.62 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 78 16.04.2024 11:37 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29804 ФПД: 186836814866248 1/tax-web-control/client/api/v1/ticket?date=20240416T113736&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29804&fm=186836814866248&tin=02508201610067®Number=0000138879044617&sum=91462 [11:37:36]StoreToDocumentArchive [11:37:36]shift 118 fd 29804 [11:37:36]save to /storage/0118/doc_00029804 [11:37:36]save last doc name /storage/0118/doc_00029804 to /storage/kkm_last_doc_name [11:37:36]save OK [11:37:36]Clear old archive folders... [11:37:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:37:36]tlvbuf is 0020B0C0 [11:37:36]SAM_PROTO_ClearQueue [11:37:36]wFMCommunicate request_size=4 [11:37:36]MH_SAM_APDU [11:37:36]CAPDU: 80 09 00 00 [11:37:36]Write to MH i2c: E2 08 00 D9 0F 80 09 00 00 00 00 00 00 5A [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 03 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 03 00 D9 0F 00 90 00 5C [11:37:36]RAPDU: 90 00 [11:37:36]wFMCommunicate OK [11:37:36]SAM_PROTO_ClearQueue done [11:37:36]KKMCreateOFDPacket [11:37:36]OFDProtocolAddRootSTLVToBuf [11:37:36]FM_MakeSignedData [11:37:36]FM_MakeSignedData [11:37:36]SAM_PROTO_SignData [11:37:36]wFMCommunicate request_size=4 [11:37:36]MH_SAM_APDU [11:37:36]CAPDU: 80 0D 01 02 [11:37:36]Write to MH i2c: E2 08 00 DA 0F 80 0D 01 02 00 00 00 00 62 [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 03 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 03 00 DA 0F 00 90 00 5D [11:37:36]RAPDU: 90 00 [11:37:36]wFMCommunicate OK [11:37:36]wFMCommunicate request_size=255 [11:37:36]MH_SAM_APDU [11:37:36]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 36 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 65 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 00 63 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 74 00 00 35 04 06 00 [11:37:36]Write to MH i2c: E2 02 01 DB 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 36 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 65 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 00 63 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 74 00 00 35 04 06 00 00 00 53 [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 03 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 03 00 DB 0F 00 90 00 5E [11:37:36]RAPDU: 90 00 [11:37:36]wFMCommunicate OK [11:37:36]wFMCommunicate request_size=11 [11:37:36]MH_SAM_APDU [11:37:36]CAPDU: 80 0D 02 02 06 A9 ED 55 FB 27 48 [11:37:36]Write to MH i2c: E2 0E 00 DC 0F 80 0D 02 02 06 00 A9 ED 55 FB 27 48 00 00 C6 [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 03 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 03 00 DC 0F 00 90 00 5F [11:37:36]RAPDU: 90 00 [11:37:36]wFMCommunicate OK [11:37:36]wFMCommunicate request_size=4 [11:37:36]MH_SAM_APDU [11:37:36]CAPDU: 80 0D 03 02 [11:37:36]Write to MH i2c: E2 08 00 DD 0F 80 0D 03 02 00 00 00 00 67 [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 0B 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 0B 00 DD 0F 00 95 0F 25 A4 E1 49 2E 35 90 00 62 [11:37:36]RAPDU: 95 0F 25 A4 E1 49 2E 35 90 00 [11:37:36]wFMCommunicate OK [11:37:36]SAM_PROTO_SignData done [11:37:36]FM_MakeSignedData done [11:37:36]CreateOFDProtocolMessage [11:37:36]wFMCommunicate request_size=4 [11:37:36]MH_SAM_APDU [11:37:36]CAPDU: 80 11 00 00 [11:37:36]Write to MH i2c: E2 08 00 DE 0F 80 11 00 00 00 00 00 00 67 [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 17 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 17 00 DE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B6 [11:37:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:37:36]wFMCommunicate OK [11:37:36]CreateOFDProtocolMessage done [11:37:36]OFDSenderStorePacket 29804 [11:37:36]StoreOFDPacket docnum=29804 [11:37:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 22 DA 08 01 CC 8E 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 36 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 65 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 00 63 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 74 00 00 35 04 06 00 A9 ED 55 FB 27 48 95 0F 25 A4 E1 49 2E 35 [11:37:36]CheckFolder [11:37:36]dirname=/storage/ofd_packets [11:37:36]CheckFolder done [11:37:36]ProducePacketName [11:37:36]name=ofd_packets/00029804 [11:37:36]NVStorageSaveData ofd_packets/00029804 [11:37:36]File name is /storage/ofd_packets/00029804 [11:37:36]Write 302 bytes [11:37:36]NVStorageSaveData done [11:37:36]OFDSenderStorePacket done [11:37:36]KKMCreateOFDPacket done [11:37:36]NVStorageSaveData kkm_last_timestamp [11:37:36]File name is /storage/kkm_last_timestamp [11:37:36]Write 4 bytes [11:37:36]NVStorageSaveData done [11:37:36]ExternCall_PrintAddStr [11:37:36]wPrintStart [11:37:36]Write to MH i2c: 01 00 00 DF 0F EE [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: 01 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: 01 07 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: 01 07 00 DF 0F 00 00 00 00 00 FF 0F 03 [11:37:36]RasterBufferAndPrint [11:37:36]line Счет N : (1)348302 [11:37:36]line ИНН: 02508201610067 [11:37:36]line Контрольно-Кассовый Чек [11:37:36]line ПРОДАЖА [11:37:36]line ТРК (МРК, ГНК) : 31 [11:37:36]line Товар: 2710124130 [11:37:36]line SUPER-92-К-5 [11:37:36]line 13.900 * 65.80 [11:37:36]line = 914.62 [11:37:36]line НДС 12% НСП 1% [11:37:36]line > о реализуемом товаре [11:37:36]line ИТОГО: 914.62 [11:37:36]line НСП 1% : 8.09 [11:37:36]line НДС 12% : 97.13 [11:37:36]line Наличными: 0.00 [11:37:36]line Безнал.: 914.62 [11:37:36]line Место: АЗС № 108 "Партнер Нефть" [11:37:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:37:36]line СНО: Общий режим [11:37:36]line Чек 78 16.04.2024 11:37 [11:37:36]line Смена: 118 ФФД: 1.0 [11:37:36]line ЗНМ: 0300000027 [11:37:36]line РНМ: 0000138879044617 [11:37:36]line Версия ККМ: 001 [11:37:36]line Платежная система: О! деньги [11:37:36]line ФМ: 0000000000963154 [11:37:36]line ФД: 29804 [11:37:36]line ФПД: 186836814866248 [11:37:36]line 1/tax-web-control/client/api/v1/ticket?date=20240416T113736&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29804&fm=186836814866248&tin=02508201610067®Number=0000138879044617&sum=91462 [11:37:37]OFD Sender: Processing packet 29804 [packets to send 8, broken 7] [11:37:37]ProducePacketName [11:37:37]name=ofd_packets/00029804 [11:37:37]OFD Sender: To server: pG, [11:37:37]CommunicateWithHost lk.salyk.kg:30040 [11:37:37]ConnectInit lk.salyk.kg [11:37:37]written 0, free lines is 4095 [11:37:37]Connected sock=10 [11:37:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 22 DA 08 01 CC 8E 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 36 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 65 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 00 63 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 74 00 00 35 04 06 00 A9 ED 55 FB 27 48 95 0F 25 A4 E1 49 2E 35 [11:37:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A6 99 47 00 B2 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 74 00 00 F4 03 04 00 9F 0D 1E 66 B6 04 01 00 00 C0 BA B7 25 D3 28 52 5E [11:37:37]CommunicateWithHost err = 0 [11:37:37]CheckOFDResponse [11:37:37]1017 (14) - 77093643461234 [11:37:37]1041 (16) - 0000000000963154 [11:37:37]1040 (4) - 29804 [11:37:37]1012 (4) - 16.04.2024 05:33 [11:37:37]1206 (1) - 0 [11:37:37]OFD Sender: Remove packet 29804 [11:37:37]ProducePacketName [11:37:37]name=ofd_packets/00029804 [11:37:37]NVStorageDeleteData [11:37:37]Write to MH i2c: 01 00 00 08 10 18 [11:37:37]Write i2c OK [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: 01 [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: 01 07 00 [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: 01 07 00 08 10 00 00 00 00 00 E9 0C 14 [11:37:37]RasterBufferAndPrint [11:37:37]line [11:37:37]line [11:37:37]line [11:37:37]line [11:37:37]line [11:37:37]written 0, free lines is 3312 [11:37:37]MH_Cut [11:37:37]Write to MH i2c: D1 01 00 0F 10 01 F1 [11:37:37]Write i2c OK [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: D1 [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: D1 01 00 [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: D1 01 00 0F 10 00 F0 [11:37:37]Write to MH i2c: 01 00 00 10 10 20 [11:37:37]Write i2c OK [11:37:37]MH_I2C_Read... [11:37:38]OFD Sender: No OFD packet to send [11:37:38]*** Cut start [11:37:38]*** Partial cut [11:37:38]*** CUTSNS_PIN = 1 [11:37:38]*** CUTSNS_PIN = 0 [11:37:38]*** Brake cut motor [11:37:39]Read from MH i2c: 01 [11:37:39]MH_I2C_Read... [11:37:39]*** Stop cut motor [11:37:39]*** Cut end [11:37:39]Read from MH i2c: 01 07 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: 01 07 00 10 10 00 00 00 00 00 FF 0F 35 [11:37:39]process_action close_receipt done [11:37:39]requested_data is exist [11:37:39]produce_requested_data [11:37:39]requested_item fm.sn is exist - process it [11:37:39]wFMCommunicate request_size=4 [11:37:39]MH_SAM_APDU [11:37:39]CAPDU: 80 11 00 00 [11:37:39]Write to MH i2c: E2 08 00 11 10 80 11 00 00 00 00 00 00 9B [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 17 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 17 00 11 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EA [11:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:37:39]wFMCommunicate OK [11:37:39]requested_item fd.num is exist - process it [11:37:39]SAM_PROTO_GetFieldsCounters [11:37:39]wFMCommunicate request_size=4 [11:37:39]MH_SAM_APDU [11:37:39]CAPDU: 80 13 00 00 [11:37:39]Write to MH i2c: E2 08 00 12 10 80 13 00 00 00 00 00 00 9E [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 62 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 62 00 12 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6C 74 00 00 0E 04 04 00 76 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 1C [11:37:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6C 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:39]wFMCommunicate OK [11:37:39]SAM_PROTO_GetFieldsCounters done [11:37:39]requested_item shift.num is exist - process it [11:37:39]requested_item shift.opened is exist - process it [11:37:39]req_shift_opened [11:37:39]FM_GetShiftState [11:37:39]SAM_PROTO_GetShiftState [11:37:39]wFMCommunicate request_size=4 [11:37:39]MH_SAM_APDU [11:37:39]CAPDU: 80 13 01 00 [11:37:39]Write to MH i2c: E2 08 00 13 10 80 13 01 00 00 00 00 00 A0 [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 0E 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 0E 00 13 10 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 4E [11:37:39]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:37:39]wFMCommunicate OK [11:37:39]SAM_PROTO_GetShiftState done [11:37:39]FM_GetShiftState done [11:37:39]req_shift_opened done [11:37:39]requested_item shift.open_date is exist - process it [11:37:39]req_shift_open_date [11:37:39]req_shift_open_date done [11:37:39]produce_requested_data done [11:37:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29804,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:37:39]process_action_free close_receipt [11:37:39]json_value_free [11:37:39]json_value_free done [11:37:39]process_json_proto returns [11:37:39]Send response to host [11:37:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29804,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:37:39]free response buf [11:37:39]execute_script done [11:37:39]execute_script returns [11:37:39]free content buf [11:37:39]Sock 9.Close socket [11:37:39]Sock 9.Thread stoped [11:37:43]OFD Sender: No OFD packet to send [11:37:45]accept exits with 7 [11:37:45]New connection [11:37:45]New thread 3067133284 created [11:37:45]Thread 3067276644 joined [11:37:45]Waiting for new connection... [11:37:45] Sock 7.Parse request [11:37:45]Sock 7.Check first char [11:37:45]Sock 7.First char is OK [11:37:45]request: POST /json_proto HTTP/1.0 [11:37:45]Method: POST [11:37:45]URL: /json_proto [11:37:45]Method is POST - this is cgi request [11:37:45]url: /json_proto [11:37:45]query_string will be loaded in cgi processing [11:37:45]execute_cgi json_proto POST (null) [11:37:45]execute_cgi path=json_proto method=POST [11:37:45]POST find Content-Length [11:37:45]Host: 172.17.33.3:8080 [11:37:45]Content-Length: 1207 [11:37:45]Content-Type: application/json [11:37:45] [11:37:45]POST finish read [11:37:45]Found Content-Length = 1207 [11:37:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348301\u000A16.04.2024 11:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65732\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:45]execute_script... [11:37:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348301\u000A16.04.2024 11:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1296.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65732\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:45]POST & json_proto [11:37:45]process_json_proto [11:37:45]json parsed OK: [11:37:45]protocol is kg_v1.0 [11:37:45]action value=print_text [11:37:45]process_action print_text [11:37:45]cmd_print_text [11:37:45]ExternCall_PrintAddStr [11:37:45]wPrintStart [11:37:45]Write to MH i2c: 01 00 00 14 10 24 [11:37:45]Write i2c OK [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: 01 [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: 01 07 00 [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: 01 07 00 14 10 00 00 00 00 00 FF 0F 39 [11:37:45]RasterBufferAndPrint [11:37:45]line *****ТОВАРНЫЙ ЧЕК***** [11:37:45]line АЗС 108 [11:37:45]line Партнер нефть [11:37:45]line 02508201610067 [11:37:45]line Кассир : Шадыканова Ж. [11:37:45]line Счет N : (1)348301 [11:37:45]line 16.04.2024 11:19 [11:37:45]line ПРОДАЖА [11:37:45]line ТРК (МРК, ГНК): 23 [11:37:45]line Вид ГСМ : 2710124130 [11:37:45]line Аи-92-К-5 [11:37:45]line 20.000 x 64.80 [11:37:45]line ИТОГ: 1296.00 [11:37:45]line Тип оплаты: Талоны: Топливная Карта [11:37:45]line 65732 [11:37:45]line ______________________ [11:37:45]line (подпись) [11:37:45]written 0, free lines is 4095 [11:37:45]Write to MH i2c: 01 00 00 29 10 39 [11:37:45]Write i2c OK [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: 01 [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: 01 07 00 [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: 01 07 00 29 10 00 00 00 00 00 F6 0D 43 [11:37:45]RasterBufferAndPrint [11:37:45]line [11:37:45]line [11:37:45]line [11:37:45]line [11:37:45]line [11:37:45]written 0, free lines is 3577 [11:37:45]MH_Cut [11:37:45]Write to MH i2c: D1 01 00 30 10 01 12 [11:37:45]Write i2c OK [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: D1 [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: D1 01 00 [11:37:45]MH_I2C_Read... [11:37:45]Read from MH i2c: D1 01 00 30 10 00 11 [11:37:45]Write to MH i2c: 01 00 00 31 10 41 [11:37:45]Write i2c OK [11:37:45]MH_I2C_Read... [11:37:46]*** Cut start [11:37:46]*** Partial cut [11:37:46]*** CUTSNS_PIN = 1 [11:37:46]*** CUTSNS_PIN = 0 [11:37:46]*** Brake cut motor [11:37:46]Read from MH i2c: 01 [11:37:46]MH_I2C_Read... [11:37:46]*** Stop cut motor [11:37:46]*** Cut end [11:37:46]Read from MH i2c: 01 07 00 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: 01 07 00 31 10 00 00 00 00 00 FF 0F 56 [11:37:46]process_action print_text done [11:37:46]requested_data is exist [11:37:46]produce_requested_data [11:37:46]requested_item fm.sn is exist - process it [11:37:46]wFMCommunicate request_size=4 [11:37:46]MH_SAM_APDU [11:37:46]CAPDU: 80 11 00 00 [11:37:46]Write to MH i2c: E2 08 00 32 10 80 11 00 00 00 00 00 00 BC [11:37:46]Write i2c OK [11:37:46]MH_I2C_Read... [11:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:46]Read from MH i2c: E2 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 17 00 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 17 00 32 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0B [11:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:37:46]wFMCommunicate OK [11:37:46]requested_item fd.num is exist - process it [11:37:46]SAM_PROTO_GetFieldsCounters [11:37:46]wFMCommunicate request_size=4 [11:37:46]MH_SAM_APDU [11:37:46]CAPDU: 80 13 00 00 [11:37:46]Write to MH i2c: E2 08 00 33 10 80 13 00 00 00 00 00 00 BF [11:37:46]Write i2c OK [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 [11:37:46]MH_I2C_Read... [11:37:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:46]Read from MH i2c: E2 62 00 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 62 00 33 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6C 74 00 00 0E 04 04 00 76 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 3D [11:37:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6C 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:46]wFMCommunicate OK [11:37:46]SAM_PROTO_GetFieldsCounters done [11:37:46]requested_item shift.num is exist - process it [11:37:46]requested_item shift.opened is exist - process it [11:37:46]req_shift_opened [11:37:46]FM_GetShiftState [11:37:46]SAM_PROTO_GetShiftState [11:37:46]wFMCommunicate request_size=4 [11:37:46]MH_SAM_APDU [11:37:46]CAPDU: 80 13 01 00 [11:37:46]Write to MH i2c: E2 08 00 34 10 80 13 01 00 00 00 00 00 C1 [11:37:46]Write i2c OK [11:37:46]MH_I2C_Read... [11:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:47]Read from MH i2c: E2 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 0E 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 0E 00 34 10 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 6F [11:37:47]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:37:47]wFMCommunicate OK [11:37:47]SAM_PROTO_GetShiftState done [11:37:47]FM_GetShiftState done [11:37:47]req_shift_opened done [11:37:47]requested_item shift.open_date is exist - process it [11:37:47]req_shift_open_date [11:37:47]req_shift_open_date done [11:37:47]produce_requested_data done [11:37:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29804,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:37:47]process_action_free print_text [11:37:47]json_value_free [11:37:47]json_value_free done [11:37:47]process_json_proto returns [11:37:47]Send response to host [11:37:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29804,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:37:47]free response buf [11:37:47]execute_script done [11:37:47]execute_script returns [11:37:47]free content buf [11:37:47]Sock 7.Close socket [11:37:47]Sock 7.Thread stoped [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:29]accept exits with 9 [11:38:29]New connection [11:38:29]New thread 3067276644 created [11:38:29]Thread 3067133284 joined [11:38:29]Waiting for new connection... [11:38:29] Sock 9.Parse request [11:38:29]Sock 9.Check first char [11:38:29]Sock 9.First char is OK [11:38:29]request: POST /json_proto HTTP/1.0 [11:38:29]Method: POST [11:38:29]URL: /json_proto [11:38:29]Method is POST - this is cgi request [11:38:29]url: /json_proto [11:38:29]query_string will be loaded in cgi processing [11:38:29]execute_cgi json_proto POST (null) [11:38:29]execute_cgi path=json_proto method=POST [11:38:29]POST find Content-Length [11:38:29]Host: 172.17.33.3:8080 [11:38:29]Content-Length: 678 [11:38:29]Content-Type: application/json [11:38:29] [11:38:29]POST finish read [11:38:29]Found Content-Length = 678 [11:38:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.870, "sum" : 704.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 704.00, "total" : 704.00, "payments": [ { "type": 0, "sum" : 704.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:29]execute_script... [11:38:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.870, "sum" : 704.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 704.00, "total" : 704.00, "payments": [ { "type": 0, "sum" : 704.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:29]POST & json_proto [11:38:29]process_json_proto [11:38:29]json parsed OK: [11:38:29]protocol is kg_v1.0 [11:38:29]action value=close_receipt [11:38:29]process_action close_receipt [11:38:29]cmd_close_receipt [11:38:29]MH_GetDate [11:38:29]Write to MH i2c: F0 00 00 35 10 34 [11:38:29]Write i2c OK [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: F0 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: F0 09 00 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: F0 09 00 35 10 00 36 63 1E 66 23 5B 8F 65 CC [11:38:29]GetLastDocTimeStamp 1713267456 [11:38:29]current date 1713267510 [11:38:29]FM_GetShiftState [11:38:29]SAM_PROTO_GetShiftState [11:38:29]wFMCommunicate request_size=4 [11:38:29]MH_SAM_APDU [11:38:29]CAPDU: 80 13 01 00 [11:38:29]Write to MH i2c: E2 08 00 36 10 80 13 01 00 00 00 00 00 C3 [11:38:29]Write i2c OK [11:38:29]MH_I2C_Read... [11:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:29]Read from MH i2c: E2 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 0E 00 [11:38:29]MH_I2C_Read... [11:38:29]Read from MH i2c: E2 0E 00 36 10 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 71 [11:38:29]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:38:29]wFMCommunicate OK [11:38:29]SAM_PROTO_GetShiftState done [11:38:29]FM_GetShiftState done [11:38:29]opened in 1713226843 [11:38:29]opened+sec_in_day 1713313243 [11:38:29]quantity*price = 70437 [11:38:29]sum+1 = 70439 [11:38:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 704.00 Внесено: 704.00 СДАЧА: 0.00 НСП 1% : 6.23 НДС 12% : 74.80 Наличными: 704.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 79 16.04.2024 11:38 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29805 ФПД: 103368965141944 1/tax-web-control/client/api/v1/ticket?date=20240416T113830&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29805&fm=103368965141944&tin=02508201610067®Number=0000138879044617&sum=70400 [11:38:30]StoreToDocumentArchive [11:38:30]shift 118 fd 29805 [11:38:30]save to /storage/0118/doc_00029805 [11:38:30]save last doc name /storage/0118/doc_00029805 to /storage/kkm_last_doc_name [11:38:30]save OK [11:38:30]Clear old archive folders... [11:38:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:30]tlvbuf is 0016C1F0 [11:38:30]SAM_PROTO_ClearQueue [11:38:30]wFMCommunicate request_size=4 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 09 00 00 [11:38:30]Write to MH i2c: E2 08 00 43 10 80 09 00 00 00 00 00 00 C5 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 43 10 00 90 00 C7 [11:38:30]RAPDU: 90 00 [11:38:30]wFMCommunicate OK [11:38:30]SAM_PROTO_ClearQueue done [11:38:30]KKMCreateOFDPacket [11:38:30]OFDProtocolAddRootSTLVToBuf [11:38:30]FM_MakeSignedData [11:38:30]FM_MakeSignedData [11:38:30]SAM_PROTO_SignData [11:38:30]wFMCommunicate request_size=4 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 0D 01 02 [11:38:30]Write to MH i2c: E2 08 00 44 10 80 0D 01 02 00 00 00 00 CD [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 44 10 00 90 00 C8 [11:38:30]RAPDU: 90 00 [11:38:30]wFMCommunicate OK [11:38:30]wFMCommunicate request_size=255 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 26 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 1D 00 00 00 00 07 04 06 00 00 13 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 36 63 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 74 00 00 35 04 06 00 5E [11:38:30]Write to MH i2c: E2 02 01 45 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 26 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 1D 00 00 00 00 07 04 06 00 00 13 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 36 63 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 74 00 00 35 04 06 00 5E 00 00 46 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 45 10 00 90 00 C9 [11:38:30]RAPDU: 90 00 [11:38:30]wFMCommunicate OK [11:38:30]wFMCommunicate request_size=10 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 0D 02 02 05 03 76 72 B5 B8 [11:38:30]Write to MH i2c: E2 0D 00 46 10 80 0D 02 02 05 00 03 76 72 B5 B8 00 00 32 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 03 00 46 10 00 90 00 CA [11:38:30]RAPDU: 90 00 [11:38:30]wFMCommunicate OK [11:38:30]wFMCommunicate request_size=4 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 0D 03 02 [11:38:30]Write to MH i2c: E2 08 00 47 10 80 0D 03 02 00 00 00 00 D2 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 0B 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 0B 00 47 10 00 19 BE 0E CA A6 43 20 DA 90 00 65 [11:38:30]RAPDU: 19 BE 0E CA A6 43 20 DA 90 00 [11:38:30]wFMCommunicate OK [11:38:30]SAM_PROTO_SignData done [11:38:30]FM_MakeSignedData done [11:38:30]CreateOFDProtocolMessage [11:38:30]wFMCommunicate request_size=4 [11:38:30]MH_SAM_APDU [11:38:30]CAPDU: 80 11 00 00 [11:38:30]Write to MH i2c: E2 08 00 48 10 80 11 00 00 00 00 00 00 D2 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:30]Read from MH i2c: E2 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 17 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: E2 17 00 48 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 21 [11:38:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:38:30]wFMCommunicate OK [11:38:30]CreateOFDProtocolMessage done [11:38:30]OFDSenderStorePacket 29805 [11:38:30]StoreOFDPacket docnum=29805 [11:38:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4B D8 07 01 4B CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 26 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 1D 00 00 00 00 07 04 06 00 00 13 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 36 63 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 74 00 00 35 04 06 00 5E 03 76 72 B5 B8 19 BE 0E CA A6 43 20 DA [11:38:30]CheckFolder [11:38:30]dirname=/storage/ofd_packets [11:38:30]CheckFolder done [11:38:30]ProducePacketName [11:38:30]name=ofd_packets/00029805 [11:38:30]NVStorageSaveData ofd_packets/00029805 [11:38:30]File name is /storage/ofd_packets/00029805 [11:38:30]Write 301 bytes [11:38:30]NVStorageSaveData done [11:38:30]OFDSenderStorePacket done [11:38:30]KKMCreateOFDPacket done [11:38:30]NVStorageSaveData kkm_last_timestamp [11:38:30]File name is /storage/kkm_last_timestamp [11:38:30]Write 4 bytes [11:38:30]NVStorageSaveData done [11:38:30]ExternCall_PrintAddStr [11:38:30]wPrintStart [11:38:30]Write to MH i2c: 01 00 00 49 10 59 [11:38:30]Write i2c OK [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: 01 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: 01 07 00 [11:38:30]MH_I2C_Read... [11:38:30]Read from MH i2c: 01 07 00 49 10 00 00 00 00 00 FF 0F 6E [11:38:30]RasterBufferAndPrint [11:38:30]line Счет N : (1)348303 [11:38:30]line ИНН: 02508201610067 [11:38:30]line Контрольно-Кассовый Чек [11:38:30]line ПРОДАЖА [11:38:30]line ТРК (МРК, ГНК) : 23 [11:38:30]line Товар: 2710124130 [11:38:30]line Аи-92-К-5 [11:38:30]line 10.870 * 64.80 [11:38:30]line = 704.38 [11:38:30]line НДС 12% НСП 1% [11:38:30]line > о реализуемом товаре [11:38:30]line ОКРУГЛЕНИЕ: -0.38 [11:38:30]line ИТОГО: 704.00 [11:38:30]line Внесено: 704.00 [11:38:30]line СДАЧА: 0.00 [11:38:30]line НСП 1% : 6.23 [11:38:30]line НДС 12% : 74.80 [11:38:30]line Наличными: 704.00 [11:38:30]line Безнал.: 0.00 [11:38:30]line Место: АЗС № 108 "Партнер Нефть" [11:38:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:38:30]line СНО: Общий режим [11:38:30]line Чек 79 16.04.2024 11:38 [11:38:30]line Смена: 118 ФФД: 1.0 [11:38:30]line ЗНМ: 0300000027 [11:38:30]line РНМ: 0000138879044617 [11:38:30]line Версия ККМ: 001 [11:38:30]line ФМ: 0000000000963154 [11:38:30]line ФД: 29805 [11:38:31]line ФПД: 103368965141944 [11:38:31]line 1/tax-web-control/client/api/v1/ticket?date=20240416T113830&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29805&fm=103368965141944&tin=02508201610067®Number=0000138879044617&sum=70400 [11:38:31]OFD Sender: Processing packet 29805 [packets to send 8, broken 7] [11:38:31]ProducePacketName [11:38:31]name=ofd_packets/00029805 [11:38:31]OFD Sender: To server: pG, [11:38:31]CommunicateWithHost lk.salyk.kg:30040 [11:38:31]ConnectInit lk.salyk.kg [11:38:31]written 0, free lines is 4095 [11:38:31]Connected sock=10 [11:38:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4B D8 07 01 4B CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 26 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 1D 00 00 00 00 07 04 06 00 00 13 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 36 63 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 74 00 00 35 04 06 00 5E 03 76 72 B5 B8 19 BE 0E CA A6 43 20 DA [11:38:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FA 55 47 00 48 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 74 00 00 F4 03 04 00 D4 0D 1E 66 B6 04 01 00 00 76 AE EE CB C8 5D B9 71 [11:38:31]CommunicateWithHost err = 0 [11:38:31]CheckOFDResponse [11:38:31]1017 (14) - 77093643461234 [11:38:31]1041 (16) - 0000000000963154 [11:38:31]1040 (4) - 29805 [11:38:31]1012 (4) - 16.04.2024 05:34 [11:38:31]1206 (1) - 0 [11:38:31]OFD Sender: Remove packet 29805 [11:38:31]ProducePacketName [11:38:31]name=ofd_packets/00029805 [11:38:31]NVStorageDeleteData [11:38:31]Write to MH i2c: 01 00 00 73 10 83 [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 07 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: 01 07 00 73 10 00 00 00 00 00 D3 0C 69 [11:38:31]RasterBufferAndPrint [11:38:31]line [11:38:31]line [11:38:31]line [11:38:31]line [11:38:31]line [11:38:31]written 0, free lines is 3290 [11:38:31]MH_Cut [11:38:31]Write to MH i2c: D1 01 00 7A 10 01 5C [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: D1 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: D1 01 00 [11:38:31]MH_I2C_Read... [11:38:31]Read from MH i2c: D1 01 00 7A 10 00 5B [11:38:31]Write to MH i2c: 01 00 00 7B 10 8B [11:38:31]Write i2c OK [11:38:31]MH_I2C_Read... [11:38:31]OFD Sender: No OFD packet to send [11:38:32]*** Cut start [11:38:32]*** Partial cut [11:38:32]*** CUTSNS_PIN = 1 [11:38:32]*** CUTSNS_PIN = 0 [11:38:32]*** Brake cut motor [11:38:32]Read from MH i2c: 01 [11:38:32]MH_I2C_Read... [11:38:32]*** Stop cut motor [11:38:32]*** Cut end [11:38:32]Read from MH i2c: 01 07 00 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: 01 07 00 7B 10 00 00 00 00 00 FF 0F A0 [11:38:32]process_action close_receipt done [11:38:32]requested_data is exist [11:38:32]produce_requested_data [11:38:32]requested_item fm.sn is exist - process it [11:38:32]wFMCommunicate request_size=4 [11:38:32]MH_SAM_APDU [11:38:32]CAPDU: 80 11 00 00 [11:38:32]Write to MH i2c: E2 08 00 7C 10 80 11 00 00 00 00 00 00 06 [11:38:32]Write i2c OK [11:38:32]MH_I2C_Read... [11:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:32]Read from MH i2c: E2 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: E2 17 00 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: E2 17 00 7C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 55 [11:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:38:32]wFMCommunicate OK [11:38:32]requested_item fd.num is exist - process it [11:38:32]SAM_PROTO_GetFieldsCounters [11:38:32]wFMCommunicate request_size=4 [11:38:32]MH_SAM_APDU [11:38:32]CAPDU: 80 13 00 00 [11:38:32]Write to MH i2c: E2 08 00 7D 10 80 13 00 00 00 00 00 00 09 [11:38:32]Write i2c OK [11:38:32]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 62 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 62 00 7D 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6D 74 00 00 0E 04 04 00 76 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 8B [11:38:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6D 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:33]wFMCommunicate OK [11:38:33]SAM_PROTO_GetFieldsCounters done [11:38:33]requested_item shift.num is exist - process it [11:38:33]requested_item shift.opened is exist - process it [11:38:33]req_shift_opened [11:38:33]FM_GetShiftState [11:38:33]SAM_PROTO_GetShiftState [11:38:33]wFMCommunicate request_size=4 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 13 01 00 [11:38:33]Write to MH i2c: E2 08 00 7E 10 80 13 01 00 00 00 00 00 0B [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 0E 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 0E 00 7E 10 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 B9 [11:38:33]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:38:33]wFMCommunicate OK [11:38:33]SAM_PROTO_GetShiftState done [11:38:33]FM_GetShiftState done [11:38:33]req_shift_opened done [11:38:33]requested_item shift.open_date is exist - process it [11:38:33]req_shift_open_date [11:38:33]req_shift_open_date done [11:38:33]produce_requested_data done [11:38:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29805,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:38:33]process_action_free close_receipt [11:38:33]json_value_free [11:38:33]json_value_free done [11:38:33]process_json_proto returns [11:38:33]Send response to host [11:38:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29805,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:38:33]free response buf [11:38:33]execute_script done [11:38:33]execute_script returns [11:38:33]free content buf [11:38:33]Sock 9.Close socket [11:38:33]Sock 9.Thread stoped [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39: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:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:03]accept exits with 7 [11:41:03]New connection [11:41:03]New thread 3067133284 created [11:41:03]Thread 3067276644 joined [11:41:03]Waiting for new connection... [11:41:03] Sock 7.Parse request [11:41:03]Sock 7.Check first char [11:41:03]Sock 7.First char is OK [11:41:03]request: POST /json_proto HTTP/1.0 [11:41:03]Method: POST [11:41:03]URL: /json_proto [11:41:03]Method is POST - this is cgi request [11:41:03]url: /json_proto [11:41:03]query_string will be loaded in cgi processing [11:41:03]execute_cgi json_proto POST (null) [11:41:03]execute_cgi path=json_proto method=POST [11:41:03]POST find Content-Length [11:41:03]Host: 172.17.33.3:8080 [11:41:03]Content-Length: 1204 [11:41:03]Content-Type: application/json [11:41:03] [11:41:03]POST finish read [11:41:03]Found Content-Length = 1204 [11:41:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348304\u000A16.04.2024 11:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 41.150 x 72.90\u000A\u0418\u0422\u041E\u0413: 2999.84\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74614\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:03]execute_script... [11:41:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348304\u000A16.04.2024 11:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 41.150 x 72.90\u000A\u0418\u0422\u041E\u0413: 2999.84\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74614\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:03]POST & json_proto [11:41:03]process_json_proto [11:41:03]json parsed OK: [11:41:03]protocol is kg_v1.0 [11:41:03]action value=print_text [11:41:03]process_action print_text [11:41:03]cmd_print_text [11:41:03]ExternCall_PrintAddStr [11:41:03]wPrintStart [11:41:03]Write to MH i2c: 01 00 00 7F 10 8F [11:41:03]Write i2c OK [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: 01 [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: 01 07 00 [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: 01 07 00 7F 10 00 00 00 00 00 FF 0F A4 [11:41:03]RasterBufferAndPrint [11:41:03]line *****ТОВАРНЫЙ ЧЕК***** [11:41:03]line АЗС 108 [11:41:03]line Партнер нефть [11:41:03]line 02508201610067 [11:41:03]line Кассир : Шадыканова Ж. [11:41:03]line Счет N : (1)348304 [11:41:03]line 16.04.2024 11:22 [11:41:03]line ПРОДАЖА [11:41:03]line ТРК (МРК, ГНК): 61 [11:41:03]line Вид ГСМ : 2710194210 [11:41:03]line ДТ-К-5 [11:41:03]line 41.150 x 72.90 [11:41:03]line ИТОГ: 2999.84 [11:41:03]line Тип оплаты: Талоны: Топливная Карта [11:41:03]line 74614 [11:41:03]line ______________________ [11:41:03]line (подпись) [11:41:03]written 0, free lines is 4095 [11:41:03]Write to MH i2c: 01 00 00 94 10 A4 [11:41:03]Write i2c OK [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: 01 [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: 01 07 00 [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: 01 07 00 94 10 00 00 00 00 00 F4 0D AC [11:41:03]RasterBufferAndPrint [11:41:03]line [11:41:03]line [11:41:03]line [11:41:03]line [11:41:03]line [11:41:03]written 0, free lines is 3574 [11:41:04]MH_Cut [11:41:04]Write to MH i2c: D1 01 00 9B 10 01 7D [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: D1 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: D1 01 00 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: D1 01 00 9B 10 00 7C [11:41:04]Write to MH i2c: 01 00 00 9C 10 AC [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:04]*** Cut start [11:41:04]*** Partial cut [11:41:04]*** CUTSNS_PIN = 1 [11:41:04]*** CUTSNS_PIN = 0 [11:41:04]*** Brake cut motor [11:41:05]Read from MH i2c: 01 [11:41:05]MH_I2C_Read... [11:41:05]*** Stop cut motor [11:41:05]*** Cut end [11:41:05]Read from MH i2c: 01 07 00 [11:41:05]MH_I2C_Read... [11:41:05]Read from MH i2c: 01 07 00 9C 10 00 00 00 00 00 FF 0F C1 [11:41:05]process_action print_text done [11:41:05]requested_data is exist [11:41:05]produce_requested_data [11:41:05]requested_item fm.sn is exist - process it [11:41:05]wFMCommunicate request_size=4 [11:41:05]MH_SAM_APDU [11:41:05]CAPDU: 80 11 00 00 [11:41:05]Write to MH i2c: E2 08 00 9D 10 80 11 00 00 00 00 00 00 27 [11:41:05]Write i2c OK [11:41:05]MH_I2C_Read... [11:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:05]Read from MH i2c: E2 [11:41:05]MH_I2C_Read... [11:41:05]Read from MH i2c: E2 17 00 [11:41:05]MH_I2C_Read... [11:41:05]Read from MH i2c: E2 17 00 9D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 76 [11:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:41:05]wFMCommunicate OK [11:41:05]requested_item fd.num is exist - process it [11:41:05]SAM_PROTO_GetFieldsCounters [11:41:05]wFMCommunicate request_size=4 [11:41:05]MH_SAM_APDU [11:41:05]CAPDU: 80 13 00 00 [11:41:05]Write to MH i2c: E2 08 00 9E 10 80 13 00 00 00 00 00 00 2A [11:41:05]Write i2c OK [11:41:05]MH_I2C_Read... [11:41:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:05]Read from MH i2c: E2 [11:41:05]MH_I2C_Read... [11:41:05]Read from MH i2c: E2 62 00 [11:41:05]MH_I2C_Read... [11:41:05]Read from MH i2c: E2 62 00 9E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6D 74 00 00 0E 04 04 00 76 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 AC [11:41:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6D 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:05]wFMCommunicate OK [11:41:05]SAM_PROTO_GetFieldsCounters done [11:41:05]requested_item shift.num is exist - process it [11:41:05]requested_item shift.opened is exist - process it [11:41:05]req_shift_opened [11:41:05]FM_GetShiftState [11:41:05]SAM_PROTO_GetShiftState [11:41:05]wFMCommunicate request_size=4 [11:41:05]MH_SAM_APDU [11:41:05]CAPDU: 80 13 01 00 [11:41:05]Write to MH i2c: E2 08 00 9F 10 80 13 01 00 00 00 00 00 2C [11:41:05]Write i2c OK [11:41:05]MH_I2C_Read... [11:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:05]Read from MH i2c: E2 [11:41:05]MH_I2C_Read... [11:41:05]Read from MH i2c: E2 0E 00 [11:41:05]MH_I2C_Read... [11:41:05]Read from MH i2c: E2 0E 00 9F 10 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 DA [11:41:05]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:41:05]wFMCommunicate OK [11:41:05]SAM_PROTO_GetShiftState done [11:41:05]FM_GetShiftState done [11:41:05]req_shift_opened done [11:41:05]requested_item shift.open_date is exist - process it [11:41:05]req_shift_open_date [11:41:05]req_shift_open_date done [11:41:05]produce_requested_data done [11:41:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29805,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:41:05]process_action_free print_text [11:41:05]json_value_free [11:41:05]json_value_free done [11:41:05]process_json_proto returns [11:41:05]Send response to host [11:41:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29805,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:41:05]free response buf [11:41:05]execute_script done [11:41:05]execute_script returns [11:41:05]free content buf [11:41:05]Sock 7.Close socket [11:41:05]Sock 7.Thread stoped [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]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:04]accept exits with 9 [11:43:04]New connection [11:43:04]New thread 3067276644 created [11:43:04]Thread 3067133284 joined [11:43:04]Waiting for new connection... [11:43:04] Sock 9.Parse request [11:43:04]Sock 9.Check first char [11:43:04]Sock 9.First char is OK [11:43:04]request: POST /json_proto HTTP/1.0 [11:43:04]Method: POST [11:43:04]URL: /json_proto [11:43:04]Method is POST - this is cgi request [11:43:04]url: /json_proto [11:43:04]query_string will be loaded in cgi processing [11:43:04]execute_cgi json_proto POST (null) [11:43:04]execute_cgi path=json_proto method=POST [11:43:04]POST find Content-Length [11:43:04]Host: 172.17.33.3:8080 [11:43:04]Content-Length: 817 [11:43:04]Content-Type: application/json [11:43:04] [11:43:04]POST finish read [11:43:04]Found Content-Length = 817 [11:43:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.000, "sum" : 648.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 648.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:04]execute_script... [11:43:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.000, "sum" : 648.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 648.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:04]POST & json_proto [11:43:04]process_json_proto [11:43:04]json parsed OK: [11:43:04]protocol is kg_v1.0 [11:43:04]action value=close_receipt [11:43:04]process_action close_receipt [11:43:04]cmd_close_receipt [11:43:04]MH_GetDate [11:43:04]Write to MH i2c: F0 00 00 A0 10 9F [11:43:04]Write i2c OK [11:43:04]MH_I2C_Read... [11:43:04]Read from MH i2c: F0 [11:43:04]MH_I2C_Read... [11:43:04]Read from MH i2c: F0 09 00 [11:43:04]MH_I2C_Read... [11:43:04]Read from MH i2c: F0 09 00 A0 10 00 4A 64 1E 66 23 5B 8F 65 4C [11:43:04]GetLastDocTimeStamp 1713267510 [11:43:04]current date 1713267786 [11:43:04]FM_GetShiftState [11:43:04]SAM_PROTO_GetShiftState [11:43:04]wFMCommunicate request_size=4 [11:43:04]MH_SAM_APDU [11:43:04]CAPDU: 80 13 01 00 [11:43:04]Write to MH i2c: E2 08 00 A1 10 80 13 01 00 00 00 00 00 2E [11:43:04]Write i2c OK [11:43:04]MH_I2C_Read... [11:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:05]Read from MH i2c: E2 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 0E 00 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 0E 00 A1 10 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 DC [11:43:05]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:43:05]wFMCommunicate OK [11:43:05]SAM_PROTO_GetShiftState done [11:43:05]FM_GetShiftState done [11:43:05]opened in 1713226843 [11:43:05]opened+sec_in_day 1713313243 [11:43:05]quantity*price = 64800 [11:43:05]sum+1 = 64801 [11:43:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 648.00 НСП 1% : 5.73 НДС 12% : 68.81 Наличными: 0.00 Безнал.: 648.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 80 16.04.2024 11:43 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29806 ФПД: 95360631662076 1/tax-web-control/client/api/v1/ticket?date=20240416T114306&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29806&fm=95360631662076&tin=02508201610067®Number=0000138879044617&sum=64800 [11:43:06]StoreToDocumentArchive [11:43:06]shift 118 fd 29806 [11:43:06]save to /storage/0118/doc_00029806 [11:43:06]save last doc name /storage/0118/doc_00029806 to /storage/kkm_last_doc_name [11:43:06]save OK [11:43:06]Clear old archive folders... [11:43:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:06]tlvbuf is 00210E00 [11:43:06]SAM_PROTO_ClearQueue [11:43:06]wFMCommunicate request_size=4 [11:43:06]MH_SAM_APDU [11:43:06]CAPDU: 80 09 00 00 [11:43:06]Write to MH i2c: E2 08 00 AE 10 80 09 00 00 00 00 00 00 30 [11:43:06]Write i2c OK [11:43:06]MH_I2C_Read... [11:43:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:06]Read from MH i2c: E2 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 03 00 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 03 00 AE 10 00 90 00 32 [11:43:06]RAPDU: 90 00 [11:43:06]wFMCommunicate OK [11:43:06]SAM_PROTO_ClearQueue done [11:43:06]KKMCreateOFDPacket [11:43:06]OFDProtocolAddRootSTLVToBuf [11:43:06]FM_MakeSignedData [11:43:06]FM_MakeSignedData [11:43:06]SAM_PROTO_SignData [11:43:06]wFMCommunicate request_size=4 [11:43:06]MH_SAM_APDU [11:43:06]CAPDU: 80 0D 01 02 [11:43:06]Write to MH i2c: E2 08 00 AF 10 80 0D 01 02 00 00 00 00 38 [11:43:06]Write i2c OK [11:43:06]MH_I2C_Read... [11:43:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:06]Read from MH i2c: E2 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 03 00 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 03 00 AF 10 00 90 00 33 [11:43:06]RAPDU: 90 00 [11:43:06]wFMCommunicate OK [11:43:06]wFMCommunicate request_size=255 [11:43:06]MH_SAM_APDU [11:43:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 4A 64 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 74 00 00 35 04 06 00 56 [11:43:06]Write to MH i2c: E2 02 01 B0 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 4A 64 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 74 00 00 35 04 06 00 56 00 00 C0 [11:43:06]Write i2c OK [11:43:06]MH_I2C_Read... [11:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:06]Read from MH i2c: E2 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 03 00 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 03 00 B0 10 00 90 00 34 [11:43:06]RAPDU: 90 00 [11:43:06]wFMCommunicate OK [11:43:06]wFMCommunicate request_size=10 [11:43:06]MH_SAM_APDU [11:43:06]CAPDU: 80 0D 02 02 05 BA E0 93 65 FC [11:43:06]Write to MH i2c: E2 0D 00 B1 10 80 0D 02 02 05 00 BA E0 93 65 FC 00 00 D3 [11:43:06]Write i2c OK [11:43:06]MH_I2C_Read... [11:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:06]Read from MH i2c: E2 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 03 00 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 03 00 B1 10 00 90 00 35 [11:43:06]RAPDU: 90 00 [11:43:06]wFMCommunicate OK [11:43:06]wFMCommunicate request_size=4 [11:43:06]MH_SAM_APDU [11:43:06]CAPDU: 80 0D 03 02 [11:43:06]Write to MH i2c: E2 08 00 B2 10 80 0D 03 02 00 00 00 00 3D [11:43:06]Write i2c OK [11:43:06]MH_I2C_Read... [11:43:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:06]Read from MH i2c: E2 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 0B 00 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 0B 00 B2 10 00 6F 71 69 B5 14 78 CA C0 90 00 52 [11:43:06]RAPDU: 6F 71 69 B5 14 78 CA C0 90 00 [11:43:06]wFMCommunicate OK [11:43:06]SAM_PROTO_SignData done [11:43:06]FM_MakeSignedData done [11:43:06]CreateOFDProtocolMessage [11:43:06]wFMCommunicate request_size=4 [11:43:06]MH_SAM_APDU [11:43:06]CAPDU: 80 11 00 00 [11:43:06]Write to MH i2c: E2 08 00 B3 10 80 11 00 00 00 00 00 00 3D [11:43:06]Write i2c OK [11:43:06]MH_I2C_Read... [11:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:06]Read from MH i2c: E2 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 17 00 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 17 00 B3 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8C [11:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:43:06]wFMCommunicate OK [11:43:06]CreateOFDProtocolMessage done [11:43:06]OFDSenderStorePacket 29806 [11:43:06]StoreOFDPacket docnum=29806 [11:43:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 71 5C 07 01 F8 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 4A 64 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 74 00 00 35 04 06 00 56 BA E0 93 65 FC 6F 71 69 B5 14 78 CA C0 [11:43:06]CheckFolder [11:43:06]dirname=/storage/ofd_packets [11:43:06]CheckFolder done [11:43:06]ProducePacketName [11:43:06]name=ofd_packets/00029806 [11:43:06]NVStorageSaveData ofd_packets/00029806 [11:43:06]File name is /storage/ofd_packets/00029806 [11:43:06]Write 301 bytes [11:43:06]NVStorageSaveData done [11:43:06]OFDSenderStorePacket done [11:43:06]KKMCreateOFDPacket done [11:43:06]NVStorageSaveData kkm_last_timestamp [11:43:06]File name is /storage/kkm_last_timestamp [11:43:06]Write 4 bytes [11:43:06]NVStorageSaveData done [11:43:06]ExternCall_PrintAddStr [11:43:06]wPrintStart [11:43:06]Write to MH i2c: 01 00 00 B4 10 C4 [11:43:06]Write i2c OK [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: 01 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: 01 07 00 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: 01 07 00 B4 10 00 00 00 00 00 FF 0F D9 [11:43:06]RasterBufferAndPrint [11:43:06]line Счет N : (1)348305 [11:43:06]line ИНН: 02508201610067 [11:43:06]line Контрольно-Кассовый Чек [11:43:06]line ПРОДАЖА [11:43:06]line ТРК (МРК, ГНК) : 32 [11:43:06]line Товар: 2710124130 [11:43:06]line Аи-92-К-5 [11:43:06]line 10.000 * 64.80 [11:43:06]line = 648.00 [11:43:06]line НДС 12% НСП 1% [11:43:06]line > о реализуемом товаре [11:43:06]line ИТОГО: 648.00 [11:43:06]line НСП 1% : 5.73 [11:43:06]line НДС 12% : 68.81 [11:43:06]line Наличными: 0.00 [11:43:06]line Безнал.: 648.00 [11:43:06]line Место: АЗС № 108 "Партнер Нефть" [11:43:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:43:06]line СНО: Общий режим [11:43:06]line Чек 80 16.04.2024 11:43 [11:43:06]line Смена: 118 ФФД: 1.0 [11:43:06]line ЗНМ: 0300000027 [11:43:06]line РНМ: 0000138879044617 [11:43:06]line Версия ККМ: 001 [11:43:06]line Платежная система: Бакай Банк [11:43:06]line ФМ: 0000000000963154 [11:43:06]line ФД: 29806 [11:43:06]line ФПД: 95360631662076 [11:43:06]line 1/tax-web-control/client/api/v1/ticket?date=20240416T114306&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29806&fm=95360631662076&tin=02508201610067®Number=0000138879044617&sum=64800 [11:43:06]OFD Sender: Processing packet 29806 [packets to send 8, broken 7] [11:43:06]ProducePacketName [11:43:06]name=ofd_packets/00029806 [11:43:06]OFD Sender: To server: pG, [11:43:06]CommunicateWithHost lk.salyk.kg:30040 [11:43:06]ConnectInit lk.salyk.kg [11:43:06]written 0, free lines is 4095 [11:43:07]Connected sock=10 [11:43:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 71 5C 07 01 F8 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 4A 64 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 74 00 00 35 04 06 00 56 BA E0 93 65 FC 6F 71 69 B5 14 78 CA C0 [11:43:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7E 50 47 00 D1 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 74 00 00 F4 03 04 00 E8 0E 1E 66 B6 04 01 00 00 82 55 F6 B0 6A 58 67 6D [11:43:07]CommunicateWithHost err = 0 [11:43:07]CheckOFDResponse [11:43:07]1017 (14) - 77093643461234 [11:43:07]1041 (16) - 0000000000963154 [11:43:07]1040 (4) - 29806 [11:43:07]1012 (4) - 16.04.2024 05:38 [11:43:07]1206 (1) - 0 [11:43:07]OFD Sender: Remove packet 29806 [11:43:07]ProducePacketName [11:43:07]name=ofd_packets/00029806 [11:43:07]NVStorageDeleteData [11:43:07]Write to MH i2c: 01 00 00 DD 10 ED [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: 01 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: 01 07 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: 01 07 00 DD 10 00 00 00 00 00 EB 0C EB [11:43:07]RasterBufferAndPrint [11:43:07]line [11:43:07]line [11:43:07]line [11:43:07]line [11:43:07]line [11:43:07]written 0, free lines is 3314 [11:43:07]MH_Cut [11:43:07]Write to MH i2c: D1 01 00 E4 10 01 C6 [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: D1 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: D1 01 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: D1 01 00 E4 10 00 C5 [11:43:07]Write to MH i2c: 01 00 00 E5 10 F5 [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]OFD Sender: No OFD packet to send [11:43:08]*** Cut start [11:43:08]*** Partial cut [11:43:08]*** CUTSNS_PIN = 1 [11:43:08]*** CUTSNS_PIN = 0 [11:43:08]*** Brake cut motor [11:43:08]Read from MH i2c: 01 [11:43:08]MH_I2C_Read... [11:43:08]*** Stop cut motor [11:43:08]*** Cut end [11:43:08]Read from MH i2c: 01 07 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: 01 07 00 E5 10 00 00 00 00 00 FF 0F 0A [11:43:08]process_action close_receipt done [11:43:08]requested_data is exist [11:43:08]produce_requested_data [11:43:08]requested_item fm.sn is exist - process it [11:43:08]wFMCommunicate request_size=4 [11:43:08]MH_SAM_APDU [11:43:08]CAPDU: 80 11 00 00 [11:43:08]Write to MH i2c: E2 08 00 E6 10 80 11 00 00 00 00 00 00 70 [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:08]Read from MH i2c: E2 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 17 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 17 00 E6 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BF [11:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:43:08]wFMCommunicate OK [11:43:08]requested_item fd.num is exist - process it [11:43:08]SAM_PROTO_GetFieldsCounters [11:43:08]wFMCommunicate request_size=4 [11:43:08]MH_SAM_APDU [11:43:08]CAPDU: 80 13 00 00 [11:43:08]Write to MH i2c: E2 08 00 E7 10 80 13 00 00 00 00 00 00 73 [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:09]Read from MH i2c: E2 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 62 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 62 00 E7 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6E 74 00 00 0E 04 04 00 76 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 F9 [11:43:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6E 74 00 00 0E 04 04 00 76 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:43:09]wFMCommunicate OK [11:43:09]SAM_PROTO_GetFieldsCounters done [11:43:09]requested_item shift.num is exist - process it [11:43:09]requested_item shift.opened is exist - process it [11:43:09]req_shift_opened [11:43:09]FM_GetShiftState [11:43:09]SAM_PROTO_GetShiftState [11:43:09]wFMCommunicate request_size=4 [11:43:09]MH_SAM_APDU [11:43:09]CAPDU: 80 13 01 00 [11:43:09]Write to MH i2c: E2 08 00 E8 10 80 13 01 00 00 00 00 00 75 [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:09]Read from MH i2c: E2 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 0E 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 0E 00 E8 10 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 23 [11:43:09]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:43:09]wFMCommunicate OK [11:43:09]SAM_PROTO_GetShiftState done [11:43:09]FM_GetShiftState done [11:43:09]req_shift_opened done [11:43:09]requested_item shift.open_date is exist - process it [11:43:09]req_shift_open_date [11:43:09]req_shift_open_date done [11:43:09]produce_requested_data done [11:43:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29806,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:43:09]process_action_free close_receipt [11:43:09]json_value_free [11:43:09]json_value_free done [11:43:09]process_json_proto returns [11:43:09]Send response to host [11:43:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29806,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:43:09]free response buf [11:43:09]execute_script done [11:43:09]execute_script returns [11:43:09]free content buf [11:43:09]Sock 9.Close socket [11:43:09]Sock 9.Thread stoped [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:40]accept exits with 7 [11:45:40]New connection [11:45:40]New thread 3067133284 created [11:45:40]Thread 3067276644 joined [11:45:40]Waiting for new connection... [11:45:40] Sock 7.Parse request [11:45:40]Sock 7.Check first char [11:45:40]Sock 7.First char is OK [11:45:40]request: POST /json_proto HTTP/1.0 [11:45:40]Method: POST [11:45:40]URL: /json_proto [11:45:40]Method is POST - this is cgi request [11:45:40]url: /json_proto [11:45:40]query_string will be loaded in cgi processing [11:45:40]execute_cgi json_proto POST (null) [11:45:40]execute_cgi path=json_proto method=POST [11:45:40]POST find Content-Length [11:45:40]Host: 172.17.33.3:8080 [11:45:40]Content-Length: 677 [11:45:40]Content-Type: application/json [11:45:40] [11:45:40]POST finish read [11:45:40]Found Content-Length = 677 [11:45:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "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" ] } } [11:45:40]execute_script... [11:45:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "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" ] } } [11:45:40]POST & json_proto [11:45:40]process_json_proto [11:45:40]json parsed OK: [11:45:40]protocol is kg_v1.0 [11:45:40]action value=close_receipt [11:45:40]process_action close_receipt [11:45:40]cmd_close_receipt [11:45:40]MH_GetDate [11:45:40]Write to MH i2c: F0 00 00 E9 10 E8 [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: F0 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: F0 09 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: F0 09 00 E9 10 00 E6 64 1E 66 23 5B 8F 65 31 [11:45:40]GetLastDocTimeStamp 1713267786 [11:45:40]current date 1713267942 [11:45:40]FM_GetShiftState [11:45:40]SAM_PROTO_GetShiftState [11:45:40]wFMCommunicate request_size=4 [11:45:40]MH_SAM_APDU [11:45:40]CAPDU: 80 13 01 00 [11:45:40]Write to MH i2c: E2 08 00 EA 10 80 13 01 00 00 00 00 00 77 [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:40]Read from MH i2c: E2 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 0E 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 0E 00 EA 10 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 25 [11:45:40]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:45:40]wFMCommunicate OK [11:45:40]SAM_PROTO_GetShiftState done [11:45:40]FM_GetShiftState done [11:45:40]opened in 1713226843 [11:45:40]opened+sec_in_day 1713313243 [11:45:40]quantity*price = 50025 [11:45:40]sum+1 = 50027 [11:45:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 81 16.04.2024 11:45 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29807 ФПД: 54818966748559 1/tax-web-control/client/api/v1/ticket?date=20240416T114542&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29807&fm=54818966748559&tin=02508201610067®Number=0000138879044617&sum=50000 [11:45:41]StoreToDocumentArchive [11:45:41]shift 118 fd 29807 [11:45:41]save to /storage/0118/doc_00029807 [11:45:41]save last doc name /storage/0118/doc_00029807 to /storage/kkm_last_doc_name [11:45:41]save OK [11:45:41]Clear old archive folders... [11:45:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:41]tlvbuf is 002029B0 [11:45:41]SAM_PROTO_ClearQueue [11:45:41]wFMCommunicate request_size=4 [11:45:41]MH_SAM_APDU [11:45:41]CAPDU: 80 09 00 00 [11:45:41]Write to MH i2c: E2 08 00 F7 10 80 09 00 00 00 00 00 00 79 [11:45:41]Write i2c OK [11:45:41]MH_I2C_Read... [11:45:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:41]Read from MH i2c: E2 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 03 00 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 03 00 F7 10 00 90 00 7B [11:45:41]RAPDU: 90 00 [11:45:41]wFMCommunicate OK [11:45:41]SAM_PROTO_ClearQueue done [11:45:41]KKMCreateOFDPacket [11:45:41]OFDProtocolAddRootSTLVToBuf [11:45:41]FM_MakeSignedData [11:45:41]FM_MakeSignedData [11:45:41]SAM_PROTO_SignData [11:45:41]wFMCommunicate request_size=4 [11:45:41]MH_SAM_APDU [11:45:41]CAPDU: 80 0D 01 02 [11:45:41]Write to MH i2c: E2 08 00 F8 10 80 0D 01 02 00 00 00 00 81 [11:45:41]Write i2c OK [11:45:41]MH_I2C_Read... [11:45:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:42]Read from MH i2c: E2 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 03 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 03 00 F8 10 00 90 00 7C [11:45:42]RAPDU: 90 00 [11:45:42]wFMCommunicate OK [11:45:42]wFMCommunicate request_size=255 [11:45:42]MH_SAM_APDU [11:45:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E6 64 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 74 00 00 35 04 06 00 31 [11:45:42]Write to MH i2c: E2 02 01 F9 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E6 64 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 74 00 00 35 04 06 00 31 00 00 E3 [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:42]Read from MH i2c: E2 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 03 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 03 00 F9 10 00 90 00 7D [11:45:42]RAPDU: 90 00 [11:45:42]wFMCommunicate OK [11:45:42]wFMCommunicate request_size=10 [11:45:42]MH_SAM_APDU [11:45:42]CAPDU: 80 0D 02 02 05 DB 89 0A 3D 8F [11:45:42]Write to MH i2c: E2 0D 00 FA 10 80 0D 02 02 05 00 DB 89 0A 3D 8F 00 00 C8 [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:42]Read from MH i2c: E2 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 03 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 03 00 FA 10 00 90 00 7E [11:45:42]RAPDU: 90 00 [11:45:42]wFMCommunicate OK [11:45:42]wFMCommunicate request_size=4 [11:45:42]MH_SAM_APDU [11:45:42]CAPDU: 80 0D 03 02 [11:45:42]Write to MH i2c: E2 08 00 FB 10 80 0D 03 02 00 00 00 00 86 [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:42]Read from MH i2c: E2 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 0B 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 0B 00 FB 10 00 DB DF B8 36 FC 95 4C 86 90 00 92 [11:45:42]RAPDU: DB DF B8 36 FC 95 4C 86 90 00 [11:45:42]wFMCommunicate OK [11:45:42]SAM_PROTO_SignData done [11:45:42]FM_MakeSignedData done [11:45:42]CreateOFDProtocolMessage [11:45:42]wFMCommunicate request_size=4 [11:45:42]MH_SAM_APDU [11:45:42]CAPDU: 80 11 00 00 [11:45:42]Write to MH i2c: E2 08 00 FC 10 80 11 00 00 00 00 00 00 86 [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:42]Read from MH i2c: E2 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 17 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: E2 17 00 FC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D5 [11:45:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:45:42]wFMCommunicate OK [11:45:42]CreateOFDProtocolMessage done [11:45:42]OFDSenderStorePacket 29807 [11:45:42]StoreOFDPacket docnum=29807 [11:45:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E6 40 07 01 8A BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E6 64 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 74 00 00 35 04 06 00 31 DB 89 0A 3D 8F DB DF B8 36 FC 95 4C 86 [11:45:42]CheckFolder [11:45:42]dirname=/storage/ofd_packets [11:45:42]CheckFolder done [11:45:42]ProducePacketName [11:45:42]name=ofd_packets/00029807 [11:45:42]NVStorageSaveData ofd_packets/00029807 [11:45:42]File name is /storage/ofd_packets/00029807 [11:45:42]Write 301 bytes [11:45:42]NVStorageSaveData done [11:45:42]OFDSenderStorePacket done [11:45:42]KKMCreateOFDPacket done [11:45:42]NVStorageSaveData kkm_last_timestamp [11:45:42]File name is /storage/kkm_last_timestamp [11:45:42]Write 4 bytes [11:45:42]NVStorageSaveData done [11:45:42]ExternCall_PrintAddStr [11:45:42]wPrintStart [11:45:42]Write to MH i2c: 01 00 00 FD 10 0D [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: 01 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: 01 07 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: 01 07 00 FD 10 00 00 00 00 00 FF 0F 22 [11:45:42]RasterBufferAndPrint [11:45:42]line Счет N : (1)348306 [11:45:42]line ИНН: 02508201610067 [11:45:42]line Контрольно-Кассовый Чек [11:45:42]line ПРОДАЖА [11:45:42]line ТРК (МРК, ГНК) : 23 [11:45:42]line Товар: 2710124130 [11:45:42]line Аи-92-К-5 [11:45:42]line 7.720 * 64.80 [11:45:42]line = 500.26 [11:45:42]line НДС 12% НСП 1% [11:45:42]line > о реализуемом товаре [11:45:42]line ОКРУГЛЕНИЕ: -0.26 [11:45:42]line ИТОГО: 500.00 [11:45:42]line Внесено: 500.00 [11:45:42]line СДАЧА: 0.00 [11:45:42]line НСП 1% : 4.43 [11:45:42]line НДС 12% : 53.12 [11:45:42]line Наличными: 500.00 [11:45:42]line Безнал.: 0.00 [11:45:42]line Место: АЗС № 108 "Партнер Нефть" [11:45:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:45:42]line СНО: Общий режим [11:45:42]line Чек 81 16.04.2024 11:45 [11:45:42]line Смена: 118 ФФД: 1.0 [11:45:42]line ЗНМ: 0300000027 [11:45:42]line РНМ: 0000138879044617 [11:45:42]line Версия ККМ: 001 [11:45:42]line ФМ: 0000000000963154 [11:45:42]line ФД: 29807 [11:45:42]line ФПД: 54818966748559 [11:45:42]line 1/tax-web-control/client/api/v1/ticket?date=20240416T114542&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29807&fm=54818966748559&tin=02508201610067®Number=0000138879044617&sum=50000 [11:45:42]OFD Sender: Processing packet 29807 [packets to send 8, broken 7] [11:45:42]ProducePacketName [11:45:42]name=ofd_packets/00029807 [11:45:42]OFD Sender: To server: pG, [11:45:42]CommunicateWithHost lk.salyk.kg:30040 [11:45:42]ConnectInit lk.salyk.kg [11:45:42]written 0, free lines is 4095 [11:45:42]Connected sock=10 [11:45:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E6 40 07 01 8A BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E6 64 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 74 00 00 35 04 06 00 31 DB 89 0A 3D 8F DB DF B8 36 FC 95 4C 86 [11:45:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FE F7 47 00 08 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 36 33 31 35 34 10 04 04 00 6F 74 00 00 F4 03 04 00 84 0F 1E 66 B6 04 01 00 00 99 40 83 34 EF 09 1B 07 [11:45:43]CommunicateWithHost err = 0 [11:45:43]CheckOFDResponse [11:45:43]1017 (14) - 77093643461234 [11:45:43]1041 (16) - 0000000000963154 [11:45:43]1040 (4) - 29807 [11:45:43]1012 (4) - 16.04.2024 05:41 [11:45:43]1206 (1) - 0 [11:45:43]OFD Sender: Remove packet 29807 [11:45:43]ProducePacketName [11:45:43]name=ofd_packets/00029807 [11:45:43]NVStorageDeleteData [11:45:43]Write to MH i2c: 01 00 00 27 11 38 [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: 01 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: 01 07 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: 01 07 00 27 11 00 00 00 00 00 CB 0C 16 [11:45:43]RasterBufferAndPrint [11:45:43]line [11:45:43]line [11:45:43]line [11:45:43]line [11:45:43]line [11:45:43]written 0, free lines is 3281 [11:45:43]MH_Cut [11:45:43]Write to MH i2c: D1 01 00 2E 11 01 11 [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: D1 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: D1 01 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: D1 01 00 2E 11 00 10 [11:45:43]Write to MH i2c: 01 00 00 2F 11 40 [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]OFD Sender: No OFD packet to send [11:45:44]*** Cut start [11:45:44]*** Partial cut [11:45:44]*** CUTSNS_PIN = 1 [11:45:44]*** CUTSNS_PIN = 0 [11:45:44]*** Brake cut motor [11:45:44]Read from MH i2c: 01 [11:45:44]MH_I2C_Read... [11:45:44]*** Stop cut motor [11:45:44]*** Cut end [11:45:44]Read from MH i2c: 01 07 00 [11:45:44]MH_I2C_Read... [11:45:44]Read from MH i2c: 01 07 00 2F 11 00 00 00 00 00 FF 0F 55 [11:45:44]process_action close_receipt done [11:45:44]requested_data is exist [11:45:44]produce_requested_data [11:45:44]requested_item fm.sn is exist - process it [11:45:44]wFMCommunicate request_size=4 [11:45:44]MH_SAM_APDU [11:45:44]CAPDU: 80 11 00 00 [11:45:44]Write to MH i2c: E2 08 00 30 11 80 11 00 00 00 00 00 00 BB [11:45:44]Write i2c OK [11:45:44]MH_I2C_Read... [11:45:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:44]Read from MH i2c: E2 [11:45:44]MH_I2C_Read... [11:45:44]Read from MH i2c: E2 17 00 [11:45:44]MH_I2C_Read... [11:45:44]Read from MH i2c: E2 17 00 30 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0A [11:45:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:45:44]wFMCommunicate OK [11:45:44]requested_item fd.num is exist - process it [11:45:44]SAM_PROTO_GetFieldsCounters [11:45:44]wFMCommunicate request_size=4 [11:45:44]MH_SAM_APDU [11:45:44]CAPDU: 80 13 00 00 [11:45:44]Write to MH i2c: E2 08 00 31 11 80 13 00 00 00 00 00 00 BE [11:45:44]Write i2c OK [11:45:44]MH_I2C_Read... [11:45:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:44]Read from MH i2c: E2 [11:45:44]MH_I2C_Read... [11:45:44]Read from MH i2c: E2 62 00 [11:45:44]MH_I2C_Read... [11:45:44]Read from MH i2c: E2 62 00 31 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6F 74 00 00 0E 04 04 00 76 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 48 [11:45:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6F 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:44]wFMCommunicate OK [11:45:44]SAM_PROTO_GetFieldsCounters done [11:45:44]requested_item shift.num is exist - process it [11:45:44]requested_item shift.opened is exist - process it [11:45:44]req_shift_opened [11:45:44]FM_GetShiftState [11:45:44]SAM_PROTO_GetShiftState [11:45:44]wFMCommunicate request_size=4 [11:45:44]MH_SAM_APDU [11:45:44]CAPDU: 80 13 01 00 [11:45:44]Write to MH i2c: E2 08 00 32 11 80 13 01 00 00 00 00 00 C0 [11:45:44]Write i2c OK [11:45:44]MH_I2C_Read... [11:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:44]Read from MH i2c: E2 [11:45:44]MH_I2C_Read... [11:45:44]Read from MH i2c: E2 0E 00 [11:45:44]MH_I2C_Read... [11:45:44]Read from MH i2c: E2 0E 00 32 11 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 6E [11:45:44]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:45:44]wFMCommunicate OK [11:45:44]SAM_PROTO_GetShiftState done [11:45:44]FM_GetShiftState done [11:45:44]req_shift_opened done [11:45:44]requested_item shift.open_date is exist - process it [11:45:44]req_shift_open_date [11:45:44]req_shift_open_date done [11:45:44]produce_requested_data done [11:45:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29807,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:45:44]process_action_free close_receipt [11:45:44]json_value_free [11:45:44]json_value_free done [11:45:44]process_json_proto returns [11:45:44]Send response to host [11:45:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29807,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:45:44]free response buf [11:45:44]execute_script done [11:45:44]execute_script returns [11:45:44]free content buf [11:45:44]Sock 7.Close socket [11:45:44]Sock 7.Thread stoped [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:45]accept exits with 9 [11:46:45]New connection [11:46:45]New thread 3067276644 created [11:46:45]Thread 3067133284 joined [11:46:45]Waiting for new connection... [11:46:45] Sock 9.Parse request [11:46:45]Sock 9.Check first char [11:46:45]Sock 9.First char is OK [11:46:45]request: POST /json_proto HTTP/1.0 [11:46:45]Method: POST [11:46:45]URL: /json_proto [11:46:45]Method is POST - this is cgi request [11:46:45]url: /json_proto [11:46:45]query_string will be loaded in cgi processing [11:46:45]execute_cgi json_proto POST (null) [11:46:45]execute_cgi path=json_proto method=POST [11:46:45]POST find Content-Length [11:46:45]Host: 172.17.33.3:8080 [11:46:45]Content-Length: 677 [11:46:45]Content-Type: application/json [11:46:45] [11:46:45]POST finish read [11:46:45]Found Content-Length = 677 [11:46:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "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" ] } } [11:46:45]execute_script... [11:46:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "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" ] } } [11:46:45]POST & json_proto [11:46:45]process_json_proto [11:46:45]json parsed OK: [11:46:45]protocol is kg_v1.0 [11:46:45]action value=close_receipt [11:46:45]process_action close_receipt [11:46:45]cmd_close_receipt [11:46:45]MH_GetDate [11:46:45]Write to MH i2c: F0 00 00 33 11 33 [11:46:45]Write i2c OK [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: F0 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: F0 09 00 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: F0 09 00 33 11 00 26 65 1E 66 23 5B 8F 65 BD [11:46:45]GetLastDocTimeStamp 1713267942 [11:46:45]current date 1713268006 [11:46:45]FM_GetShiftState [11:46:45]SAM_PROTO_GetShiftState [11:46:45]wFMCommunicate request_size=4 [11:46:45]MH_SAM_APDU [11:46:45]CAPDU: 80 13 01 00 [11:46:45]Write to MH i2c: E2 08 00 34 11 80 13 01 00 00 00 00 00 C2 [11:46:45]Write i2c OK [11:46:45]MH_I2C_Read... [11:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:45]Read from MH i2c: E2 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: E2 0E 00 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: E2 0E 00 34 11 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 70 [11:46:45]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:46:45]wFMCommunicate OK [11:46:45]SAM_PROTO_GetShiftState done [11:46:45]FM_GetShiftState done [11:46:45]opened in 1713226843 [11:46:45]opened+sec_in_day 1713313243 [11:46:45]quantity*price = 40046 [11:46:45]sum+1 = 40047 [11:46:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 82 16.04.2024 11:46 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29808 ФПД: 79249177541158 1/tax-web-control/client/api/v1/ticket?date=20240416T114647&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29808&fm=79249177541158&tin=02508201610067®Number=0000138879044617&sum=40000 [11:46:46]StoreToDocumentArchive [11:46:46]shift 118 fd 29808 [11:46:46]save to /storage/0118/doc_00029808 [11:46:46]save last doc name /storage/0118/doc_00029808 to /storage/kkm_last_doc_name [11:46:46]save OK [11:46:46]Clear old archive folders... [11:46:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:46]tlvbuf is 0019E500 [11:46:46]SAM_PROTO_ClearQueue [11:46:46]wFMCommunicate request_size=4 [11:46:46]MH_SAM_APDU [11:46:46]CAPDU: 80 09 00 00 [11:46:46]Write to MH i2c: E2 08 00 41 11 80 09 00 00 00 00 00 00 C4 [11:46:46]Write i2c OK [11:46:46]MH_I2C_Read... [11:46:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:46]Read from MH i2c: E2 [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: E2 03 00 [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: E2 03 00 41 11 00 90 00 C6 [11:46:46]RAPDU: 90 00 [11:46:46]wFMCommunicate OK [11:46:46]SAM_PROTO_ClearQueue done [11:46:46]KKMCreateOFDPacket [11:46:46]OFDProtocolAddRootSTLVToBuf [11:46:46]FM_MakeSignedData [11:46:46]FM_MakeSignedData [11:46:46]SAM_PROTO_SignData [11:46:46]wFMCommunicate request_size=4 [11:46:46]MH_SAM_APDU [11:46:46]CAPDU: 80 0D 01 02 [11:46:46]Write to MH i2c: E2 08 00 42 11 80 0D 01 02 00 00 00 00 CC [11:46:46]Write i2c OK [11:46:46]MH_I2C_Read... [11:46:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:46]Read from MH i2c: E2 [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: E2 03 00 [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: E2 03 00 42 11 00 90 00 C7 [11:46:46]RAPDU: 90 00 [11:46:46]wFMCommunicate OK [11:46:46]wFMCommunicate request_size=255 [11:46:46]MH_SAM_APDU [11:46:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 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 52 00 00 00 F4 03 04 00 27 65 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 74 00 00 35 04 06 00 48 [11:46:46]Write to MH i2c: E2 02 01 43 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 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 52 00 00 00 F4 03 04 00 27 65 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 74 00 00 35 04 06 00 48 00 00 6E [11:46:46]Write i2c OK [11:46:46]MH_I2C_Read... [11:46:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:46]Read from MH i2c: E2 [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: E2 03 00 [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: E2 03 00 43 11 00 90 00 C8 [11:46:46]RAPDU: 90 00 [11:46:46]wFMCommunicate OK [11:46:46]wFMCommunicate request_size=10 [11:46:46]MH_SAM_APDU [11:46:46]CAPDU: 80 0D 02 02 05 13 A3 13 7A 26 [11:46:46]Write to MH i2c: E2 0D 00 44 11 80 0D 02 02 05 00 13 A3 13 7A 26 00 00 42 [11:46:46]Write i2c OK [11:46:46]MH_I2C_Read... [11:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:47]Read from MH i2c: E2 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 03 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 03 00 44 11 00 90 00 C9 [11:46:47]RAPDU: 90 00 [11:46:47]wFMCommunicate OK [11:46:47]wFMCommunicate request_size=4 [11:46:47]MH_SAM_APDU [11:46:47]CAPDU: 80 0D 03 02 [11:46:47]Write to MH i2c: E2 08 00 45 11 80 0D 03 02 00 00 00 00 D1 [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:47]Read from MH i2c: E2 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 0B 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 0B 00 45 11 00 34 0D 53 6B 09 61 24 65 90 00 C4 [11:46:47]RAPDU: 34 0D 53 6B 09 61 24 65 90 00 [11:46:47]wFMCommunicate OK [11:46:47]SAM_PROTO_SignData done [11:46:47]FM_MakeSignedData done [11:46:47]CreateOFDProtocolMessage [11:46:47]wFMCommunicate request_size=4 [11:46:47]MH_SAM_APDU [11:46:47]CAPDU: 80 11 00 00 [11:46:47]Write to MH i2c: E2 08 00 46 11 80 11 00 00 00 00 00 00 D1 [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:47]Read from MH i2c: E2 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 17 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 17 00 46 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 20 [11:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:46:47]wFMCommunicate OK [11:46:47]CreateOFDProtocolMessage done [11:46:47]OFDSenderStorePacket 29808 [11:46:47]StoreOFDPacket docnum=29808 [11:46:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AC CF 07 01 CA EC 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 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 52 00 00 00 F4 03 04 00 27 65 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 74 00 00 35 04 06 00 48 13 A3 13 7A 26 34 0D 53 6B 09 61 24 65 [11:46:47]CheckFolder [11:46:47]dirname=/storage/ofd_packets [11:46:47]CheckFolder done [11:46:47]ProducePacketName [11:46:47]name=ofd_packets/00029808 [11:46:47]NVStorageSaveData ofd_packets/00029808 [11:46:47]File name is /storage/ofd_packets/00029808 [11:46:47]Write 301 bytes [11:46:47]NVStorageSaveData done [11:46:47]OFDSenderStorePacket done [11:46:47]KKMCreateOFDPacket done [11:46:47]NVStorageSaveData kkm_last_timestamp [11:46:47]File name is /storage/kkm_last_timestamp [11:46:47]Write 4 bytes [11:46:47]NVStorageSaveData done [11:46:47]ExternCall_PrintAddStr [11:46:47]wPrintStart [11:46:47]Write to MH i2c: 01 00 00 47 11 58 [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: 01 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: 01 07 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: 01 07 00 47 11 00 00 00 00 00 FF 0F 6D [11:46:47]RasterBufferAndPrint [11:46:47]line Счет N : (1)348307 [11:46:47]line ИНН: 02508201610067 [11:46:47]line Контрольно-Кассовый Чек [11:46:47]line ПРОДАЖА [11:46:47]line ТРК (МРК, ГНК) : 32 [11:46:47]line Товар: 2710124130 [11:46:47]line Аи-92-К-5 [11:46:47]line 6.180 * 64.80 [11:46:47]line = 400.46 [11:46:47]line НДС 12% НСП 1% [11:46:47]line > о реализуемом товаре [11:46:47]line ОКРУГЛЕНИЕ: -0.46 [11:46:47]line ИТОГО: 400.00 [11:46:47]line Внесено: 400.00 [11:46:47]line СДАЧА: 0.00 [11:46:47]line НСП 1% : 3.54 [11:46:47]line НДС 12% : 42.53 [11:46:47]line Наличными: 400.00 [11:46:47]line Безнал.: 0.00 [11:46:47]line Место: АЗС № 108 "Партнер Нефть" [11:46:47]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:46:47]line СНО: Общий режим [11:46:47]line Чек 82 16.04.2024 11:46 [11:46:47]line Смена: 118 ФФД: 1.0 [11:46:47]line ЗНМ: 0300000027 [11:46:47]line РНМ: 0000138879044617 [11:46:47]line Версия ККМ: 001 [11:46:47]line ФМ: 0000000000963154 [11:46:47]line ФД: 29808 [11:46:47]line ФПД: 79249177541158 [11:46:47]line 1/tax-web-control/client/api/v1/ticket?date=20240416T114647&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29808&fm=79249177541158&tin=02508201610067®Number=0000138879044617&sum=40000 [11:46:47]OFD Sender: Processing packet 29808 [packets to send 8, broken 7] [11:46:47]ProducePacketName [11:46:47]name=ofd_packets/00029808 [11:46:47]OFD Sender: To server: pG, [11:46:47]CommunicateWithHost lk.salyk.kg:30040 [11:46:47]ConnectInit lk.salyk.kg [11:46:47]written 0, free lines is 4095 [11:46:47]Connected sock=10 [11:46:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AC CF 07 01 CA EC 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 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 52 00 00 00 F4 03 04 00 27 65 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 74 00 00 35 04 06 00 48 13 A3 13 7A 26 34 0D 53 6B 09 61 24 65 [11:46:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 25 DF 47 00 22 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 74 00 00 F4 03 04 00 C5 0F 1E 66 B6 04 01 00 00 FB E3 AF 70 4F 3B 52 FE [11:46:47]CommunicateWithHost err = 0 [11:46:47]CheckOFDResponse [11:46:47]1017 (14) - 77093643461234 [11:46:47]1041 (16) - 0000000000963154 [11:46:47]1040 (4) - 29808 [11:46:47]1012 (4) - 16.04.2024 05:42 [11:46:47]1206 (1) - 0 [11:46:47]OFD Sender: Remove packet 29808 [11:46:47]ProducePacketName [11:46:47]name=ofd_packets/00029808 [11:46:47]NVStorageDeleteData [11:46:47]Write to MH i2c: 01 00 00 71 11 82 [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: 01 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: 01 07 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: 01 07 00 71 11 00 00 00 00 00 D5 0C 6A [11:46:47]RasterBufferAndPrint [11:46:47]line [11:46:47]line [11:46:47]line [11:46:47]line [11:46:47]line [11:46:47]written 0, free lines is 3291 [11:46:47]MH_Cut [11:46:47]Write to MH i2c: D1 01 00 78 11 01 5B [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: D1 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: D1 01 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: D1 01 00 78 11 00 5A [11:46:47]Write to MH i2c: 01 00 00 79 11 8A [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:48]OFD Sender: No OFD packet to send [11:46:48]*** Cut start [11:46:48]*** Partial cut [11:46:48]*** CUTSNS_PIN = 1 [11:46:48]*** CUTSNS_PIN = 0 [11:46:49]*** Brake cut motor [11:46:49]Read from MH i2c: 01 [11:46:49]MH_I2C_Read... [11:46:49]*** Stop cut motor [11:46:49]*** Cut end [11:46:49]Read from MH i2c: 01 07 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: 01 07 00 79 11 00 00 00 00 00 FF 0F 9F [11:46:49]process_action close_receipt done [11:46:49]requested_data is exist [11:46:49]produce_requested_data [11:46:49]requested_item fm.sn is exist - process it [11:46:49]wFMCommunicate request_size=4 [11:46:49]MH_SAM_APDU [11:46:49]CAPDU: 80 11 00 00 [11:46:49]Write to MH i2c: E2 08 00 7A 11 80 11 00 00 00 00 00 00 05 [11:46:49]Write i2c OK [11:46:49]MH_I2C_Read... [11:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:49]Read from MH i2c: E2 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 17 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 17 00 7A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 54 [11:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:46:49]wFMCommunicate OK [11:46:49]requested_item fd.num is exist - process it [11:46:49]SAM_PROTO_GetFieldsCounters [11:46:49]wFMCommunicate request_size=4 [11:46:49]MH_SAM_APDU [11:46:49]CAPDU: 80 13 00 00 [11:46:49]Write to MH i2c: E2 08 00 7B 11 80 13 00 00 00 00 00 00 08 [11:46:49]Write i2c OK [11:46:49]MH_I2C_Read... [11:46:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:49]Read from MH i2c: E2 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 62 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 62 00 7B 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 70 74 00 00 0E 04 04 00 76 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 96 [11:46:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 70 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:49]wFMCommunicate OK [11:46:49]SAM_PROTO_GetFieldsCounters done [11:46:49]requested_item shift.num is exist - process it [11:46:49]requested_item shift.opened is exist - process it [11:46:49]req_shift_opened [11:46:49]FM_GetShiftState [11:46:49]SAM_PROTO_GetShiftState [11:46:49]wFMCommunicate request_size=4 [11:46:49]MH_SAM_APDU [11:46:49]CAPDU: 80 13 01 00 [11:46:49]Write to MH i2c: E2 08 00 7C 11 80 13 01 00 00 00 00 00 0A [11:46:49]Write i2c OK [11:46:49]MH_I2C_Read... [11:46:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:49]Read from MH i2c: E2 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 0E 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 0E 00 7C 11 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 B8 [11:46:49]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:46:49]wFMCommunicate OK [11:46:49]SAM_PROTO_GetShiftState done [11:46:49]FM_GetShiftState done [11:46:49]req_shift_opened done [11:46:49]requested_item shift.open_date is exist - process it [11:46:49]req_shift_open_date [11:46:49]req_shift_open_date done [11:46:49]produce_requested_data done [11:46:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29808,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:46:49]process_action_free close_receipt [11:46:49]json_value_free [11:46:49]json_value_free done [11:46:49]process_json_proto returns [11:46:49]Send response to host [11:46:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29808,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:46:49]free response buf [11:46:49]execute_script done [11:46:49]execute_script returns [11:46:49]free content buf [11:46:49]Sock 9.Close socket [11:46:49]Sock 9.Thread stoped [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:43]accept exits with 7 [11:50:43]New connection [11:50:43]New thread 3067133284 created [11:50:43]Thread 3067276644 joined [11:50:43]Waiting for new connection... [11:50:43] Sock 7.Parse request [11:50:43]Sock 7.Check first char [11:50:43]Sock 7.First char is OK [11:50:43]request: POST /json_proto HTTP/1.0 [11:50:43]Method: POST [11:50:43]URL: /json_proto [11:50:43]Method is POST - this is cgi request [11:50:43]url: /json_proto [11:50:43]query_string will be loaded in cgi processing [11:50:43]execute_cgi json_proto POST (null) [11:50:43]execute_cgi path=json_proto method=POST [11:50:43]POST find Content-Length [11:50:43]Host: 172.17.33.3:8080 [11:50:43]Content-Length: 677 [11:50:43]Content-Type: application/json [11:50:43] [11:50:43]POST finish read [11:50:43]Found Content-Length = 677 [11:50:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "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" ] } } [11:50:43]execute_script... [11:50:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 6.180, "sum" : 400.46, "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" ] } } [11:50:43]POST & json_proto [11:50:43]process_json_proto [11:50:43]json parsed OK: [11:50:43]protocol is kg_v1.0 [11:50:43]action value=close_receipt [11:50:43]process_action close_receipt [11:50:43]cmd_close_receipt [11:50:43]MH_GetDate [11:50:43]Write to MH i2c: F0 00 00 7D 11 7D [11:50:43]Write i2c OK [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: F0 [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: F0 09 00 [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: F0 09 00 7D 11 00 15 66 1E 66 23 5B 8F 65 F7 [11:50:43]GetLastDocTimeStamp 1713268007 [11:50:43]current date 1713268245 [11:50:43]FM_GetShiftState [11:50:43]SAM_PROTO_GetShiftState [11:50:43]wFMCommunicate request_size=4 [11:50:43]MH_SAM_APDU [11:50:43]CAPDU: 80 13 01 00 [11:50:43]Write to MH i2c: E2 08 00 7E 11 80 13 01 00 00 00 00 00 0C [11:50:43]Write i2c OK [11:50:43]MH_I2C_Read... [11:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:43]Read from MH i2c: E2 [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: E2 0E 00 [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: E2 0E 00 7E 11 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 BA [11:50:43]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:50:43]wFMCommunicate OK [11:50:43]SAM_PROTO_GetShiftState done [11:50:43]FM_GetShiftState done [11:50:43]opened in 1713226843 [11:50:43]opened+sec_in_day 1713313243 [11:50:43]quantity*price = 40046 [11:50:43]sum+1 = 40047 [11:50:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 83 16.04.2024 11:50 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29809 ФПД: 200781533903999 1/tax-web-control/client/api/v1/ticket?date=20240416T115045&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29809&fm=200781533903999&tin=02508201610067®Number=0000138879044617&sum=40000 [11:50:44]StoreToDocumentArchive [11:50:44]shift 118 fd 29809 [11:50:44]save to /storage/0118/doc_00029809 [11:50:44]save last doc name /storage/0118/doc_00029809 to /storage/kkm_last_doc_name [11:50:44]save OK [11:50:44]Clear old archive folders... [11:50:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:44]tlvbuf is 00171D60 [11:50:44]SAM_PROTO_ClearQueue [11:50:44]wFMCommunicate request_size=4 [11:50:44]MH_SAM_APDU [11:50:44]CAPDU: 80 09 00 00 [11:50:44]Write to MH i2c: E2 08 00 8B 11 80 09 00 00 00 00 00 00 0E [11:50:44]Write i2c OK [11:50:44]MH_I2C_Read... [11:50:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:44]Read from MH i2c: E2 [11:50:44]MH_I2C_Read... [11:50:44]Read from MH i2c: E2 03 00 [11:50:44]MH_I2C_Read... [11:50:44]Read from MH i2c: E2 03 00 8B 11 00 90 00 10 [11:50:44]RAPDU: 90 00 [11:50:44]wFMCommunicate OK [11:50:44]SAM_PROTO_ClearQueue done [11:50:44]KKMCreateOFDPacket [11:50:44]OFDProtocolAddRootSTLVToBuf [11:50:44]FM_MakeSignedData [11:50:44]FM_MakeSignedData [11:50:44]SAM_PROTO_SignData [11:50:44]wFMCommunicate request_size=4 [11:50:44]MH_SAM_APDU [11:50:44]CAPDU: 80 0D 01 02 [11:50:44]Write to MH i2c: E2 08 00 8C 11 80 0D 01 02 00 00 00 00 16 [11:50:44]Write i2c OK [11:50:44]MH_I2C_Read... [11:50:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:44]Read from MH i2c: E2 [11:50:44]MH_I2C_Read... [11:50:44]Read from MH i2c: E2 03 00 [11:50:44]MH_I2C_Read... [11:50:44]Read from MH i2c: E2 03 00 8C 11 00 90 00 11 [11:50:44]RAPDU: 90 00 [11:50:44]wFMCommunicate OK [11:50:44]wFMCommunicate request_size=255 [11:50:44]MH_SAM_APDU [11:50:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 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 53 00 00 00 F4 03 04 00 15 66 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 74 00 00 35 04 06 00 B6 [11:50:44]Write to MH i2c: E2 02 01 8D 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 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 53 00 00 00 F4 03 04 00 15 66 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 74 00 00 35 04 06 00 B6 00 00 17 [11:50:44]Write i2c OK [11:50:44]MH_I2C_Read... [11:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:45]Read from MH i2c: E2 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 8D 11 00 90 00 12 [11:50:45]RAPDU: 90 00 [11:50:45]wFMCommunicate OK [11:50:45]wFMCommunicate request_size=10 [11:50:45]MH_SAM_APDU [11:50:45]CAPDU: 80 0D 02 02 05 9C 18 01 7C 7F [11:50:45]Write to MH i2c: E2 0D 00 8E 11 80 0D 02 02 05 00 9C 18 01 7C 7F 00 00 D3 [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:45]Read from MH i2c: E2 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 8E 11 00 90 00 13 [11:50:45]RAPDU: 90 00 [11:50:45]wFMCommunicate OK [11:50:45]wFMCommunicate request_size=4 [11:50:45]MH_SAM_APDU [11:50:45]CAPDU: 80 0D 03 02 [11:50:45]Write to MH i2c: E2 08 00 8F 11 80 0D 03 02 00 00 00 00 1B [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:45]Read from MH i2c: E2 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 0B 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 0B 00 8F 11 00 BD E9 82 7F 88 84 81 EC 90 00 3C [11:50:45]RAPDU: BD E9 82 7F 88 84 81 EC 90 00 [11:50:45]wFMCommunicate OK [11:50:45]SAM_PROTO_SignData done [11:50:45]FM_MakeSignedData done [11:50:45]CreateOFDProtocolMessage [11:50:45]wFMCommunicate request_size=4 [11:50:45]MH_SAM_APDU [11:50:45]CAPDU: 80 11 00 00 [11:50:45]Write to MH i2c: E2 08 00 90 11 80 11 00 00 00 00 00 00 1B [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:45]Read from MH i2c: E2 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 17 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 17 00 90 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6A [11:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:50:45]wFMCommunicate OK [11:50:45]CreateOFDProtocolMessage done [11:50:45]OFDSenderStorePacket 29809 [11:50:45]StoreOFDPacket docnum=29809 [11:50:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1D CC 07 01 27 98 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 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 53 00 00 00 F4 03 04 00 15 66 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 74 00 00 35 04 06 00 B6 9C 18 01 7C 7F BD E9 82 7F 88 84 81 EC [11:50:45]CheckFolder [11:50:45]dirname=/storage/ofd_packets [11:50:45]CheckFolder done [11:50:45]ProducePacketName [11:50:45]name=ofd_packets/00029809 [11:50:45]NVStorageSaveData ofd_packets/00029809 [11:50:45]File name is /storage/ofd_packets/00029809 [11:50:45]Write 301 bytes [11:50:45]NVStorageSaveData done [11:50:45]OFDSenderStorePacket done [11:50:45]KKMCreateOFDPacket done [11:50:45]NVStorageSaveData kkm_last_timestamp [11:50:45]File name is /storage/kkm_last_timestamp [11:50:45]Write 4 bytes [11:50:45]NVStorageSaveData done [11:50:45]ExternCall_PrintAddStr [11:50:45]wPrintStart [11:50:45]Write to MH i2c: 01 00 00 91 11 A2 [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: 01 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: 01 07 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: 01 07 00 91 11 00 00 00 00 00 FF 0F B7 [11:50:45]RasterBufferAndPrint [11:50:45]line Счет N : (1)348308 [11:50:45]line ИНН: 02508201610067 [11:50:45]line Контрольно-Кассовый Чек [11:50:45]line ПРОДАЖА [11:50:45]line ТРК (МРК, ГНК) : 32 [11:50:45]line Товар: 2710124130 [11:50:45]line Аи-92-К-5 [11:50:45]line 6.180 * 64.80 [11:50:45]line = 400.46 [11:50:45]line НДС 12% НСП 1% [11:50:45]line > о реализуемом товаре [11:50:45]line ОКРУГЛЕНИЕ: -0.46 [11:50:45]line ИТОГО: 400.00 [11:50:45]line Внесено: 400.00 [11:50:45]line СДАЧА: 0.00 [11:50:45]line НСП 1% : 3.54 [11:50:45]line НДС 12% : 42.53 [11:50:45]line Наличными: 400.00 [11:50:45]line Безнал.: 0.00 [11:50:45]line Место: АЗС № 108 "Партнер Нефть" [11:50:45]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:50:45]line СНО: Общий режим [11:50:45]line Чек 83 16.04.2024 11:50 [11:50:45]line Смена: 118 ФФД: 1.0 [11:50:45]line ЗНМ: 0300000027 [11:50:45]line РНМ: 0000138879044617 [11:50:45]line Версия ККМ: 001 [11:50:45]line ФМ: 0000000000963154 [11:50:45]line ФД: 29809 [11:50:45]line ФПД: 200781533903999 [11:50:45]line 1/tax-web-control/client/api/v1/ticket?date=20240416T115045&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29809&fm=200781533903999&tin=02508201610067®Number=0000138879044617&sum=40000 [11:50:45]OFD Sender: Processing packet 29809 [packets to send 8, broken 7] [11:50:45]ProducePacketName [11:50:45]name=ofd_packets/00029809 [11:50:45]OFD Sender: To server: pG, [11:50:45]CommunicateWithHost lk.salyk.kg:30040 [11:50:45]ConnectInit lk.salyk.kg [11:50:45]written 0, free lines is 4095 [11:50:45]Connected sock=10 [11:50:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1D CC 07 01 27 98 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 24 18 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 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 53 00 00 00 F4 03 04 00 15 66 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 74 00 00 35 04 06 00 B6 9C 18 01 7C 7F BD E9 82 7F 88 84 81 EC [11:50:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 65 53 47 00 4B 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 74 00 00 F4 03 04 00 B3 10 1E 66 B6 04 01 00 00 88 1E B6 9A 67 F2 55 8C [11:50:45]CommunicateWithHost err = 0 [11:50:45]CheckOFDResponse [11:50:45]1017 (14) - 77093643461234 [11:50:45]1041 (16) - 0000000000963154 [11:50:45]1040 (4) - 29809 [11:50:45]1012 (4) - 16.04.2024 05:46 [11:50:45]1206 (1) - 0 [11:50:45]OFD Sender: Remove packet 29809 [11:50:45]ProducePacketName [11:50:45]name=ofd_packets/00029809 [11:50:45]NVStorageDeleteData [11:50:45]Write to MH i2c: 01 00 00 BB 11 CC [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: 01 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: 01 07 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: 01 07 00 BB 11 00 00 00 00 00 D2 0C B1 [11:50:45]RasterBufferAndPrint [11:50:45]line [11:50:45]line [11:50:45]line [11:50:45]line [11:50:45]line [11:50:45]written 0, free lines is 3288 [11:50:46]MH_Cut [11:50:46]Write to MH i2c: D1 01 00 C2 11 01 A5 [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: D1 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: D1 01 00 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: D1 01 00 C2 11 00 A4 [11:50:46]Write to MH i2c: 01 00 00 C3 11 D4 [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]OFD Sender: No OFD packet to send [11:50:46]*** Cut start [11:50:46]*** Partial cut [11:50:46]*** CUTSNS_PIN = 1 [11:50:46]*** CUTSNS_PIN = 0 [11:50:47]*** Brake cut motor [11:50:47]Read from MH i2c: 01 [11:50:47]MH_I2C_Read... [11:50:47]*** Stop cut motor [11:50:47]*** Cut end [11:50:47]Read from MH i2c: 01 07 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: 01 07 00 C3 11 00 00 00 00 00 FF 0F E9 [11:50:47]process_action close_receipt done [11:50:47]requested_data is exist [11:50:47]produce_requested_data [11:50:47]requested_item fm.sn is exist - process it [11:50:47]wFMCommunicate request_size=4 [11:50:47]MH_SAM_APDU [11:50:47]CAPDU: 80 11 00 00 [11:50:47]Write to MH i2c: E2 08 00 C4 11 80 11 00 00 00 00 00 00 4F [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:47]Read from MH i2c: E2 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 17 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 17 00 C4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9E [11:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:50:47]wFMCommunicate OK [11:50:47]requested_item fd.num is exist - process it [11:50:47]SAM_PROTO_GetFieldsCounters [11:50:47]wFMCommunicate request_size=4 [11:50:47]MH_SAM_APDU [11:50:47]CAPDU: 80 13 00 00 [11:50:47]Write to MH i2c: E2 08 00 C5 11 80 13 00 00 00 00 00 00 52 [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:47]Read from MH i2c: E2 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 62 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 62 00 C5 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 71 74 00 00 0E 04 04 00 76 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 E4 [11:50:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 71 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:47]wFMCommunicate OK [11:50:47]SAM_PROTO_GetFieldsCounters done [11:50:47]requested_item shift.num is exist - process it [11:50:47]requested_item shift.opened is exist - process it [11:50:47]req_shift_opened [11:50:47]FM_GetShiftState [11:50:47]SAM_PROTO_GetShiftState [11:50:47]wFMCommunicate request_size=4 [11:50:47]MH_SAM_APDU [11:50:47]CAPDU: 80 13 01 00 [11:50:47]Write to MH i2c: E2 08 00 C6 11 80 13 01 00 00 00 00 00 54 [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:47]Read from MH i2c: E2 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 0E 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 0E 00 C6 11 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 02 [11:50:47]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:50:47]wFMCommunicate OK [11:50:47]SAM_PROTO_GetShiftState done [11:50:47]FM_GetShiftState done [11:50:47]req_shift_opened done [11:50:47]requested_item shift.open_date is exist - process it [11:50:47]req_shift_open_date [11:50:47]req_shift_open_date done [11:50:47]produce_requested_data done [11:50:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29809,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:50:47]process_action_free close_receipt [11:50:47]json_value_free [11:50:47]json_value_free done [11:50:47]process_json_proto returns [11:50:47]Send response to host [11:50:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29809,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:50:47]free response buf [11:50:47]execute_script done [11:50:47]execute_script returns [11:50:47]free content buf [11:50:47]Sock 7.Close socket [11:50:47]Sock 7.Thread stoped [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:32]accept exits with 9 [11:52:32]New connection [11:52:32]New thread 3067276644 created [11:52:32]Thread 3067133284 joined [11:52:32]Waiting for new connection... [11:52:32] Sock 9.Parse request [11:52:32]Sock 9.Check first char [11:52:32]Sock 9.First char is OK [11:52:32]request: POST /json_proto HTTP/1.0 [11:52:32]Method: POST [11:52:32]URL: /json_proto [11:52:32]Method is POST - this is cgi request [11:52:32]url: /json_proto [11:52:32]query_string will be loaded in cgi processing [11:52:32]execute_cgi json_proto POST (null) [11:52:32]execute_cgi path=json_proto method=POST [11:52:32]POST find Content-Length [11:52:32]Host: 172.17.33.3:8080 [11:52:32]Content-Length: 674 [11:52:32]Content-Type: application/json [11:52:32] [11:52:32]POST finish read [11:52:32]Found Content-Length = 674 [11:52:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:32]execute_script... [11:52:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:32]POST & json_proto [11:52:32]process_json_proto [11:52:32]json parsed OK: [11:52:32]protocol is kg_v1.0 [11:52:32]action value=close_receipt [11:52:32]process_action close_receipt [11:52:32]cmd_close_receipt [11:52:32]MH_GetDate [11:52:32]Write to MH i2c: F0 00 00 C7 11 C7 [11:52:32]Write i2c OK [11:52:32]MH_I2C_Read... [11:52:32]Read from MH i2c: F0 [11:52:32]MH_I2C_Read... [11:52:32]Read from MH i2c: F0 09 00 [11:52:32]MH_I2C_Read... [11:52:32]Read from MH i2c: F0 09 00 C7 11 00 82 66 1E 66 23 5B 8F 65 AE [11:52:32]GetLastDocTimeStamp 1713268245 [11:52:32]current date 1713268354 [11:52:32]FM_GetShiftState [11:52:32]SAM_PROTO_GetShiftState [11:52:32]wFMCommunicate request_size=4 [11:52:32]MH_SAM_APDU [11:52:32]CAPDU: 80 13 01 00 [11:52:32]Write to MH i2c: E2 08 00 C8 11 80 13 01 00 00 00 00 00 56 [11:52:32]Write i2c OK [11:52:32]MH_I2C_Read... [11:52:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:32]Read from MH i2c: E2 [11:52:32]MH_I2C_Read... [11:52:32]Read from MH i2c: E2 0E 00 [11:52:32]MH_I2C_Read... [11:52:32]Read from MH i2c: E2 0E 00 C8 11 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 04 [11:52:32]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:52:32]wFMCommunicate OK [11:52:32]SAM_PROTO_GetShiftState done [11:52:32]FM_GetShiftState done [11:52:32]opened in 1713226843 [11:52:32]opened+sec_in_day 1713313243 [11:52:32]quantity*price = 60069 [11:52:32]sum+1 = 60071 [11:52:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 84 16.04.2024 11:52 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29810 ФПД: 137861002672647 1/tax-web-control/client/api/v1/ticket?date=20240416T115234&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29810&fm=137861002672647&tin=02508201610067®Number=0000138879044617&sum=60000 [11:52:33]StoreToDocumentArchive [11:52:33]shift 118 fd 29810 [11:52:33]save to /storage/0118/doc_00029810 [11:52:33]save last doc name /storage/0118/doc_00029810 to /storage/kkm_last_doc_name [11:52:33]save OK [11:52:33]Clear old archive folders... [11:52:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:52:33]tlvbuf is 0018E0F0 [11:52:33]SAM_PROTO_ClearQueue [11:52:33]wFMCommunicate request_size=4 [11:52:33]MH_SAM_APDU [11:52:33]CAPDU: 80 09 00 00 [11:52:33]Write to MH i2c: E2 08 00 D5 11 80 09 00 00 00 00 00 00 58 [11:52:33]Write i2c OK [11:52:33]MH_I2C_Read... [11:52:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:33]Read from MH i2c: E2 [11:52:33]MH_I2C_Read... [11:52:33]Read from MH i2c: E2 03 00 [11:52:33]MH_I2C_Read... [11:52:33]Read from MH i2c: E2 03 00 D5 11 00 90 00 5A [11:52:33]RAPDU: 90 00 [11:52:33]wFMCommunicate OK [11:52:33]SAM_PROTO_ClearQueue done [11:52:33]KKMCreateOFDPacket [11:52:33]OFDProtocolAddRootSTLVToBuf [11:52:33]FM_MakeSignedData [11:52:33]FM_MakeSignedData [11:52:33]SAM_PROTO_SignData [11:52:33]wFMCommunicate request_size=4 [11:52:33]MH_SAM_APDU [11:52:33]CAPDU: 80 0D 01 02 [11:52:33]Write to MH i2c: E2 08 00 D6 11 80 0D 01 02 00 00 00 00 60 [11:52:33]Write i2c OK [11:52:33]MH_I2C_Read... [11:52:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:33]Read from MH i2c: E2 [11:52:33]MH_I2C_Read... [11:52:33]Read from MH i2c: E2 03 00 [11:52:33]MH_I2C_Read... [11:52:33]Read from MH i2c: E2 03 00 D6 11 00 90 00 5B [11:52:33]RAPDU: 90 00 [11:52:33]wFMCommunicate OK [11:52:33]wFMCommunicate request_size=255 [11:52:33]MH_SAM_APDU [11:52:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 82 66 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 74 00 00 35 04 06 00 7D 62 44 17 [11:52:33]Write to MH i2c: E2 02 01 D7 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 82 66 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 74 00 00 35 04 06 00 7D 62 44 17 00 00 53 [11:52:33]Write i2c OK [11:52:33]MH_I2C_Read... [11:52:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:34]Read from MH i2c: E2 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: E2 03 00 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: E2 03 00 D7 11 00 90 00 5C [11:52:34]RAPDU: 90 00 [11:52:34]wFMCommunicate OK [11:52:34]wFMCommunicate request_size=7 [11:52:34]MH_SAM_APDU [11:52:34]CAPDU: 80 0D 02 02 02 BA 07 [11:52:34]Write to MH i2c: E2 0A 00 D8 11 80 0D 02 02 02 00 BA 07 00 00 28 [11:52:34]Write i2c OK [11:52:34]MH_I2C_Read... [11:52:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:34]Read from MH i2c: E2 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: E2 03 00 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: E2 03 00 D8 11 00 90 00 5D [11:52:34]RAPDU: 90 00 [11:52:34]wFMCommunicate OK [11:52:34]wFMCommunicate request_size=4 [11:52:34]MH_SAM_APDU [11:52:34]CAPDU: 80 0D 03 02 [11:52:34]Write to MH i2c: E2 08 00 D9 11 80 0D 03 02 00 00 00 00 65 [11:52:34]Write i2c OK [11:52:34]MH_I2C_Read... [11:52:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:34]Read from MH i2c: E2 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: E2 0B 00 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: E2 0B 00 D9 11 00 7D CF 66 48 53 43 EC A0 90 00 82 [11:52:34]RAPDU: 7D CF 66 48 53 43 EC A0 90 00 [11:52:34]wFMCommunicate OK [11:52:34]SAM_PROTO_SignData done [11:52:34]FM_MakeSignedData done [11:52:34]CreateOFDProtocolMessage [11:52:34]wFMCommunicate request_size=4 [11:52:34]MH_SAM_APDU [11:52:34]CAPDU: 80 11 00 00 [11:52:34]Write to MH i2c: E2 08 00 DA 11 80 11 00 00 00 00 00 00 65 [11:52:34]Write i2c OK [11:52:34]MH_I2C_Read... [11:52:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:34]Read from MH i2c: E2 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: E2 17 00 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: E2 17 00 DA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B4 [11:52:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:52:34]wFMCommunicate OK [11:52:34]CreateOFDProtocolMessage done [11:52:34]OFDSenderStorePacket 29810 [11:52:34]StoreOFDPacket docnum=29810 [11:52:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 50 D1 04 01 38 16 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 82 66 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 74 00 00 35 04 06 00 7D 62 44 17 BA 07 7D CF 66 48 53 43 EC A0 [11:52:34]CheckFolder [11:52:34]dirname=/storage/ofd_packets [11:52:34]CheckFolder done [11:52:34]ProducePacketName [11:52:34]name=ofd_packets/00029810 [11:52:34]NVStorageSaveData ofd_packets/00029810 [11:52:34]File name is /storage/ofd_packets/00029810 [11:52:34]Write 298 bytes [11:52:34]NVStorageSaveData done [11:52:34]OFDSenderStorePacket done [11:52:34]KKMCreateOFDPacket done [11:52:34]NVStorageSaveData kkm_last_timestamp [11:52:34]File name is /storage/kkm_last_timestamp [11:52:34]Write 4 bytes [11:52:34]NVStorageSaveData done [11:52:34]ExternCall_PrintAddStr [11:52:34]wPrintStart [11:52:34]Write to MH i2c: 01 00 00 DB 11 EC [11:52:34]Write i2c OK [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: 01 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: 01 07 00 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: 01 07 00 DB 11 00 00 00 00 00 FF 0F 01 [11:52:34]RasterBufferAndPrint [11:52:34]line Счет N : (1)348310 [11:52:34]line ИНН: 02508201610067 [11:52:34]line Контрольно-Кассовый Чек [11:52:34]line ПРОДАЖА [11:52:34]line ТРК (МРК, ГНК) : 11 [11:52:34]line Товар: 2710194210 [11:52:34]line ДТ-К-5 [11:52:34]line 8.240 * 72.90 [11:52:34]line = 600.70 [11:52:34]line НДС 12% НСП 1% [11:52:34]line > о реализуемом товаре [11:52:34]line ОКРУГЛЕНИЕ: -0.70 [11:52:34]line ИТОГО: 600.00 [11:52:34]line Внесено: 600.00 [11:52:34]line СДАЧА: 0.00 [11:52:34]line НСП 1% : 5.32 [11:52:34]line НДС 12% : 63.79 [11:52:34]line Наличными: 600.00 [11:52:34]line Безнал.: 0.00 [11:52:34]line Место: АЗС № 108 "Партнер Нефть" [11:52:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:52:34]line СНО: Общий режим [11:52:34]line Чек 84 16.04.2024 11:52 [11:52:34]line Смена: 118 ФФД: 1.0 [11:52:34]line ЗНМ: 0300000027 [11:52:34]line РНМ: 0000138879044617 [11:52:34]line Версия ККМ: 001 [11:52:34]line ФМ: 0000000000963154 [11:52:34]line ФД: 29810 [11:52:34]line ФПД: 137861002672647 [11:52:34]line 1/tax-web-control/client/api/v1/ticket?date=20240416T115234&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29810&fm=137861002672647&tin=02508201610067®Number=0000138879044617&sum=60000 [11:52:34]OFD Sender: Processing packet 29810 [packets to send 8, broken 7] [11:52:34]ProducePacketName [11:52:34]name=ofd_packets/00029810 [11:52:34]OFD Sender: To server: pG, [11:52:34]CommunicateWithHost lk.salyk.kg:30040 [11:52:34]written 0, free lines is 4095 [11:52:34]ConnectInit lk.salyk.kg [11:52:34]Connected sock=10 [11:52:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 50 D1 04 01 38 16 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 82 66 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 74 00 00 35 04 06 00 7D 62 44 17 BA 07 7D CF 66 48 53 43 EC A0 [11:52:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 26 CB 47 00 88 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 74 00 00 F4 03 04 00 20 11 1E 66 B6 04 01 00 00 D9 12 B9 0B F4 6B E6 89 [11:52:34]CommunicateWithHost err = 0 [11:52:34]CheckOFDResponse [11:52:34]1017 (14) - 77093643461234 [11:52:34]1041 (16) - 0000000000963154 [11:52:34]1040 (4) - 29810 [11:52:34]1012 (4) - 16.04.2024 05:48 [11:52:34]1206 (1) - 0 [11:52:34]OFD Sender: Remove packet 29810 [11:52:34]ProducePacketName [11:52:34]name=ofd_packets/00029810 [11:52:34]NVStorageDeleteData [11:52:34]Write to MH i2c: 01 00 00 05 12 17 [11:52:35]Write i2c OK [11:52:35]MH_I2C_Read... [11:52:35]Read from MH i2c: 01 [11:52:35]MH_I2C_Read... [11:52:35]Read from MH i2c: 01 07 00 [11:52:35]MH_I2C_Read... [11:52:35]Read from MH i2c: 01 07 00 05 12 00 00 00 00 00 D6 0C 00 [11:52:35]RasterBufferAndPrint [11:52:35]line [11:52:35]line [11:52:35]line [11:52:35]line [11:52:35]line [11:52:35]written 0, free lines is 3293 [11:52:35]MH_Cut [11:52:35]Write to MH i2c: D1 01 00 0C 12 01 F0 [11:52:35]Write i2c OK [11:52:35]MH_I2C_Read... [11:52:35]Read from MH i2c: D1 [11:52:35]MH_I2C_Read... [11:52:35]Read from MH i2c: D1 01 00 [11:52:35]MH_I2C_Read... [11:52:35]Read from MH i2c: D1 01 00 0C 12 00 EF [11:52:35]Write to MH i2c: 01 00 00 0D 12 1F [11:52:35]Write i2c OK [11:52:35]MH_I2C_Read... [11:52:35]OFD Sender: No OFD packet to send [11:52:35]*** Cut start [11:52:35]*** Partial cut [11:52:35]*** CUTSNS_PIN = 1 [11:52:35]*** CUTSNS_PIN = 0 [11:52:36]*** Brake cut motor [11:52:36]Read from MH i2c: 01 [11:52:36]MH_I2C_Read... [11:52:36]*** Stop cut motor [11:52:36]*** Cut end [11:52:36]Read from MH i2c: 01 07 00 [11:52:36]MH_I2C_Read... [11:52:36]Read from MH i2c: 01 07 00 0D 12 00 00 00 00 00 FF 0F 34 [11:52:36]process_action close_receipt done [11:52:36]requested_data is exist [11:52:36]produce_requested_data [11:52:36]requested_item fm.sn is exist - process it [11:52:36]wFMCommunicate request_size=4 [11:52:36]MH_SAM_APDU [11:52:36]CAPDU: 80 11 00 00 [11:52:36]Write to MH i2c: E2 08 00 0E 12 80 11 00 00 00 00 00 00 9A [11:52:36]Write i2c OK [11:52:36]MH_I2C_Read... [11:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:36]Read from MH i2c: E2 [11:52:36]MH_I2C_Read... [11:52:36]Read from MH i2c: E2 17 00 [11:52:36]MH_I2C_Read... [11:52:36]Read from MH i2c: E2 17 00 0E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E9 [11:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:52:36]wFMCommunicate OK [11:52:36]requested_item fd.num is exist - process it [11:52:36]SAM_PROTO_GetFieldsCounters [11:52:36]wFMCommunicate request_size=4 [11:52:36]MH_SAM_APDU [11:52:36]CAPDU: 80 13 00 00 [11:52:36]Write to MH i2c: E2 08 00 0F 12 80 13 00 00 00 00 00 00 9D [11:52:36]Write i2c OK [11:52:36]MH_I2C_Read... [11:52:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:36]Read from MH i2c: E2 [11:52:36]MH_I2C_Read... [11:52:36]Read from MH i2c: E2 62 00 [11:52:36]MH_I2C_Read... [11:52:36]Read from MH i2c: E2 62 00 0F 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 72 74 00 00 0E 04 04 00 76 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 33 [11:52:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 72 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:36]wFMCommunicate OK [11:52:36]SAM_PROTO_GetFieldsCounters done [11:52:36]requested_item shift.num is exist - process it [11:52:36]requested_item shift.opened is exist - process it [11:52:36]req_shift_opened [11:52:36]FM_GetShiftState [11:52:36]SAM_PROTO_GetShiftState [11:52:36]wFMCommunicate request_size=4 [11:52:36]MH_SAM_APDU [11:52:36]CAPDU: 80 13 01 00 [11:52:36]Write to MH i2c: E2 08 00 10 12 80 13 01 00 00 00 00 00 9F [11:52:36]Write i2c OK [11:52:36]MH_I2C_Read... [11:52:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:36]Read from MH i2c: E2 [11:52:36]MH_I2C_Read... [11:52:36]Read from MH i2c: E2 0E 00 [11:52:36]MH_I2C_Read... [11:52:36]Read from MH i2c: E2 0E 00 10 12 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 4D [11:52:36]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:52:36]wFMCommunicate OK [11:52:36]SAM_PROTO_GetShiftState done [11:52:36]FM_GetShiftState done [11:52:36]req_shift_opened done [11:52:36]requested_item shift.open_date is exist - process it [11:52:36]req_shift_open_date [11:52:36]req_shift_open_date done [11:52:36]produce_requested_data done [11:52:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29810,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:52:36]process_action_free close_receipt [11:52:36]json_value_free [11:52:36]json_value_free done [11:52:36]process_json_proto returns [11:52:36]Send response to host [11:52:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29810,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:52:36]free response buf [11:52:36]execute_script done [11:52:36]execute_script returns [11:52:36]free content buf [11:52:36]Sock 9.Close socket [11:52:36]Sock 9.Thread stoped [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:41]accept exits with 7 [11:53:41]New connection [11:53:41]New thread 3067133284 created [11:53:41]Thread 3067276644 joined [11:53:41]Waiting for new connection... [11:53:41] Sock 7.Parse request [11:53:41]Sock 7.Check first char [11:53:41]Sock 7.First char is OK [11:53:41]request: POST /json_proto HTTP/1.0 [11:53:41]Method: POST [11:53:41]URL: /json_proto [11:53:41]Method is POST - this is cgi request [11:53:41]url: /json_proto [11:53:41]query_string will be loaded in cgi processing [11:53:41]execute_cgi json_proto POST (null) [11:53:41]execute_cgi path=json_proto method=POST [11:53:41]POST find Content-Length [11:53:41]Host: 172.17.33.3:8080 [11:53:41]Content-Length: 682 [11:53:41]Content-Type: application/json [11:53:41] [11:53:41]POST finish read [11:53:41]Found Content-Length = 682 [11:53:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 19.850, "sum" : 1286.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1286.00, "total" : 1286.00, "payments": [ { "type": 0, "sum" : 1286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:41]execute_script... [11:53:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 19.850, "sum" : 1286.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1286.00, "total" : 1286.00, "payments": [ { "type": 0, "sum" : 1286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:41]POST & json_proto [11:53:41]process_json_proto [11:53:41]json parsed OK: [11:53:41]protocol is kg_v1.0 [11:53:41]action value=close_receipt [11:53:41]process_action close_receipt [11:53:41]cmd_close_receipt [11:53:41]MH_GetDate [11:53:41]Write to MH i2c: F0 00 00 11 12 12 [11:53:41]Write i2c OK [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: F0 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: F0 09 00 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: F0 09 00 11 12 00 C7 66 1E 66 23 5B 8F 65 3E [11:53:41]GetLastDocTimeStamp 1713268354 [11:53:41]current date 1713268423 [11:53:41]FM_GetShiftState [11:53:41]SAM_PROTO_GetShiftState [11:53:41]wFMCommunicate request_size=4 [11:53:41]MH_SAM_APDU [11:53:41]CAPDU: 80 13 01 00 [11:53:41]Write to MH i2c: E2 08 00 12 12 80 13 01 00 00 00 00 00 A1 [11:53:41]Write i2c OK [11:53:41]MH_I2C_Read... [11:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:41]Read from MH i2c: E2 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: E2 0E 00 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: E2 0E 00 12 12 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 4F [11:53:41]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:53:41]wFMCommunicate OK [11:53:41]SAM_PROTO_GetShiftState done [11:53:41]FM_GetShiftState done [11:53:41]opened in 1713226843 [11:53:41]opened+sec_in_day 1713313243 [11:53:41]quantity*price = 128628 [11:53:41]sum+1 = 128629 [11:53:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1286.00 Внесено: 1286.00 СДАЧА: 0.00 НСП 1% : 11.38 НДС 12% : 136.60 Наличными: 1286.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 85 16.04.2024 11:53 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29811 ФПД: 116176926804842 1/tax-web-control/client/api/v1/ticket?date=20240416T115343&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29811&fm=116176926804842&tin=02508201610067®Number=0000138879044617&sum=128600 [11:53:42]StoreToDocumentArchive [11:53:42]shift 118 fd 29811 [11:53:42]save to /storage/0118/doc_00029811 [11:53:42]save last doc name /storage/0118/doc_00029811 to /storage/kkm_last_doc_name [11:53:42]save OK [11:53:42]Clear old archive folders... [11:53:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:53:42]tlvbuf is 00213090 [11:53:42]SAM_PROTO_ClearQueue [11:53:42]wFMCommunicate request_size=4 [11:53:42]MH_SAM_APDU [11:53:42]CAPDU: 80 09 00 00 [11:53:42]Write to MH i2c: E2 08 00 1F 12 80 09 00 00 00 00 00 00 A3 [11:53:42]Write i2c OK [11:53:42]MH_I2C_Read... [11:53:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:43]Read from MH i2c: E2 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: E2 03 00 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: E2 03 00 1F 12 00 90 00 A5 [11:53:43]RAPDU: 90 00 [11:53:43]wFMCommunicate OK [11:53:43]SAM_PROTO_ClearQueue done [11:53:43]KKMCreateOFDPacket [11:53:43]OFDProtocolAddRootSTLVToBuf [11:53:43]FM_MakeSignedData [11:53:43]FM_MakeSignedData [11:53:43]SAM_PROTO_SignData [11:53:43]wFMCommunicate request_size=4 [11:53:43]MH_SAM_APDU [11:53:43]CAPDU: 80 0D 01 02 [11:53:43]Write to MH i2c: E2 08 00 20 12 80 0D 01 02 00 00 00 00 AB [11:53:43]Write i2c OK [11:53:43]MH_I2C_Read... [11:53:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:43]Read from MH i2c: E2 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: E2 03 00 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: E2 03 00 20 12 00 90 00 A6 [11:53:43]RAPDU: 90 00 [11:53:43]wFMCommunicate OK [11:53:43]wFMCommunicate request_size=255 [11:53:43]MH_SAM_APDU [11:53:43]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 8A 4D 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 74 F6 01 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 5C 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 55 00 00 00 F4 03 04 00 C7 66 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 74 00 00 35 04 06 00 69 [11:53:43]Write to MH i2c: E2 02 01 21 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 4D 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 74 F6 01 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 5C 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 55 00 00 00 F4 03 04 00 C7 66 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 74 00 00 35 04 06 00 69 00 00 EE [11:53:43]Write i2c OK [11:53:43]MH_I2C_Read... [11:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:43]Read from MH i2c: E2 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: E2 03 00 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: E2 03 00 21 12 00 90 00 A7 [11:53:43]RAPDU: 90 00 [11:53:43]wFMCommunicate OK [11:53:43]wFMCommunicate request_size=10 [11:53:43]MH_SAM_APDU [11:53:43]CAPDU: 80 0D 02 02 05 A9 8C 74 0B 6A [11:53:43]Write to MH i2c: E2 0D 00 22 12 80 0D 02 02 05 00 A9 8C 74 0B 6A 00 00 D6 [11:53:43]Write i2c OK [11:53:43]MH_I2C_Read... [11:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:43]Read from MH i2c: E2 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: E2 03 00 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: E2 03 00 22 12 00 90 00 A8 [11:53:43]RAPDU: 90 00 [11:53:43]wFMCommunicate OK [11:53:43]wFMCommunicate request_size=4 [11:53:43]MH_SAM_APDU [11:53:43]CAPDU: 80 0D 03 02 [11:53:43]Write to MH i2c: E2 08 00 23 12 80 0D 03 02 00 00 00 00 B0 [11:53:43]Write i2c OK [11:53:43]MH_I2C_Read... [11:53:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:43]Read from MH i2c: E2 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: E2 0B 00 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: E2 0B 00 23 12 00 C8 E1 9D 6B 5E B3 DE 0C 90 00 5D [11:53:43]RAPDU: C8 E1 9D 6B 5E B3 DE 0C 90 00 [11:53:43]wFMCommunicate OK [11:53:43]SAM_PROTO_SignData done [11:53:43]FM_MakeSignedData done [11:53:43]CreateOFDProtocolMessage [11:53:43]wFMCommunicate request_size=4 [11:53:43]MH_SAM_APDU [11:53:43]CAPDU: 80 11 00 00 [11:53:43]Write to MH i2c: E2 08 00 24 12 80 11 00 00 00 00 00 00 B0 [11:53:43]Write i2c OK [11:53:43]MH_I2C_Read... [11:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:43]Read from MH i2c: E2 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: E2 17 00 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: E2 17 00 24 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FF [11:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:53:43]wFMCommunicate OK [11:53:43]CreateOFDProtocolMessage done [11:53:43]OFDSenderStorePacket 29811 [11:53:43]StoreOFDPacket docnum=29811 [11:53:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F9 35 07 01 09 8E 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 8A 4D 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 74 F6 01 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 5C 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 55 00 00 00 F4 03 04 00 C7 66 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 74 00 00 35 04 06 00 69 A9 8C 74 0B 6A C8 E1 9D 6B 5E B3 DE 0C [11:53:43]CheckFolder [11:53:43]dirname=/storage/ofd_packets [11:53:43]CheckFolder done [11:53:43]ProducePacketName [11:53:43]name=ofd_packets/00029811 [11:53:43]NVStorageSaveData ofd_packets/00029811 [11:53:43]File name is /storage/ofd_packets/00029811 [11:53:43]Write 301 bytes [11:53:43]NVStorageSaveData done [11:53:43]OFDSenderStorePacket done [11:53:43]KKMCreateOFDPacket done [11:53:43]NVStorageSaveData kkm_last_timestamp [11:53:43]File name is /storage/kkm_last_timestamp [11:53:43]Write 4 bytes [11:53:43]NVStorageSaveData done [11:53:43]ExternCall_PrintAddStr [11:53:43]wPrintStart [11:53:43]Write to MH i2c: 01 00 00 25 12 37 [11:53:43]Write i2c OK [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: 01 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: 01 07 00 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: 01 07 00 25 12 00 00 00 00 00 FF 0F 4C [11:53:43]RasterBufferAndPrint [11:53:43]line Счет N : (1)348311 [11:53:43]line ИНН: 02508201610067 [11:53:43]line Контрольно-Кассовый Чек [11:53:43]line ПРОДАЖА [11:53:43]line ТРК (МРК, ГНК) : 42 [11:53:43]line Товар: 2710124130 [11:53:43]line Аи-92-К-5 [11:53:43]line 19.850 * 64.80 [11:53:43]line = 1286.28 [11:53:43]line НДС 12% НСП 1% [11:53:43]line > о реализуемом товаре [11:53:43]line ОКРУГЛЕНИЕ: -0.28 [11:53:43]line ИТОГО: 1286.00 [11:53:43]line Внесено: 1286.00 [11:53:43]line СДАЧА: 0.00 [11:53:43]line НСП 1% : 11.38 [11:53:43]line НДС 12% : 136.60 [11:53:43]line Наличными: 1286.00 [11:53:43]line Безнал.: 0.00 [11:53:43]line Место: АЗС № 108 "Партнер Нефть" [11:53:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:53:43]line СНО: Общий режим [11:53:43]line Чек 85 16.04.2024 11:53 [11:53:43]line Смена: 118 ФФД: 1.0 [11:53:43]line ЗНМ: 0300000027 [11:53:43]line РНМ: 0000138879044617 [11:53:43]line Версия ККМ: 001 [11:53:43]line ФМ: 0000000000963154 [11:53:43]line ФД: 29811 [11:53:43]line ФПД: 116176926804842 [11:53:43]line 1/tax-web-control/client/api/v1/ticket?date=20240416T115343&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29811&fm=116176926804842&tin=02508201610067®Number=0000138879044617&sum=128600 [11:53:43]OFD Sender: Processing packet 29811 [packets to send 8, broken 7] [11:53:43]ProducePacketName [11:53:43]name=ofd_packets/00029811 [11:53:43]OFD Sender: To server: pG, [11:53:43]CommunicateWithHost lk.salyk.kg:30040 [11:53:43]ConnectInit lk.salyk.kg [11:53:43]written 0, free lines is 4095 [11:53:44]Connected sock=11 [11:53:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F9 35 07 01 09 8E 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 8A 4D 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 74 F6 01 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 5C 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 55 00 00 00 F4 03 04 00 C7 66 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 74 00 00 35 04 06 00 69 A9 8C 74 0B 6A C8 E1 9D 6B 5E B3 DE 0C [11:53:44]Write to MH i2c: 01 00 00 4F 12 61 [11:53:44]Write i2c OK [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: 01 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: 01 07 00 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: 01 07 00 4F 12 00 00 00 00 00 D0 0C 44 [11:53:44]RasterBufferAndPrint [11:53:44]line [11:53:44]line [11:53:44]line [11:53:44]line [11:53:44]line [11:53:44]written 0, free lines is 3284 [11:53:44]MH_Cut [11:53:44]Write to MH i2c: D1 01 00 56 12 01 3A [11:53:44]Write i2c OK [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: D1 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: D1 01 00 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: D1 01 00 56 12 00 39 [11:53:44]Write to MH i2c: 01 00 00 57 12 69 [11:53:44]Write i2c OK [11:53:44]MH_I2C_Read... [11:53:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 12 E1 47 00 C1 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 74 00 00 F4 03 04 00 65 11 1E 66 B6 04 01 00 00 13 5C 95 9E 28 44 52 02 [11:53:44]CommunicateWithHost err = 0 [11:53:44]CheckOFDResponse [11:53:44]1017 (14) - 77093643461234 [11:53:44]1041 (16) - 0000000000963154 [11:53:44]1040 (4) - 29811 [11:53:44]1012 (4) - 16.04.2024 05:49 [11:53:44]1206 (1) - 0 [11:53:44]OFD Sender: Remove packet 29811 [11:53:44]ProducePacketName [11:53:44]name=ofd_packets/00029811 [11:53:44]NVStorageDeleteData [11:53:44]OFD Sender: No OFD packet to send [11:53:45]*** Cut start [11:53:45]*** Partial cut [11:53:45]*** CUTSNS_PIN = 1 [11:53:45]*** CUTSNS_PIN = 0 [11:53:45]*** Brake cut motor [11:53:45]Read from MH i2c: 01 [11:53:45]MH_I2C_Read... [11:53:45]*** Stop cut motor [11:53:45]*** Cut end [11:53:45]Read from MH i2c: 01 07 00 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: 01 07 00 57 12 00 00 00 00 00 FF 0F 7E [11:53:45]process_action close_receipt done [11:53:45]requested_data is exist [11:53:45]produce_requested_data [11:53:45]requested_item fm.sn is exist - process it [11:53:45]wFMCommunicate request_size=4 [11:53:45]MH_SAM_APDU [11:53:45]CAPDU: 80 11 00 00 [11:53:45]Write to MH i2c: E2 08 00 58 12 80 11 00 00 00 00 00 00 E4 [11:53:45]Write i2c OK [11:53:45]MH_I2C_Read... [11:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:45]Read from MH i2c: E2 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 17 00 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 17 00 58 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 33 [11:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:53:45]wFMCommunicate OK [11:53:45]requested_item fd.num is exist - process it [11:53:45]SAM_PROTO_GetFieldsCounters [11:53:45]wFMCommunicate request_size=4 [11:53:45]MH_SAM_APDU [11:53:45]CAPDU: 80 13 00 00 [11:53:45]Write to MH i2c: E2 08 00 59 12 80 13 00 00 00 00 00 00 E7 [11:53:45]Write i2c OK [11:53:45]MH_I2C_Read... [11:53:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:45]Read from MH i2c: E2 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 62 00 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 62 00 59 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 73 74 00 00 0E 04 04 00 76 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 81 [11:53:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 73 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:45]wFMCommunicate OK [11:53:45]SAM_PROTO_GetFieldsCounters done [11:53:45]requested_item shift.num is exist - process it [11:53:45]requested_item shift.opened is exist - process it [11:53:45]req_shift_opened [11:53:45]FM_GetShiftState [11:53:45]SAM_PROTO_GetShiftState [11:53:45]wFMCommunicate request_size=4 [11:53:45]MH_SAM_APDU [11:53:45]CAPDU: 80 13 01 00 [11:53:45]Write to MH i2c: E2 08 00 5A 12 80 13 01 00 00 00 00 00 E9 [11:53:45]Write i2c OK [11:53:45]MH_I2C_Read... [11:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:45]Read from MH i2c: E2 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 0E 00 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 0E 00 5A 12 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 97 [11:53:45]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:53:45]wFMCommunicate OK [11:53:45]SAM_PROTO_GetShiftState done [11:53:45]FM_GetShiftState done [11:53:45]req_shift_opened done [11:53:45]requested_item shift.open_date is exist - process it [11:53:45]req_shift_open_date [11:53:45]req_shift_open_date done [11:53:45]produce_requested_data done [11:53:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29811,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:53:45]process_action_free close_receipt [11:53:45]json_value_free [11:53:45]json_value_free done [11:53:45]process_json_proto returns [11:53:45]Send response to host [11:53:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29811,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:53:45]free response buf [11:53:45]execute_script done [11:53:45]execute_script returns [11:53:45]free content buf [11:53:45]Sock 7.Close socket [11:53:45]Sock 7.Thread stoped [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:03]accept exits with 9 [11:55:03]New connection [11:55:03]New thread 3067276644 created [11:55:03]Thread 3067133284 joined [11:55:03]Waiting for new connection... [11:55:03] Sock 9.Parse request [11:55:03]Sock 9.Check first char [11:55:03]Sock 9.First char is OK [11:55:03]request: POST /json_proto HTTP/1.0 [11:55:03]Method: POST [11:55:03]URL: /json_proto [11:55:03]Method is POST - this is cgi request [11:55:03]url: /json_proto [11:55:03]query_string will be loaded in cgi processing [11:55:03]execute_cgi json_proto POST (null) [11:55:03]execute_cgi path=json_proto method=POST [11:55:03]POST find Content-Length [11:55:03]Host: 172.17.33.3:8080 [11:55:03]Content-Length: 1204 [11:55:03]Content-Type: application/json [11:55:03] [11:55:03]POST finish read [11:55:03]Found Content-Length = 1204 [11:55:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348309\u000A16.04.2024 11:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74636\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:03]execute_script... [11:55:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348309\u000A16.04.2024 11:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74636\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:03]POST & json_proto [11:55:03]process_json_proto [11:55:03]json parsed OK: [11:55:03]protocol is kg_v1.0 [11:55:03]action value=print_text [11:55:03]process_action print_text [11:55:03]cmd_print_text [11:55:03]ExternCall_PrintAddStr [11:55:03]wPrintStart [11:55:03]Write to MH i2c: 01 00 00 5B 12 6D [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: 01 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: 01 07 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: 01 07 00 5B 12 00 00 00 00 00 FF 0F 82 [11:55:03]RasterBufferAndPrint [11:55:03]line *****ТОВАРНЫЙ ЧЕК***** [11:55:03]line АЗС 108 [11:55:03]line Партнер нефть [11:55:03]line 02508201610067 [11:55:03]line Кассир : Шадыканова Ж. [11:55:03]line Счет N : (1)348309 [11:55:03]line 16.04.2024 11:36 [11:55:03]line ПРОДАЖА [11:55:03]line ТРК (МРК, ГНК): 51 [11:55:03]line Вид ГСМ : 2710194210 [11:55:03]line ДТ-К-5 [11:55:03]line 50.000 x 72.90 [11:55:03]line ИТОГ: 3645.00 [11:55:03]line Тип оплаты: Талоны: Топливная Карта [11:55:03]line 74636 [11:55:03]line ______________________ [11:55:03]line (подпись) [11:55:03]written 0, free lines is 4095 [11:55:03]Write to MH i2c: 01 00 00 70 12 82 [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: 01 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: 01 07 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: 01 07 00 70 12 00 00 00 00 00 F4 0D 8A [11:55:03]RasterBufferAndPrint [11:55:03]line [11:55:03]line [11:55:03]line [11:55:03]line [11:55:03]line [11:55:03]written 0, free lines is 3574 [11:55:03]MH_Cut [11:55:03]Write to MH i2c: D1 01 00 77 12 01 5B [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: D1 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: D1 01 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: D1 01 00 77 12 00 5A [11:55:03]Write to MH i2c: 01 00 00 78 12 8A [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:04]*** Cut start [11:55:04]*** Partial cut [11:55:04]*** CUTSNS_PIN = 1 [11:55:04]*** CUTSNS_PIN = 0 [11:55:04]*** Brake cut motor [11:55:04]OFD Sender: No OFD packet to send [11:55:05]Read from MH i2c: 01 [11:55:05]MH_I2C_Read... [11:55:05]*** Stop cut motor [11:55:05]*** Cut end [11:55:05]Read from MH i2c: 01 07 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: 01 07 00 78 12 00 00 00 00 00 FF 0F 9F [11:55:05]process_action print_text done [11:55:05]requested_data is exist [11:55:05]produce_requested_data [11:55:05]requested_item fm.sn is exist - process it [11:55:05]wFMCommunicate request_size=4 [11:55:05]MH_SAM_APDU [11:55:05]CAPDU: 80 11 00 00 [11:55:05]Write to MH i2c: E2 08 00 79 12 80 11 00 00 00 00 00 00 05 [11:55:05]Write i2c OK [11:55:05]MH_I2C_Read... [11:55:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:05]Read from MH i2c: E2 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 17 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 17 00 79 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 54 [11:55:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:55:05]wFMCommunicate OK [11:55:05]requested_item fd.num is exist - process it [11:55:05]SAM_PROTO_GetFieldsCounters [11:55:05]wFMCommunicate request_size=4 [11:55:05]MH_SAM_APDU [11:55:05]CAPDU: 80 13 00 00 [11:55:05]Write to MH i2c: E2 08 00 7A 12 80 13 00 00 00 00 00 00 08 [11:55:05]Write i2c OK [11:55:05]MH_I2C_Read... [11:55:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:05]Read from MH i2c: E2 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 62 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 62 00 7A 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 73 74 00 00 0E 04 04 00 76 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 A2 [11: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 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 73 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:05]wFMCommunicate OK [11:55:05]SAM_PROTO_GetFieldsCounters done [11:55:05]requested_item shift.num is exist - process it [11:55:05]requested_item shift.opened is exist - process it [11:55:05]req_shift_opened [11:55:05]FM_GetShiftState [11:55:05]SAM_PROTO_GetShiftState [11:55:05]wFMCommunicate request_size=4 [11:55:05]MH_SAM_APDU [11:55:05]CAPDU: 80 13 01 00 [11:55:05]Write to MH i2c: E2 08 00 7B 12 80 13 01 00 00 00 00 00 0A [11:55:05]Write i2c OK [11:55:05]MH_I2C_Read... [11:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:05]Read from MH i2c: E2 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 0E 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 0E 00 7B 12 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 B8 [11:55:05]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:55:05]wFMCommunicate OK [11:55:05]SAM_PROTO_GetShiftState done [11:55:05]FM_GetShiftState done [11:55:05]req_shift_opened done [11:55:05]requested_item shift.open_date is exist - process it [11:55:05]req_shift_open_date [11:55:05]req_shift_open_date done [11:55:05]produce_requested_data done [11:55:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29811,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:55:05]process_action_free print_text [11:55:05]json_value_free [11:55:05]json_value_free done [11:55:05]process_json_proto returns [11:55:05]Send response to host [11:55:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29811,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:55:05]free response buf [11:55:05]execute_script done [11:55:05]execute_script returns [11:55:05]free content buf [11:55:05]Sock 9.Close socket [11:55:05]Sock 9.Thread stoped [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:33]accept exits with 7 [11:57:33]New connection [11:57:33]New thread 3067133284 created [11:57:33]Thread 3067276644 joined [11:57:33]Waiting for new connection... [11:57:33] Sock 7.Parse request [11:57:33]Sock 7.Check first char [11:57:33]Sock 7.First char is OK [11:57:33]request: POST /json_proto HTTP/1.0 [11:57:33]Method: POST [11:57:33]URL: /json_proto [11:57:33]Method is POST - this is cgi request [11:57:33]url: /json_proto [11:57:33]query_string will be loaded in cgi processing [11:57:33]execute_cgi json_proto POST (null) [11:57:33]execute_cgi path=json_proto method=POST [11:57:33]POST find Content-Length [11:57:33]Host: 172.17.33.3:8080 [11:57:33]Content-Length: 677 [11:57:33]Content-Type: application/json [11:57:33] [11:57:33]POST finish read [11:57:33]Found Content-Length = 677 [11:57:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "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" ] } } [11:57:33]execute_script... [11:57:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "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" ] } } [11:57:33]POST & json_proto [11:57:33]process_json_proto [11:57:33]json parsed OK: [11:57:33]protocol is kg_v1.0 [11:57:33]action value=close_receipt [11:57:33]process_action close_receipt [11:57:33]cmd_close_receipt [11:57:33]MH_GetDate [11:57:33]Write to MH i2c: F0 00 00 7C 12 7D [11:57:33]Write i2c OK [11:57:33]MH_I2C_Read... [11:57:33]Read from MH i2c: F0 [11:57:33]MH_I2C_Read... [11:57:33]Read from MH i2c: F0 09 00 [11:57:33]MH_I2C_Read... [11:57:33]Read from MH i2c: F0 09 00 7C 12 00 AE 67 1E 66 23 5B 8F 65 91 [11:57:33]GetLastDocTimeStamp 1713268423 [11:57:33]current date 1713268654 [11:57:33]FM_GetShiftState [11:57:33]SAM_PROTO_GetShiftState [11:57:33]wFMCommunicate request_size=4 [11:57:33]MH_SAM_APDU [11:57:33]CAPDU: 80 13 01 00 [11:57:33]Write to MH i2c: E2 08 00 7D 12 80 13 01 00 00 00 00 00 0C [11:57:33]Write i2c OK [11:57:33]MH_I2C_Read... [11:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:33]Read from MH i2c: E2 [11:57:33]MH_I2C_Read... [11:57:33]Read from MH i2c: E2 0E 00 [11:57:33]MH_I2C_Read... [11:57:33]Read from MH i2c: E2 0E 00 7D 12 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 BA [11:57:33]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:57:33]wFMCommunicate OK [11:57:33]SAM_PROTO_GetShiftState done [11:57:33]FM_GetShiftState done [11:57:33]opened in 1713226843 [11:57:33]opened+sec_in_day 1713313243 [11:57:33]quantity*price = 50025 [11:57:33]sum+1 = 50027 [11:57:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 86 16.04.2024 11:57 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29812 ФПД: 145866757799776 1/tax-web-control/client/api/v1/ticket?date=20240416T115734&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29812&fm=145866757799776&tin=02508201610067®Number=0000138879044617&sum=50000 [11:57:34]StoreToDocumentArchive [11:57:34]shift 118 fd 29812 [11:57:34]save to /storage/0118/doc_00029812 [11:57:34]save last doc name /storage/0118/doc_00029812 to /storage/kkm_last_doc_name [11:57:34]save OK [11:57:34]Clear old archive folders... [11:57:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:34]tlvbuf is 001A12A0 [11:57:34]SAM_PROTO_ClearQueue [11:57:34]wFMCommunicate request_size=4 [11:57:34]MH_SAM_APDU [11:57:34]CAPDU: 80 09 00 00 [11:57:34]Write to MH i2c: E2 08 00 8A 12 80 09 00 00 00 00 00 00 0E [11:57:34]Write i2c OK [11:57:34]MH_I2C_Read... [11:57:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:34]Read from MH i2c: E2 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 03 00 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 03 00 8A 12 00 90 00 10 [11:57:34]RAPDU: 90 00 [11:57:34]wFMCommunicate OK [11:57:34]SAM_PROTO_ClearQueue done [11:57:34]KKMCreateOFDPacket [11:57:34]OFDProtocolAddRootSTLVToBuf [11:57:34]FM_MakeSignedData [11:57:34]FM_MakeSignedData [11:57:34]SAM_PROTO_SignData [11:57:34]wFMCommunicate request_size=4 [11:57:34]MH_SAM_APDU [11:57:34]CAPDU: 80 0D 01 02 [11:57:34]Write to MH i2c: E2 08 00 8B 12 80 0D 01 02 00 00 00 00 16 [11:57:34]Write i2c OK [11:57:34]MH_I2C_Read... [11:57:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:34]Read from MH i2c: E2 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 03 00 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 03 00 8B 12 00 90 00 11 [11:57:34]RAPDU: 90 00 [11:57:34]wFMCommunicate OK [11:57:34]wFMCommunicate request_size=255 [11:57:34]MH_SAM_APDU [11:57:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 56 00 00 00 F4 03 04 00 AE 67 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 74 00 00 35 04 06 00 84 [11:57:34]Write to MH i2c: E2 02 01 8C 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 56 00 00 00 F4 03 04 00 AE 67 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 74 00 00 35 04 06 00 84 00 00 A0 [11:57:34]Write i2c OK [11:57:34]MH_I2C_Read... [11:57:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:34]Read from MH i2c: E2 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 03 00 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 03 00 8C 12 00 90 00 12 [11:57:34]RAPDU: 90 00 [11:57:34]wFMCommunicate OK [11:57:34]wFMCommunicate request_size=10 [11:57:34]MH_SAM_APDU [11:57:34]CAPDU: 80 0D 02 02 05 AA 40 48 7F 60 [11:57:34]Write to MH i2c: E2 0D 00 8D 12 80 0D 02 02 05 00 AA 40 48 7F 60 00 00 34 [11:57:34]Write i2c OK [11:57:34]MH_I2C_Read... [11:57:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:34]Read from MH i2c: E2 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 03 00 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 03 00 8D 12 00 90 00 13 [11:57:34]RAPDU: 90 00 [11:57:34]wFMCommunicate OK [11:57:34]wFMCommunicate request_size=4 [11:57:34]MH_SAM_APDU [11:57:34]CAPDU: 80 0D 03 02 [11:57:34]Write to MH i2c: E2 08 00 8E 12 80 0D 03 02 00 00 00 00 1B [11:57:34]Write i2c OK [11:57:34]MH_I2C_Read... [11:57:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:34]Read from MH i2c: E2 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 0B 00 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 0B 00 8E 12 00 FA 78 ED E2 87 C3 71 AA 90 00 C2 [11:57:34]RAPDU: FA 78 ED E2 87 C3 71 AA 90 00 [11:57:34]wFMCommunicate OK [11:57:34]SAM_PROTO_SignData done [11:57:34]FM_MakeSignedData done [11:57:34]CreateOFDProtocolMessage [11:57:34]wFMCommunicate request_size=4 [11:57:34]MH_SAM_APDU [11:57:34]CAPDU: 80 11 00 00 [11:57:34]Write to MH i2c: E2 08 00 8F 12 80 11 00 00 00 00 00 00 1B [11:57:34]Write i2c OK [11:57:34]MH_I2C_Read... [11:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:34]Read from MH i2c: E2 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 17 00 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 17 00 8F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6A [11:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:57:34]wFMCommunicate OK [11:57:34]CreateOFDProtocolMessage done [11:57:34]OFDSenderStorePacket 29812 [11:57:34]StoreOFDPacket docnum=29812 [11:57:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0D 07 07 01 4F F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 56 00 00 00 F4 03 04 00 AE 67 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 74 00 00 35 04 06 00 84 AA 40 48 7F 60 FA 78 ED E2 87 C3 71 AA [11:57:34]CheckFolder [11:57:34]dirname=/storage/ofd_packets [11:57:34]CheckFolder done [11:57:34]ProducePacketName [11:57:34]name=ofd_packets/00029812 [11:57:34]NVStorageSaveData ofd_packets/00029812 [11:57:34]File name is /storage/ofd_packets/00029812 [11:57:34]Write 301 bytes [11:57:34]NVStorageSaveData done [11:57:34]OFDSenderStorePacket done [11:57:34]KKMCreateOFDPacket done [11:57:34]NVStorageSaveData kkm_last_timestamp [11:57:34]File name is /storage/kkm_last_timestamp [11:57:34]Write 4 bytes [11:57:34]NVStorageSaveData done [11:57:34]ExternCall_PrintAddStr [11:57:34]wPrintStart [11:57:34]Write to MH i2c: 01 00 00 90 12 A2 [11:57:34]Write i2c OK [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: 01 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: 01 07 00 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: 01 07 00 90 12 00 00 00 00 00 FF 0F B7 [11:57:34]RasterBufferAndPrint [11:57:34]line Счет N : (1)348313 [11:57:34]line ИНН: 02508201610067 [11:57:34]line Контрольно-Кассовый Чек [11:57:34]line ПРОДАЖА [11:57:34]line ТРК (МРК, ГНК) : 42 [11:57:34]line Товар: 2710124130 [11:57:34]line Аи-92-К-5 [11:57:34]line 7.720 * 64.80 [11:57:34]line = 500.26 [11:57:34]line НДС 12% НСП 1% [11:57:34]line > о реализуемом товаре [11:57:34]line ОКРУГЛЕНИЕ: -0.26 [11:57:34]line ИТОГО: 500.00 [11:57:34]line Внесено: 500.00 [11:57:34]line СДАЧА: 0.00 [11:57:34]line НСП 1% : 4.43 [11:57:34]line НДС 12% : 53.12 [11:57:34]line Наличными: 500.00 [11:57:34]line Безнал.: 0.00 [11:57:34]line Место: АЗС № 108 "Партнер Нефть" [11:57:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:57:34]line СНО: Общий режим [11:57:34]line Чек 86 16.04.2024 11:57 [11:57:34]line Смена: 118 ФФД: 1.0 [11:57:34]line ЗНМ: 0300000027 [11:57:34]line РНМ: 0000138879044617 [11:57:34]line Версия ККМ: 001 [11:57:34]line ФМ: 0000000000963154 [11:57:34]line ФД: 29812 [11:57:34]line ФПД: 145866757799776 [11:57:34]line 1/tax-web-control/client/api/v1/ticket?date=20240416T115734&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29812&fm=145866757799776&tin=02508201610067®Number=0000138879044617&sum=50000 [11:57:35]OFD Sender: Processing packet 29812 [packets to send 8, broken 7] [11:57:35]ProducePacketName [11:57:35]name=ofd_packets/00029812 [11:57:35]OFD Sender: To server: pG, [11:57:35]CommunicateWithHost lk.salyk.kg:30040 [11:57:35]ConnectInit lk.salyk.kg [11:57:35]written 0, free lines is 4095 [11:57:35]Connected sock=10 [11:57:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0D 07 07 01 4F F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 56 00 00 00 F4 03 04 00 AE 67 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 74 00 00 35 04 06 00 84 AA 40 48 7F 60 FA 78 ED E2 87 C3 71 AA [11:57:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 62 B6 47 00 84 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 74 00 00 F4 03 04 00 4C 12 1E 66 B6 04 01 00 00 38 B4 45 37 9A A4 83 A6 [11:57:35]CommunicateWithHost err = 0 [11:57:35]CheckOFDResponse [11:57:35]1017 (14) - 77093643461234 [11:57:35]1041 (16) - 0000000000963154 [11:57:35]1040 (4) - 29812 [11:57:35]1012 (4) - 16.04.2024 05:53 [11:57:35]1206 (1) - 0 [11:57:35]OFD Sender: Remove packet 29812 [11:57:35]ProducePacketName [11:57:35]name=ofd_packets/00029812 [11:57:35]NVStorageDeleteData [11:57:35]Write to MH i2c: 01 00 00 BA 12 CC [11:57:35]Write i2c OK [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: 01 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: 01 07 00 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: 01 07 00 BA 12 00 00 00 00 00 CA 0C A9 [11:57:35]RasterBufferAndPrint [11:57:35]line [11:57:35]line [11:57:35]line [11:57:35]line [11:57:35]line [11:57:35]written 0, free lines is 3278 [11:57:35]MH_Cut [11:57:35]Write to MH i2c: D1 01 00 C1 12 01 A5 [11:57:35]Write i2c OK [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: D1 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: D1 01 00 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: D1 01 00 C1 12 00 A4 [11:57:35]Write to MH i2c: 01 00 00 C2 12 D4 [11:57:35]Write i2c OK [11:57:35]MH_I2C_Read... [11:57:36]OFD Sender: No OFD packet to send [11:57:36]*** Cut start [11:57:36]*** Partial cut [11:57:36]*** CUTSNS_PIN = 1 [11:57:36]*** CUTSNS_PIN = 0 [11:57:36]*** Brake cut motor [11:57:37]Read from MH i2c: 01 [11:57:37]MH_I2C_Read... [11:57:37]*** Stop cut motor [11:57:37]*** Cut end [11:57:37]Read from MH i2c: 01 07 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: 01 07 00 C2 12 00 00 00 00 00 FF 0F E9 [11:57:37]process_action close_receipt done [11:57:37]requested_data is exist [11:57:37]produce_requested_data [11:57:37]requested_item fm.sn is exist - process it [11:57:37]wFMCommunicate request_size=4 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 11 00 00 [11:57:37]Write to MH i2c: E2 08 00 C3 12 80 11 00 00 00 00 00 00 4F [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 17 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 17 00 C3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9E [11:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:57:37]wFMCommunicate OK [11:57:37]requested_item fd.num is exist - process it [11:57:37]SAM_PROTO_GetFieldsCounters [11:57:37]wFMCommunicate request_size=4 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 13 00 00 [11:57:37]Write to MH i2c: E2 08 00 C4 12 80 13 00 00 00 00 00 00 52 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 62 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 62 00 C4 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 74 74 00 00 0E 04 04 00 76 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 F0 [11:57:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 74 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:37]wFMCommunicate OK [11:57:37]SAM_PROTO_GetFieldsCounters done [11:57:37]requested_item shift.num is exist - process it [11:57:37]requested_item shift.opened is exist - process it [11:57:37]req_shift_opened [11:57:37]FM_GetShiftState [11:57:37]SAM_PROTO_GetShiftState [11:57:37]wFMCommunicate request_size=4 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 13 01 00 [11:57:37]Write to MH i2c: E2 08 00 C5 12 80 13 01 00 00 00 00 00 54 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 0E 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 0E 00 C5 12 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 02 [11:57:37]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:57:37]wFMCommunicate OK [11:57:37]SAM_PROTO_GetShiftState done [11:57:37]FM_GetShiftState done [11:57:37]req_shift_opened done [11:57:37]requested_item shift.open_date is exist - process it [11:57:37]req_shift_open_date [11:57:37]req_shift_open_date done [11:57:37]produce_requested_data done [11:57:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29812,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:57:37]process_action_free close_receipt [11:57:37]json_value_free [11:57:37]json_value_free done [11:57:37]process_json_proto returns [11:57:37]Send response to host [11:57:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29812,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:57:37]free response buf [11:57:37]execute_script done [11:57:37]execute_script returns [11:57:37]free content buf [11:57:37]Sock 7.Close socket [11:57:37]Sock 7.Thread stoped [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:57:57]accept exits with 9 [11:57:57]New connection [11:57:57]New thread 3067276644 created [11:57:57]Thread 3067133284 joined [11:57:57]Waiting for new connection... [11:57:57] Sock 9.Parse request [11:57:57]Sock 9.Check first char [11:57:57]Sock 9.First char is OK [11:57:57]request: POST /json_proto HTTP/1.0 [11:57:57]Method: POST [11:57:57]URL: /json_proto [11:57:57]Method is POST - this is cgi request [11:57:57]url: /json_proto [11:57:57]query_string will be loaded in cgi processing [11:57:57]execute_cgi json_proto POST (null) [11:57:57]execute_cgi path=json_proto method=POST [11:57:57]POST find Content-Length [11:57:57]Host: 172.17.33.3:8080 [11:57:57]Content-Length: 805 [11:57:57]Content-Type: application/json [11:57:57] [11:57:57]POST finish read [11:57:57]Found Content-Length = 805 [11:57:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 21.950, "sum" : 1600.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1600.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:57]execute_script... [11:57:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 21.950, "sum" : 1600.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1600.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:57]POST & json_proto [11:57:57]process_json_proto [11:57:57]json parsed OK: [11:57:57]protocol is kg_v1.0 [11:57:57]action value=close_receipt [11:57:57]process_action close_receipt [11:57:57]cmd_close_receipt [11:57:57]MH_GetDate [11:57:57]Write to MH i2c: F0 00 00 C6 12 C7 [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: F0 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: F0 09 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: F0 09 00 C6 12 00 C6 67 1E 66 23 5B 8F 65 F3 [11:57:57]GetLastDocTimeStamp 1713268654 [11:57:57]current date 1713268678 [11:57:57]FM_GetShiftState [11:57:57]SAM_PROTO_GetShiftState [11:57:57]wFMCommunicate request_size=4 [11:57:57]MH_SAM_APDU [11:57:57]CAPDU: 80 13 01 00 [11:57:57]Write to MH i2c: E2 08 00 C7 12 80 13 01 00 00 00 00 00 56 [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:57]Read from MH i2c: E2 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 0E 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 0E 00 C7 12 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 04 [11:57:57]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:57:57]wFMCommunicate OK [11:57:57]SAM_PROTO_GetShiftState done [11:57:57]FM_GetShiftState done [11:57:57]opened in 1713226843 [11:57:57]opened+sec_in_day 1713313243 [11:57:57]quantity*price = 160015 [11:57:57]sum+1 = 160017 [11:57:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1600.16 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 0.00 Безнал.: 1600.16 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 87 16.04.2024 11:57 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29813 ФПД: 69887461940668 1/tax-web-control/client/api/v1/ticket?date=20240416T115758&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29813&fm=69887461940668&tin=02508201610067®Number=0000138879044617&sum=160016 [11:57:58]StoreToDocumentArchive [11:57:58]shift 118 fd 29813 [11:57:58]save to /storage/0118/doc_00029813 [11:57:58]save last doc name /storage/0118/doc_00029813 to /storage/kkm_last_doc_name [11:57:58]save OK [11:57:58]Clear old archive folders... [11:57:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:57:58]tlvbuf is 001AA420 [11:57:58]SAM_PROTO_ClearQueue [11:57:58]wFMCommunicate request_size=4 [11:57:58]MH_SAM_APDU [11:57:58]CAPDU: 80 09 00 00 [11:57:58]Write to MH i2c: E2 08 00 D4 12 80 09 00 00 00 00 00 00 58 [11:57:58]Write i2c OK [11:57:58]MH_I2C_Read... [11:57:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:58]Read from MH i2c: E2 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: E2 03 00 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: E2 03 00 D4 12 00 90 00 5A [11:57:58]RAPDU: 90 00 [11:57:58]wFMCommunicate OK [11:57:58]SAM_PROTO_ClearQueue done [11:57:58]KKMCreateOFDPacket [11:57:58]OFDProtocolAddRootSTLVToBuf [11:57:58]FM_MakeSignedData [11:57:58]FM_MakeSignedData [11:57:58]SAM_PROTO_SignData [11:57:58]wFMCommunicate request_size=4 [11:57:58]MH_SAM_APDU [11:57:58]CAPDU: 80 0D 01 02 [11:57:58]Write to MH i2c: E2 08 00 D5 12 80 0D 01 02 00 00 00 00 60 [11:57:58]Write i2c OK [11:57:58]MH_I2C_Read... [11:57:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:58]Read from MH i2c: E2 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: E2 03 00 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: E2 03 00 D5 12 00 90 00 5B [11:57:58]RAPDU: 90 00 [11:57:58]wFMCommunicate OK [11:57:58]wFMCommunicate request_size=255 [11:57:58]MH_SAM_APDU [11:57:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 55 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 10 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 C6 67 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 74 00 00 35 04 06 00 3F 8F F1 57 [11:57:58]Write to MH i2c: E2 02 01 D6 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 55 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 10 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 C6 67 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 74 00 00 35 04 06 00 3F 8F F1 57 00 00 B9 [11:57:58]Write i2c OK [11:57:58]MH_I2C_Read... [11:57:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:58]Read from MH i2c: E2 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: E2 03 00 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: E2 03 00 D6 12 00 90 00 5C [11:57:58]RAPDU: 90 00 [11:57:58]wFMCommunicate OK [11:57:58]wFMCommunicate request_size=7 [11:57:58]MH_SAM_APDU [11:57:58]CAPDU: 80 0D 02 02 02 DD BC [11:57:58]Write to MH i2c: E2 0A 00 D7 12 80 0D 02 02 02 00 DD BC 00 00 00 [11:57:58]Write i2c OK [11:57:58]MH_I2C_Read... [11:57:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:58]Read from MH i2c: E2 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: E2 03 00 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: E2 03 00 D7 12 00 90 00 5D [11:57:58]RAPDU: 90 00 [11:57:58]wFMCommunicate OK [11:57:58]wFMCommunicate request_size=4 [11:57:58]MH_SAM_APDU [11:57:58]CAPDU: 80 0D 03 02 [11:57:58]Write to MH i2c: E2 08 00 D8 12 80 0D 03 02 00 00 00 00 65 [11:57:58]Write i2c OK [11:57:58]MH_I2C_Read... [11:57:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:58]Read from MH i2c: E2 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: E2 0B 00 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: E2 0B 00 D8 12 00 E9 D4 10 9F 8B 99 3B 74 90 00 A5 [11:57:58]RAPDU: E9 D4 10 9F 8B 99 3B 74 90 00 [11:57:58]wFMCommunicate OK [11:57:58]SAM_PROTO_SignData done [11:57:58]FM_MakeSignedData done [11:57:58]CreateOFDProtocolMessage [11:57:58]wFMCommunicate request_size=4 [11:57:58]MH_SAM_APDU [11:57:58]CAPDU: 80 11 00 00 [11:57:58]Write to MH i2c: E2 08 00 D9 12 80 11 00 00 00 00 00 00 65 [11:57:58]Write i2c OK [11:57:58]MH_I2C_Read... [11:57:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:58]Read from MH i2c: E2 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: E2 17 00 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: E2 17 00 D9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B4 [11:57:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:57:58]wFMCommunicate OK [11:57:58]CreateOFDProtocolMessage done [11:57:58]OFDSenderStorePacket 29813 [11:57:58]StoreOFDPacket docnum=29813 [11:57:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 11 AC 04 01 83 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 55 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 10 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 C6 67 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 74 00 00 35 04 06 00 3F 8F F1 57 DD BC E9 D4 10 9F 8B 99 3B 74 [11:57:58]CheckFolder [11:57:58]dirname=/storage/ofd_packets [11:57:58]CheckFolder done [11:57:58]ProducePacketName [11:57:58]name=ofd_packets/00029813 [11:57:58]NVStorageSaveData ofd_packets/00029813 [11:57:58]File name is /storage/ofd_packets/00029813 [11:57:58]Write 298 bytes [11:57:58]NVStorageSaveData done [11:57:58]OFDSenderStorePacket done [11:57:58]KKMCreateOFDPacket done [11:57:58]NVStorageSaveData kkm_last_timestamp [11:57:58]File name is /storage/kkm_last_timestamp [11:57:58]Write 4 bytes [11:57:58]NVStorageSaveData done [11:57:58]ExternCall_PrintAddStr [11:57:58]wPrintStart [11:57:58]Write to MH i2c: 01 00 00 DA 12 EC [11:57:58]Write i2c OK [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: 01 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: 01 07 00 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: 01 07 00 DA 12 00 00 00 00 00 FF 0F 01 [11:57:58]RasterBufferAndPrint [11:57:58]line Счет N : (1)348312 [11:57:58]line ИНН: 02508201610067 [11:57:58]line Контрольно-Кассовый Чек [11:57:58]line ПРОДАЖА [11:57:58]line ТРК (МРК, ГНК) : 51 [11:57:58]line Товар: 2710194210 [11:57:58]line ДТ-К-5 [11:57:58]line 21.950 * 72.90 [11:57:58]line = 1600.16 [11:57:58]line НДС 12% НСП 1% [11:57:58]line > о реализуемом товаре [11:57:58]line ИТОГО: 1600.16 [11:57:58]line НСП 1% : 14.16 [11:57:58]line НДС 12% : 169.93 [11:57:58]line Наличными: 0.00 [11:57:58]line Безнал.: 1600.16 [11:57:58]line Место: АЗС № 108 "Партнер Нефть" [11:57:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:57:58]line СНО: Общий режим [11:57:58]line Чек 87 16.04.2024 11:57 [11:57:58]line Смена: 118 ФФД: 1.0 [11:57:58]line ЗНМ: 0300000027 [11:57:58]line РНМ: 0000138879044617 [11:57:58]line Версия ККМ: 001 [11:57:58]line Платежная система: О! деньги [11:57:58]line ФМ: 0000000000963154 [11:57:58]line ФД: 29813 [11:57:58]line ФПД: 69887461940668 [11:57:59]line 1/tax-web-control/client/api/v1/ticket?date=20240416T115758&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29813&fm=69887461940668&tin=02508201610067®Number=0000138879044617&sum=160016 [11:57:59]OFD Sender: Processing packet 29813 [packets to send 8, broken 7] [11:57:59]ProducePacketName [11:57:59]name=ofd_packets/00029813 [11:57:59]OFD Sender: To server: pG, [11:57:59]CommunicateWithHost lk.salyk.kg:30040 [11:57:59]ConnectInit lk.salyk.kg [11:57:59]written 0, free lines is 4095 [11:57:59]Connected sock=10 [11:57:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 11 AC 04 01 83 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 55 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 10 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 C6 67 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 74 00 00 35 04 06 00 3F 8F F1 57 DD BC E9 D4 10 9F 8B 99 3B 74 [11:57:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E8 93 47 00 03 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 74 00 00 F4 03 04 00 64 12 1E 66 B6 04 01 00 00 E4 69 F2 AE D1 5F 10 B3 [11:57:59]CommunicateWithHost err = 0 [11:57:59]CheckOFDResponse [11:57:59]1017 (14) - 77093643461234 [11:57:59]1041 (16) - 0000000000963154 [11:57:59]1040 (4) - 29813 [11:57:59]1012 (4) - 16.04.2024 05:53 [11:57:59]1206 (1) - 0 [11:57:59]OFD Sender: Remove packet 29813 [11:57:59]ProducePacketName [11:57:59]name=ofd_packets/00029813 [11:57:59]NVStorageDeleteData [11:57:59]Write to MH i2c: 01 00 00 03 13 16 [11:57:59]Write i2c OK [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: 01 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: 01 07 00 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: 01 07 00 03 13 00 00 00 00 00 EC 0C 15 [11:57:59]RasterBufferAndPrint [11:57:59]line [11:57:59]line [11:57:59]line [11:57:59]line [11:57:59]line [11:57:59]written 0, free lines is 3317 [11:57:59]MH_Cut [11:57:59]Write to MH i2c: D1 01 00 0A 13 01 EF [11:57:59]Write i2c OK [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: D1 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: D1 01 00 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: D1 01 00 0A 13 00 EE [11:57:59]Write to MH i2c: 01 00 00 0B 13 1E [11:57:59]Write i2c OK [11:57:59]MH_I2C_Read... [11:57:59]OFD Sender: No OFD packet to send [11:58:00]*** Cut start [11:58:00]*** Partial cut [11:58:00]*** CUTSNS_PIN = 1 [11:58:00]*** CUTSNS_PIN = 0 [11:58:00]*** Brake cut motor [11:58:01]Read from MH i2c: 01 [11:58:01]MH_I2C_Read... [11:58:01]*** Stop cut motor [11:58:01]*** Cut end [11:58:01]Read from MH i2c: 01 07 00 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: 01 07 00 0B 13 00 00 00 00 00 FF 0F 33 [11:58:01]process_action close_receipt done [11:58:01]requested_data is exist [11:58:01]produce_requested_data [11:58:01]requested_item fm.sn is exist - process it [11:58:01]wFMCommunicate request_size=4 [11:58:01]MH_SAM_APDU [11:58:01]CAPDU: 80 11 00 00 [11:58:01]Write to MH i2c: E2 08 00 0C 13 80 11 00 00 00 00 00 00 99 [11:58:01]Write i2c OK [11:58:01]MH_I2C_Read... [11:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:01]Read from MH i2c: E2 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 17 00 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 17 00 0C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E8 [11:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:58:01]wFMCommunicate OK [11:58:01]requested_item fd.num is exist - process it [11:58:01]SAM_PROTO_GetFieldsCounters [11:58:01]wFMCommunicate request_size=4 [11:58:01]MH_SAM_APDU [11:58:01]CAPDU: 80 13 00 00 [11:58:01]Write to MH i2c: E2 08 00 0D 13 80 13 00 00 00 00 00 00 9C [11:58:01]Write i2c OK [11:58:01]MH_I2C_Read... [11:58:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:01]Read from MH i2c: E2 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 62 00 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 62 00 0D 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 75 74 00 00 0E 04 04 00 76 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 3E [11:58:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 75 74 00 00 0E 04 04 00 76 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 [11:58:01]wFMCommunicate OK [11:58:01]SAM_PROTO_GetFieldsCounters done [11:58:01]requested_item shift.num is exist - process it [11:58:01]requested_item shift.opened is exist - process it [11:58:01]req_shift_opened [11:58:01]FM_GetShiftState [11:58:01]SAM_PROTO_GetShiftState [11:58:01]wFMCommunicate request_size=4 [11:58:01]MH_SAM_APDU [11:58:01]CAPDU: 80 13 01 00 [11:58:01]Write to MH i2c: E2 08 00 0E 13 80 13 01 00 00 00 00 00 9E [11:58:01]Write i2c OK [11:58:01]MH_I2C_Read... [11:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:01]Read from MH i2c: E2 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 0E 00 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 0E 00 0E 13 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 4C [11:58:01]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:58:01]wFMCommunicate OK [11:58:01]SAM_PROTO_GetShiftState done [11:58:01]FM_GetShiftState done [11:58:01]req_shift_opened done [11:58:01]requested_item shift.open_date is exist - process it [11:58:01]req_shift_open_date [11:58:01]req_shift_open_date done [11:58:01]produce_requested_data done [11:58:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29813,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:58:01]process_action_free close_receipt [11:58:01]json_value_free [11:58:01]json_value_free done [11:58:01]process_json_proto returns [11:58:01]Send response to host [11:58:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29813,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:58:01]free response buf [11:58:01]execute_script done [11:58:01]execute_script returns [11:58:01]free content buf [11:58:01]Sock 9.Close socket [11:58:01]Sock 9.Thread stoped [11:58:04]OFD Sender: No OFD packet to send [11:58:09]OFD Sender: No OFD packet to send [11:58:14]OFD Sender: No OFD packet to send [11:58:19]OFD Sender: No OFD packet to send [11:58:24]OFD Sender: No OFD packet to send [11:58:29]OFD Sender: No OFD packet to send [11:58:34]OFD Sender: No OFD packet to send [11:58:39]OFD Sender: No OFD packet to send [11:58:44]OFD Sender: No OFD packet to send [11:58:46]accept exits with 7 [11:58:46]New connection [11:58:46]New thread 3067133284 created [11:58:46]Thread 3067276644 joined [11:58:46]Waiting for new connection... [11:58:46] Sock 7.Parse request [11:58:46]Sock 7.Check first char [11:58:46]Sock 7.First char is OK [11:58:46]request: POST /json_proto HTTP/1.0 [11:58:46]Method: POST [11:58:46]URL: /json_proto [11:58:46]Method is POST - this is cgi request [11:58:46]url: /json_proto [11:58:46]query_string will be loaded in cgi processing [11:58:46]execute_cgi json_proto POST (null) [11:58:46]execute_cgi path=json_proto method=POST [11:58:46]POST find Content-Length [11:58:46]Host: 172.17.33.3:8080 [11:58:46]Content-Length: 682 [11:58:46]Content-Type: application/json [11:58:46] [11:58:46]POST finish read [11:58:46]Found Content-Length = 682 [11:58:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:46]execute_script... [11:58: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 : (1)348314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:46]POST & json_proto [11:58:46]process_json_proto [11:58:46]json parsed OK: [11:58:46]protocol is kg_v1.0 [11:58:46]action value=close_receipt [11:58:46]process_action close_receipt [11:58:46]cmd_close_receipt [11:58:46]MH_GetDate [11:58:46]Write to MH i2c: F0 00 00 0F 13 11 [11:58:46]Write i2c OK [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: F0 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: F0 09 00 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: F0 09 00 0F 13 00 F8 67 1E 66 23 5B 8F 65 6F [11:58:46]GetLastDocTimeStamp 1713268678 [11:58:46]current date 1713268728 [11:58:46]FM_GetShiftState [11:58:46]SAM_PROTO_GetShiftState [11:58:46]wFMCommunicate request_size=4 [11:58:46]MH_SAM_APDU [11:58:46]CAPDU: 80 13 01 00 [11:58:46]Write to MH i2c: E2 08 00 10 13 80 13 01 00 00 00 00 00 A0 [11:58:46]Write i2c OK [11:58:46]MH_I2C_Read... [11:58:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:46]Read from MH i2c: E2 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: E2 0E 00 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: E2 0E 00 10 13 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 4E [11:58:46]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:58:46]wFMCommunicate OK [11:58:46]SAM_PROTO_GetShiftState done [11:58:46]FM_GetShiftState done [11:58:46]opened in 1713226843 [11:58:46]opened+sec_in_day 1713313243 [11:58:46]quantity*price = 100051 [11:58:46]sum+1 = 100052 [11:58:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 88 16.04.2024 11:58 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29814 ФПД: 24065428475633 1/tax-web-control/client/api/v1/ticket?date=20240416T115848&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29814&fm=24065428475633&tin=02508201610067®Number=0000138879044617&sum=100000 [11:58:47]StoreToDocumentArchive [11:58:47]shift 118 fd 29814 [11:58:47]save to /storage/0118/doc_00029814 [11:58:47]save last doc name /storage/0118/doc_00029814 to /storage/kkm_last_doc_name [11:58:47]save OK [11:58:47]Clear old archive folders... [11:58:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:47]tlvbuf is 00202EC0 [11:58:47]SAM_PROTO_ClearQueue [11:58:47]wFMCommunicate request_size=4 [11:58:47]MH_SAM_APDU [11:58:47]CAPDU: 80 09 00 00 [11:58:47]Write to MH i2c: E2 08 00 1D 13 80 09 00 00 00 00 00 00 A2 [11:58:47]Write i2c OK [11:58:47]MH_I2C_Read... [11:58:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:47]Read from MH i2c: E2 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: E2 03 00 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: E2 03 00 1D 13 00 90 00 A4 [11:58:47]RAPDU: 90 00 [11:58:47]wFMCommunicate OK [11:58:47]SAM_PROTO_ClearQueue done [11:58:47]KKMCreateOFDPacket [11:58:47]OFDProtocolAddRootSTLVToBuf [11:58:47]FM_MakeSignedData [11:58:47]FM_MakeSignedData [11:58:47]SAM_PROTO_SignData [11:58:47]wFMCommunicate request_size=4 [11:58:47]MH_SAM_APDU [11:58:47]CAPDU: 80 0D 01 02 [11:58:47]Write to MH i2c: E2 08 00 1E 13 80 0D 01 02 00 00 00 00 AA [11:58:47]Write i2c OK [11:58:47]MH_I2C_Read... [11:58:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:47]Read from MH i2c: E2 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: E2 03 00 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: E2 03 00 1E 13 00 90 00 A5 [11:58:47]RAPDU: 90 00 [11:58:47]wFMCommunicate OK [11:58:47]wFMCommunicate request_size=255 [11:58:47]MH_SAM_APDU [11:58:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F8 67 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 74 00 00 35 04 06 00 15 [11:58:47]Write to MH i2c: E2 02 01 1F 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F8 67 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 74 00 00 35 04 06 00 15 00 00 40 [11:58:47]Write i2c OK [11:58:47]MH_I2C_Read... [11:58:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:48]Read from MH i2c: E2 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 03 00 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 03 00 1F 13 00 90 00 A6 [11:58:48]RAPDU: 90 00 [11:58:48]wFMCommunicate OK [11:58:48]wFMCommunicate request_size=10 [11:58:48]MH_SAM_APDU [11:58:48]CAPDU: 80 0D 02 02 05 E3 2B 50 CE F1 [11:58:48]Write to MH i2c: E2 0D 00 20 13 80 0D 02 02 05 00 E3 2B 50 CE F1 00 00 D4 [11:58:48]Write i2c OK [11:58:48]MH_I2C_Read... [11:58:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:48]Read from MH i2c: E2 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 03 00 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 03 00 20 13 00 90 00 A7 [11:58:48]RAPDU: 90 00 [11:58:48]wFMCommunicate OK [11:58:48]wFMCommunicate request_size=4 [11:58:48]MH_SAM_APDU [11:58:48]CAPDU: 80 0D 03 02 [11:58:48]Write to MH i2c: E2 08 00 21 13 80 0D 03 02 00 00 00 00 AF [11:58:48]Write i2c OK [11:58:48]MH_I2C_Read... [11:58:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:48]Read from MH i2c: E2 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 0B 00 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 0B 00 21 13 00 AC 73 43 AC 9E B9 51 87 90 00 ED [11:58:48]RAPDU: AC 73 43 AC 9E B9 51 87 90 00 [11:58:48]wFMCommunicate OK [11:58:48]SAM_PROTO_SignData done [11:58:48]FM_MakeSignedData done [11:58:48]CreateOFDProtocolMessage [11:58:48]wFMCommunicate request_size=4 [11:58:48]MH_SAM_APDU [11:58:48]CAPDU: 80 11 00 00 [11:58:48]Write to MH i2c: E2 08 00 22 13 80 11 00 00 00 00 00 00 AF [11:58:48]Write i2c OK [11:58:48]MH_I2C_Read... [11:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:48]Read from MH i2c: E2 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 17 00 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 17 00 22 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FE [11:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:58:48]wFMCommunicate OK [11:58:48]CreateOFDProtocolMessage done [11:58:48]OFDSenderStorePacket 29814 [11:58:48]StoreOFDPacket docnum=29814 [11:58:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FD C8 07 01 23 68 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F8 67 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 74 00 00 35 04 06 00 15 E3 2B 50 CE F1 AC 73 43 AC 9E B9 51 87 [11:58:48]CheckFolder [11:58:48]dirname=/storage/ofd_packets [11:58:48]CheckFolder done [11:58:48]ProducePacketName [11:58:48]name=ofd_packets/00029814 [11:58:48]NVStorageSaveData ofd_packets/00029814 [11:58:48]File name is /storage/ofd_packets/00029814 [11:58:48]Write 301 bytes [11:58:48]NVStorageSaveData done [11:58:48]OFDSenderStorePacket done [11:58:48]KKMCreateOFDPacket done [11:58:48]NVStorageSaveData kkm_last_timestamp [11:58:48]File name is /storage/kkm_last_timestamp [11:58:48]Write 4 bytes [11:58:48]NVStorageSaveData done [11:58:48]ExternCall_PrintAddStr [11:58:48]wPrintStart [11:58:48]Write to MH i2c: 01 00 00 23 13 36 [11:58:48]Write i2c OK [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: 01 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: 01 07 00 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: 01 07 00 23 13 00 00 00 00 00 FF 0F 4B [11:58:48]RasterBufferAndPrint [11:58:48]line Счет N : (1)348314 [11:58:48]line ИНН: 02508201610067 [11:58:48]line Контрольно-Кассовый Чек [11:58:48]line ПРОДАЖА [11:58:48]line ТРК (МРК, ГНК) : 23 [11:58:48]line Товар: 2710124130 [11:58:48]line Аи-92-К-5 [11:58:48]line 15.440 * 64.80 [11:58:48]line = 1000.51 [11:58:48]line НДС 12% НСП 1% [11:58:48]line > о реализуемом товаре [11:58:48]line ОКРУГЛЕНИЕ: -0.51 [11:58:48]line ИТОГО: 1000.00 [11:58:48]line Внесено: 1000.00 [11:58:48]line СДАЧА: 0.00 [11:58:48]line НСП 1% : 8.85 [11:58:48]line НДС 12% : 106.25 [11:58:48]line Наличными: 1000.00 [11:58:48]line Безнал.: 0.00 [11:58:48]line Место: АЗС № 108 "Партнер Нефть" [11:58:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:58:48]line СНО: Общий режим [11:58:48]line Чек 88 16.04.2024 11:58 [11:58:48]line Смена: 118 ФФД: 1.0 [11:58:48]line ЗНМ: 0300000027 [11:58:48]line РНМ: 0000138879044617 [11:58:48]line Версия ККМ: 001 [11:58:48]line ФМ: 0000000000963154 [11:58:48]line ФД: 29814 [11:58:48]line ФПД: 24065428475633 [11:58:48]line 1/tax-web-control/client/api/v1/ticket?date=20240416T115848&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29814&fm=24065428475633&tin=02508201610067®Number=0000138879044617&sum=100000 [11:58:48]OFD Sender: Processing packet 29814 [packets to send 8, broken 7] [11:58:48]ProducePacketName [11:58:48]name=ofd_packets/00029814 [11:58:48]OFD Sender: To server: pG, [11:58:48]CommunicateWithHost lk.salyk.kg:30040 [11:58:48]ConnectInit lk.salyk.kg [11:58:48]written 0, free lines is 4095 [11:58:48]Connected sock=10 [11:58:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FD C8 07 01 23 68 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 F8 67 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 74 00 00 35 04 06 00 15 E3 2B 50 CE F1 AC 73 43 AC 9E B9 51 87 [11:58:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 19 0D 47 00 DE 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 74 00 00 F4 03 04 00 96 12 1E 66 B6 04 01 00 00 E4 B1 EC 46 5B BC 5D 72 [11:58:49]CommunicateWithHost err = 0 [11:58:49]CheckOFDResponse [11:58:49]1017 (14) - 77093643461234 [11:58:49]1041 (16) - 0000000000963154 [11:58:49]1040 (4) - 29814 [11:58:49]1012 (4) - 16.04.2024 05:54 [11:58:49]1206 (1) - 0 [11:58:49]OFD Sender: Remove packet 29814 [11:58:49]ProducePacketName [11:58:49]name=ofd_packets/00029814 [11:58:49]NVStorageDeleteData [11:58:49]Write to MH i2c: 01 00 00 4D 13 60 [11:58:49]Write i2c OK [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: 01 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: 01 07 00 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: 01 07 00 4D 13 00 00 00 00 00 CB 0C 3E [11:58:49]RasterBufferAndPrint [11:58:49]line [11:58:49]line [11:58:49]line [11:58:49]line [11:58:49]line [11:58:49]written 0, free lines is 3279 [11:58:49]MH_Cut [11:58:49]Write to MH i2c: D1 01 00 54 13 01 39 [11:58:49]Write i2c OK [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: D1 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: D1 01 00 [11:58:49]MH_I2C_Read... [11:58:49]Read from MH i2c: D1 01 00 54 13 00 38 [11:58:49]Write to MH i2c: 01 00 00 55 13 68 [11:58:49]Write i2c OK [11:58:49]MH_I2C_Read... [11:58:49]OFD Sender: No OFD packet to send [11:58:49]*** Cut start [11:58:49]*** Partial cut [11:58:49]*** CUTSNS_PIN = 1 [11:58:50]*** CUTSNS_PIN = 0 [11:58:50]*** Brake cut motor [11:58:50]Read from MH i2c: 01 [11:58:50]MH_I2C_Read... [11:58:50]*** Stop cut motor [11:58:50]*** Cut end [11:58:50]Read from MH i2c: 01 07 00 [11:58:50]MH_I2C_Read... [11:58:50]Read from MH i2c: 01 07 00 55 13 00 00 00 00 00 FF 0F 7D [11:58:50]process_action close_receipt done [11:58:50]requested_data is exist [11:58:50]produce_requested_data [11:58:50]requested_item fm.sn is exist - process it [11:58:50]wFMCommunicate request_size=4 [11:58:50]MH_SAM_APDU [11:58:50]CAPDU: 80 11 00 00 [11:58:50]Write to MH i2c: E2 08 00 56 13 80 11 00 00 00 00 00 00 E3 [11:58:50]Write i2c OK [11:58:50]MH_I2C_Read... [11:58:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:50]Read from MH i2c: E2 [11:58:50]MH_I2C_Read... [11:58:50]Read from MH i2c: E2 17 00 [11:58:50]MH_I2C_Read... [11:58:50]Read from MH i2c: E2 17 00 56 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 32 [11:58:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:58:50]wFMCommunicate OK [11:58:50]requested_item fd.num is exist - process it [11:58:50]SAM_PROTO_GetFieldsCounters [11:58:50]wFMCommunicate request_size=4 [11:58:50]MH_SAM_APDU [11:58:50]CAPDU: 80 13 00 00 [11:58:50]Write to MH i2c: E2 08 00 57 13 80 13 00 00 00 00 00 00 E6 [11:58:50]Write i2c OK [11:58:50]MH_I2C_Read... [11:58:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:50]Read from MH i2c: E2 [11:58:50]MH_I2C_Read... [11:58:50]Read from MH i2c: E2 62 00 [11:58:50]MH_I2C_Read... [11:58:50]Read from MH i2c: E2 62 00 57 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 76 74 00 00 0E 04 04 00 76 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 8C [11:58:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 76 74 00 00 0E 04 04 00 76 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 [11:58:50]wFMCommunicate OK [11:58:50]SAM_PROTO_GetFieldsCounters done [11:58:50]requested_item shift.num is exist - process it [11:58:50]requested_item shift.opened is exist - process it [11:58:50]req_shift_opened [11:58:50]FM_GetShiftState [11:58:50]SAM_PROTO_GetShiftState [11:58:50]wFMCommunicate request_size=4 [11:58:50]MH_SAM_APDU [11:58:50]CAPDU: 80 13 01 00 [11:58:50]Write to MH i2c: E2 08 00 58 13 80 13 01 00 00 00 00 00 E8 [11:58:50]Write i2c OK [11:58:50]MH_I2C_Read... [11:58:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:50]Read from MH i2c: E2 [11:58:50]MH_I2C_Read... [11:58:50]Read from MH i2c: E2 0E 00 [11:58:50]MH_I2C_Read... [11:58:50]Read from MH i2c: E2 0E 00 58 13 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 96 [11:58:50]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [11:58:50]wFMCommunicate OK [11:58:50]SAM_PROTO_GetShiftState done [11:58:50]FM_GetShiftState done [11:58:50]req_shift_opened done [11:58:50]requested_item shift.open_date is exist - process it [11:58:50]req_shift_open_date [11:58:50]req_shift_open_date done [11:58:50]produce_requested_data done [11:58:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29814,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [11:58:50]process_action_free close_receipt [11:58:50]json_value_free [11:58:50]json_value_free done [11:58:50]process_json_proto returns [11:58:50]Send response to host [11:58:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29814,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [11:58:50]free response buf [11:58:50]execute_script done [11:58:50]execute_script returns [11:58:50]free content buf [11:58:50]Sock 7.Close socket [11:58:50]Sock 7.Thread stoped [11:58:54]OFD Sender: No OFD packet to send [11:58:59]OFD Sender: No OFD packet to send [11:59:04]OFD Sender: No OFD packet to send [11:59:09]OFD Sender: No OFD packet to send [11:59:14]OFD Sender: No OFD packet to send [11:59:19]OFD Sender: No OFD packet to send [11:59:24]OFD Sender: No OFD packet to send [11:59:29]OFD Sender: No OFD packet to send [11:59:34]OFD Sender: No OFD packet to send [11:59:39]OFD Sender: No OFD packet to send [11:59:44]OFD Sender: No OFD packet to send [11:59:49]OFD Sender: No OFD packet to send [11:59:54]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]accept exits with 9 [12:00:04]New connection [12:00:04]New thread 3067276644 created [12:00:04]Thread 3067133284 joined [12:00:04]Waiting for new connection... [12:00:04] Sock 9.Parse request [12:00:04]Sock 9.Check first char [12:00:04]Sock 9.First char is OK [12:00:04]request: POST /json_proto HTTP/1.0 [12:00:04]Method: POST [12:00:04]URL: /json_proto [12:00:04]Method is POST - this is cgi request [12:00:04]url: /json_proto [12:00:04]query_string will be loaded in cgi processing [12:00:04]execute_cgi json_proto POST (null) [12:00:04]execute_cgi path=json_proto method=POST [12:00:04]POST find Content-Length [12:00:04]Host: 172.17.33.3:8080 [12:00:04]Content-Length: 682 [12:00:04]Content-Type: application/json [12:00:04] [12:00:04]POST finish read [12:00:04]Found Content-Length = 682 [12:00:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:04]execute_script... [12:00:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:04]POST & json_proto [12:00:04]process_json_proto [12:00:04]json parsed OK: [12:00:04]protocol is kg_v1.0 [12:00:04]action value=close_receipt [12:00:04]process_action close_receipt [12:00:04]cmd_close_receipt [12:00:04]MH_GetDate [12:00:04]Write to MH i2c: F0 00 00 59 13 5B [12:00:04]Write i2c OK [12:00:04]MH_I2C_Read... [12:00:04]Read from MH i2c: F0 [12:00:04]MH_I2C_Read... [12:00:04]Read from MH i2c: F0 09 00 [12:00:04]MH_I2C_Read... [12:00:04]Read from MH i2c: F0 09 00 59 13 00 46 68 1E 66 23 5B 8F 65 08 [12:00:04]GetLastDocTimeStamp 1713268728 [12:00:04]current date 1713268806 [12:00:04]FM_GetShiftState [12:00:04]SAM_PROTO_GetShiftState [12:00:04]wFMCommunicate request_size=4 [12:00:04]MH_SAM_APDU [12:00:04]CAPDU: 80 13 01 00 [12:00:04]Write to MH i2c: E2 08 00 5A 13 80 13 01 00 00 00 00 00 EA [12:00:04]Write i2c OK [12:00:04]MH_I2C_Read... [12:00:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:04]Read from MH i2c: E2 [12:00:04]MH_I2C_Read... [12:00:04]Read from MH i2c: E2 0E 00 [12:00:04]MH_I2C_Read... [12:00:04]Read from MH i2c: E2 0E 00 5A 13 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 98 [12:00:04]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:00:04]wFMCommunicate OK [12:00:04]SAM_PROTO_GetShiftState done [12:00:04]FM_GetShiftState done [12:00:04]opened in 1713226843 [12:00:04]opened+sec_in_day 1713313243 [12:00:04]quantity*price = 100051 [12:00:04]sum+1 = 100052 [12:00:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 89 16.04.2024 12:00 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29815 ФПД: 112925623193432 1/tax-web-control/client/api/v1/ticket?date=20240416T120006&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29815&fm=112925623193432&tin=02508201610067®Number=0000138879044617&sum=100000 [12:00:05]StoreToDocumentArchive [12:00:05]shift 118 fd 29815 [12:00:05]save to /storage/0118/doc_00029815 [12:00:05]save last doc name /storage/0118/doc_00029815 to /storage/kkm_last_doc_name [12:00:05]save OK [12:00:05]Clear old archive folders... [12:00:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:05]tlvbuf is 0018D640 [12:00:05]SAM_PROTO_ClearQueue [12:00:05]wFMCommunicate request_size=4 [12:00:05]MH_SAM_APDU [12:00:05]CAPDU: 80 09 00 00 [12:00:05]Write to MH i2c: E2 08 00 67 13 80 09 00 00 00 00 00 00 EC [12:00:05]Write i2c OK [12:00:05]MH_I2C_Read... [12:00:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:05]Read from MH i2c: E2 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: E2 03 00 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: E2 03 00 67 13 00 90 00 EE [12:00:05]RAPDU: 90 00 [12:00:05]wFMCommunicate OK [12:00:05]SAM_PROTO_ClearQueue done [12:00:05]KKMCreateOFDPacket [12:00:05]OFDProtocolAddRootSTLVToBuf [12:00:05]FM_MakeSignedData [12:00:05]FM_MakeSignedData [12:00:05]SAM_PROTO_SignData [12:00:05]wFMCommunicate request_size=4 [12:00:05]MH_SAM_APDU [12:00:05]CAPDU: 80 0D 01 02 [12:00:05]Write to MH i2c: E2 08 00 68 13 80 0D 01 02 00 00 00 00 F4 [12:00:05]Write i2c OK [12:00:05]MH_I2C_Read... [12:00:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:05]Read from MH i2c: E2 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: E2 03 00 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: E2 03 00 68 13 00 90 00 EF [12:00:05]RAPDU: 90 00 [12:00:05]wFMCommunicate OK [12:00:05]wFMCommunicate request_size=255 [12:00:05]MH_SAM_APDU [12:00:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 46 68 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 74 00 00 35 04 06 00 66 [12:00:05]Write to MH i2c: E2 02 01 69 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 46 68 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 74 00 00 35 04 06 00 66 00 00 2C [12:00:05]Write i2c OK [12:00:05]MH_I2C_Read... [12:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:05]Read from MH i2c: E2 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: E2 03 00 [12:00:05]MH_I2C_Read... [12:00:05]Read from MH i2c: E2 03 00 69 13 00 90 00 F0 [12:00:05]RAPDU: 90 00 [12:00:05]wFMCommunicate OK [12:00:05]wFMCommunicate request_size=10 [12:00:05]MH_SAM_APDU [12:00:05]CAPDU: 80 0D 02 02 05 B4 8B A8 0F 58 [12:00:05]Write to MH i2c: E2 0D 00 6A 13 80 0D 02 02 05 00 B4 8B A8 0F 58 00 00 4F [12:00:05]Write i2c OK [12:00:05]MH_I2C_Read... [12:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:06]Read from MH i2c: E2 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: E2 03 00 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: E2 03 00 6A 13 00 90 00 F1 [12:00:06]RAPDU: 90 00 [12:00:06]wFMCommunicate OK [12:00:06]wFMCommunicate request_size=4 [12:00:06]MH_SAM_APDU [12:00:06]CAPDU: 80 0D 03 02 [12:00:06]Write to MH i2c: E2 08 00 6B 13 80 0D 03 02 00 00 00 00 F9 [12:00:06]Write i2c OK [12:00:06]MH_I2C_Read... [12:00:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:06]Read from MH i2c: E2 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: E2 0B 00 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: E2 0B 00 6B 13 00 C7 50 5C 31 B5 BF 63 5B 90 00 D0 [12:00:06]RAPDU: C7 50 5C 31 B5 BF 63 5B 90 00 [12:00:06]wFMCommunicate OK [12:00:06]SAM_PROTO_SignData done [12:00:06]FM_MakeSignedData done [12:00:06]CreateOFDProtocolMessage [12:00:06]wFMCommunicate request_size=4 [12:00:06]MH_SAM_APDU [12:00:06]CAPDU: 80 11 00 00 [12:00:06]Write to MH i2c: E2 08 00 6C 13 80 11 00 00 00 00 00 00 F9 [12:00:06]Write i2c OK [12:00:06]MH_I2C_Read... [12:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:06]Read from MH i2c: E2 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: E2 17 00 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: E2 17 00 6C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 48 [12:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:00:06]wFMCommunicate OK [12:00:06]CreateOFDProtocolMessage done [12:00:06]OFDSenderStorePacket 29815 [12:00:06]StoreOFDPacket docnum=29815 [12:00:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9D 07 07 01 75 BF 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 46 68 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 74 00 00 35 04 06 00 66 B4 8B A8 0F 58 C7 50 5C 31 B5 BF 63 5B [12:00:06]CheckFolder [12:00:06]dirname=/storage/ofd_packets [12:00:06]CheckFolder done [12:00:06]ProducePacketName [12:00:06]name=ofd_packets/00029815 [12:00:06]NVStorageSaveData ofd_packets/00029815 [12:00:06]File name is /storage/ofd_packets/00029815 [12:00:06]Write 301 bytes [12:00:06]NVStorageSaveData done [12:00:06]OFDSenderStorePacket done [12:00:06]KKMCreateOFDPacket done [12:00:06]NVStorageSaveData kkm_last_timestamp [12:00:06]File name is /storage/kkm_last_timestamp [12:00:06]Write 4 bytes [12:00:06]NVStorageSaveData done [12:00:06]ExternCall_PrintAddStr [12:00:06]wPrintStart [12:00:06]Write to MH i2c: 01 00 00 6D 13 80 [12:00:06]Write i2c OK [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: 01 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: 01 07 00 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: 01 07 00 6D 13 00 00 00 00 00 FF 0F 95 [12:00:06]RasterBufferAndPrint [12:00:06]line Счет N : (1)348315 [12:00:06]line ИНН: 02508201610067 [12:00:06]line Контрольно-Кассовый Чек [12:00:06]line ПРОДАЖА [12:00:06]line ТРК (МРК, ГНК) : 42 [12:00:06]line Товар: 2710124130 [12:00:06]line Аи-92-К-5 [12:00:06]line 15.440 * 64.80 [12:00:06]line = 1000.51 [12:00:06]line НДС 12% НСП 1% [12:00:06]line > о реализуемом товаре [12:00:06]line ОКРУГЛЕНИЕ: -0.51 [12:00:06]line ИТОГО: 1000.00 [12:00:06]line Внесено: 1000.00 [12:00:06]line СДАЧА: 0.00 [12:00:06]line НСП 1% : 8.85 [12:00:06]line НДС 12% : 106.25 [12:00:06]line Наличными: 1000.00 [12:00:06]line Безнал.: 0.00 [12:00:06]line Место: АЗС № 108 "Партнер Нефть" [12:00:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:00:06]line СНО: Общий режим [12:00:06]line Чек 89 16.04.2024 12:00 [12:00:06]line Смена: 118 ФФД: 1.0 [12:00:06]line ЗНМ: 0300000027 [12:00:06]line РНМ: 0000138879044617 [12:00:06]line Версия ККМ: 001 [12:00:06]line ФМ: 0000000000963154 [12:00:06]line ФД: 29815 [12:00:06]line ФПД: 112925623193432 [12:00:06]line 1/tax-web-control/client/api/v1/ticket?date=20240416T120006&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29815&fm=112925623193432&tin=02508201610067®Number=0000138879044617&sum=100000 [12:00:06]OFD Sender: Processing packet 29815 [packets to send 8, broken 7] [12:00:06]ProducePacketName [12:00:06]name=ofd_packets/00029815 [12:00:06]OFD Sender: To server: pG, [12:00:06]CommunicateWithHost lk.salyk.kg:30040 [12:00:06]written 0, free lines is 4095 [12:00:06]ConnectInit lk.salyk.kg [12:00:06]Connected sock=10 [12:00:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9D 07 07 01 75 BF 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 46 68 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 74 00 00 35 04 06 00 66 B4 8B A8 0F 58 C7 50 5C 31 B5 BF 63 5B [12:00:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 86 43 47 00 3A E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 74 00 00 F4 03 04 00 E4 12 1E 66 B6 04 01 00 00 56 5D AC FB 9B 15 9F 3D [12:00:06]CommunicateWithHost err = 0 [12:00:06]CheckOFDResponse [12:00:06]1017 (14) - 77093643461234 [12:00:06]1041 (16) - 0000000000963154 [12:00:06]1040 (4) - 29815 [12:00:06]1012 (4) - 16.04.2024 05:55 [12:00:06]1206 (1) - 0 [12:00:06]OFD Sender: Remove packet 29815 [12:00:06]ProducePacketName [12:00:06]name=ofd_packets/00029815 [12:00:06]NVStorageDeleteData [12:00:06]Write to MH i2c: 01 00 00 97 13 AA [12:00:06]Write i2c OK [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: 01 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: 01 07 00 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: 01 07 00 97 13 00 00 00 00 00 CC 0C 89 [12:00:06]RasterBufferAndPrint [12:00:06]line [12:00:06]line [12:00:06]line [12:00:06]line [12:00:06]line [12:00:06]written 0, free lines is 3283 [12:00:06]MH_Cut [12:00:06]Write to MH i2c: D1 01 00 9E 13 01 83 [12:00:06]Write i2c OK [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: D1 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: D1 01 00 [12:00:06]MH_I2C_Read... [12:00:06]Read from MH i2c: D1 01 00 9E 13 00 82 [12:00:06]Write to MH i2c: 01 00 00 9F 13 B2 [12:00:06]Write i2c OK [12:00:06]MH_I2C_Read... [12:00:07]OFD Sender: No OFD packet to send [12:00:07]*** Cut start [12:00:07]*** Partial cut [12:00:07]*** CUTSNS_PIN = 1 [12:00:07]*** CUTSNS_PIN = 0 [12:00:07]*** Brake cut motor [12:00:08]Read from MH i2c: 01 [12:00:08]MH_I2C_Read... [12:00:08]*** Stop cut motor [12:00:08]*** Cut end [12:00:08]Read from MH i2c: 01 07 00 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: 01 07 00 9F 13 00 00 00 00 00 FF 0F C7 [12:00:08]process_action close_receipt done [12:00:08]requested_data is exist [12:00:08]produce_requested_data [12:00:08]requested_item fm.sn is exist - process it [12:00:08]wFMCommunicate request_size=4 [12:00:08]MH_SAM_APDU [12:00:08]CAPDU: 80 11 00 00 [12:00:08]Write to MH i2c: E2 08 00 A0 13 80 11 00 00 00 00 00 00 2D [12:00:08]Write i2c OK [12:00:08]MH_I2C_Read... [12:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:08]Read from MH i2c: E2 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: E2 17 00 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: E2 17 00 A0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7C [12:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:00:08]wFMCommunicate OK [12:00:08]requested_item fd.num is exist - process it [12:00:08]SAM_PROTO_GetFieldsCounters [12:00:08]wFMCommunicate request_size=4 [12:00:08]MH_SAM_APDU [12:00:08]CAPDU: 80 13 00 00 [12:00:08]Write to MH i2c: E2 08 00 A1 13 80 13 00 00 00 00 00 00 30 [12:00:08]Write i2c OK [12:00:08]MH_I2C_Read... [12:00:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:08]Read from MH i2c: E2 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: E2 62 00 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: E2 62 00 A1 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 77 74 00 00 0E 04 04 00 76 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 DA [12:00:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 77 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:08]wFMCommunicate OK [12:00:08]SAM_PROTO_GetFieldsCounters done [12:00:08]requested_item shift.num is exist - process it [12:00:08]requested_item shift.opened is exist - process it [12:00:08]req_shift_opened [12:00:08]FM_GetShiftState [12:00:08]SAM_PROTO_GetShiftState [12:00:08]wFMCommunicate request_size=4 [12:00:08]MH_SAM_APDU [12:00:08]CAPDU: 80 13 01 00 [12:00:08]Write to MH i2c: E2 08 00 A2 13 80 13 01 00 00 00 00 00 32 [12:00:08]Write i2c OK [12:00:08]MH_I2C_Read... [12:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:08]Read from MH i2c: E2 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: E2 0E 00 [12:00:08]MH_I2C_Read... [12:00:08]Read from MH i2c: E2 0E 00 A2 13 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 E0 [12:00:08]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:00:08]wFMCommunicate OK [12:00:08]SAM_PROTO_GetShiftState done [12:00:08]FM_GetShiftState done [12:00:08]req_shift_opened done [12:00:08]requested_item shift.open_date is exist - process it [12:00:08]req_shift_open_date [12:00:08]req_shift_open_date done [12:00:08]produce_requested_data done [12:00:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29815,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [12:00:08]process_action_free close_receipt [12:00:08]json_value_free [12:00:08]json_value_free done [12:00:08]process_json_proto returns [12:00:08]Send response to host [12:00:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29815,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [12:00:08]free response buf [12:00:08]execute_script done [12:00:08]execute_script returns [12:00:08]free content buf [12:00:08]Sock 9.Close socket [12:00:08]Sock 9.Thread stoped [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:51]accept exits with 7 [12:03:51]New connection [12:03:51]New thread 3067133284 created [12:03:51]Thread 3067276644 joined [12:03:51]Waiting for new connection... [12:03:51] Sock 7.Parse request [12:03:51]Sock 7.Check first char [12:03:51]Sock 7.First char is OK [12:03:51]request: POST /json_proto HTTP/1.0 [12:03:51]Method: POST [12:03:51]URL: /json_proto [12:03:51]Method is POST - this is cgi request [12:03:51]url: /json_proto [12:03:51]query_string will be loaded in cgi processing [12:03:51]execute_cgi json_proto POST (null) [12:03:51]execute_cgi path=json_proto method=POST [12:03:51]POST find Content-Length [12:03:51]Host: 172.17.33.3:8080 [12:03:51]Content-Length: 678 [12:03:51]Content-Type: application/json [12:03:51] [12:03:51]POST finish read [12:03:51]Found Content-Length = 678 [12:03:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:51]execute_script... [12:03:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.040, "sum" : 650.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:51]POST & json_proto [12:03:51]process_json_proto [12:03:51]json parsed OK: [12:03:51]protocol is kg_v1.0 [12:03:51]action value=close_receipt [12:03:51]process_action close_receipt [12:03:51]cmd_close_receipt [12:03:51]MH_GetDate [12:03:51]Write to MH i2c: F0 00 00 A3 13 A5 [12:03:51]Write i2c OK [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: F0 [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: F0 09 00 [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: F0 09 00 A3 13 00 29 69 1E 66 23 5B 8F 65 36 [12:03:51]GetLastDocTimeStamp 1713268806 [12:03:51]current date 1713269033 [12:03:51]FM_GetShiftState [12:03:51]SAM_PROTO_GetShiftState [12:03:51]wFMCommunicate request_size=4 [12:03:51]MH_SAM_APDU [12:03:51]CAPDU: 80 13 01 00 [12:03:51]Write to MH i2c: E2 08 00 A4 13 80 13 01 00 00 00 00 00 34 [12:03:51]Write i2c OK [12:03:51]MH_I2C_Read... [12:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:51]Read from MH i2c: E2 [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: E2 0E 00 [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: E2 0E 00 A4 13 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 E2 [12:03:51]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:03:51]wFMCommunicate OK [12:03:51]SAM_PROTO_GetShiftState done [12:03:51]FM_GetShiftState done [12:03:51]opened in 1713226843 [12:03:51]opened+sec_in_day 1713313243 [12:03:51]quantity*price = 65059 [12:03:51]sum+1 = 65060 [12:03:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.09 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 90 16.04.2024 12:03 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29816 ФПД: 217710265196252 1/tax-web-control/client/api/v1/ticket?date=20240416T120353&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29816&fm=217710265196252&tin=02508201610067®Number=0000138879044617&sum=65000 [12:03:52]StoreToDocumentArchive [12:03:52]shift 118 fd 29816 [12:03:52]save to /storage/0118/doc_00029816 [12:03:52]save last doc name /storage/0118/doc_00029816 to /storage/kkm_last_doc_name [12:03:52]save OK [12:03:52]Clear old archive folders... [12:03:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:52]tlvbuf is 002126F0 [12:03:52]SAM_PROTO_ClearQueue [12:03:52]wFMCommunicate request_size=4 [12:03:52]MH_SAM_APDU [12:03:52]CAPDU: 80 09 00 00 [12:03:52]Write to MH i2c: E2 08 00 B1 13 80 09 00 00 00 00 00 00 36 [12:03:52]Write i2c OK [12:03:52]MH_I2C_Read... [12:03:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:52]Read from MH i2c: E2 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 B1 13 00 90 00 38 [12:03:52]RAPDU: 90 00 [12:03:52]wFMCommunicate OK [12:03:52]SAM_PROTO_ClearQueue done [12:03:52]KKMCreateOFDPacket [12:03:52]OFDProtocolAddRootSTLVToBuf [12:03:52]FM_MakeSignedData [12:03:52]FM_MakeSignedData [12:03:52]SAM_PROTO_SignData [12:03:52]wFMCommunicate request_size=4 [12:03:52]MH_SAM_APDU [12:03:52]CAPDU: 80 0D 01 02 [12:03:52]Write to MH i2c: E2 08 00 B2 13 80 0D 01 02 00 00 00 00 3E [12:03:52]Write i2c OK [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 [12:03:52]MH_I2C_Read... [12:03:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:52]Read from MH i2c: E2 03 00 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 B2 13 00 90 00 39 [12:03:52]RAPDU: 90 00 [12:03:52]wFMCommunicate OK [12:03:52]wFMCommunicate request_size=255 [12:03:52]MH_SAM_APDU [12:03:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 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 29 69 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 74 00 00 35 04 06 00 C6 [12:03:52]Write to MH i2c: E2 02 01 B3 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 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 29 69 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 74 00 00 35 04 06 00 C6 00 00 09 [12:03:52]Write i2c OK [12:03:52]MH_I2C_Read... [12:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:52]Read from MH i2c: E2 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 B3 13 00 90 00 3A [12:03:52]RAPDU: 90 00 [12:03:52]wFMCommunicate OK [12:03:52]wFMCommunicate request_size=10 [12:03:52]MH_SAM_APDU [12:03:52]CAPDU: 80 0D 02 02 05 01 9F 05 5E DC [12:03:52]Write to MH i2c: E2 0D 00 B4 13 80 0D 02 02 05 00 01 9F 05 5E DC 00 00 2A [12:03:52]Write i2c OK [12:03:52]MH_I2C_Read... [12:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:52]Read from MH i2c: E2 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 B4 13 00 90 00 3B [12:03:52]RAPDU: 90 00 [12:03:52]wFMCommunicate OK [12:03:52]wFMCommunicate request_size=4 [12:03:52]MH_SAM_APDU [12:03:52]CAPDU: 80 0D 03 02 [12:03:52]Write to MH i2c: E2 08 00 B5 13 80 0D 03 02 00 00 00 00 43 [12:03:52]Write i2c OK [12:03:52]MH_I2C_Read... [12:03:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:53]Read from MH i2c: E2 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: E2 0B 00 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: E2 0B 00 B5 13 00 02 73 04 72 91 AB 59 B8 90 00 7C [12:03:53]RAPDU: 02 73 04 72 91 AB 59 B8 90 00 [12:03:53]wFMCommunicate OK [12:03:53]SAM_PROTO_SignData done [12:03:53]FM_MakeSignedData done [12:03:53]CreateOFDProtocolMessage [12:03:53]wFMCommunicate request_size=4 [12:03:53]MH_SAM_APDU [12:03:53]CAPDU: 80 11 00 00 [12:03:53]Write to MH i2c: E2 08 00 B6 13 80 11 00 00 00 00 00 00 43 [12:03:53]Write i2c OK [12:03:53]MH_I2C_Read... [12:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:53]Read from MH i2c: E2 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: E2 17 00 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: E2 17 00 B6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 92 [12:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:03:53]wFMCommunicate OK [12:03:53]CreateOFDProtocolMessage done [12:03:53]OFDSenderStorePacket 29816 [12:03:53]StoreOFDPacket docnum=29816 [12:03:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 51 9D 07 01 3E 0D 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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 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 29 69 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 74 00 00 35 04 06 00 C6 01 9F 05 5E DC 02 73 04 72 91 AB 59 B8 [12:03:53]CheckFolder [12:03:53]dirname=/storage/ofd_packets [12:03:53]CheckFolder done [12:03:53]ProducePacketName [12:03:53]name=ofd_packets/00029816 [12:03:53]NVStorageSaveData ofd_packets/00029816 [12:03:53]File name is /storage/ofd_packets/00029816 [12:03:53]Write 301 bytes [12:03:53]NVStorageSaveData done [12:03:53]OFDSenderStorePacket done [12:03:53]KKMCreateOFDPacket done [12:03:53]NVStorageSaveData kkm_last_timestamp [12:03:53]File name is /storage/kkm_last_timestamp [12:03:53]Write 4 bytes [12:03:53]NVStorageSaveData done [12:03:53]ExternCall_PrintAddStr [12:03:53]wPrintStart [12:03:53]Write to MH i2c: 01 00 00 B7 13 CA [12:03:53]Write i2c OK [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: 01 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: 01 07 00 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: 01 07 00 B7 13 00 00 00 00 00 FF 0F DF [12:03:53]RasterBufferAndPrint [12:03:53]line Счет N : (1)348316 [12:03:53]line ИНН: 02508201610067 [12:03:53]line Контрольно-Кассовый Чек [12:03:53]line ПРОДАЖА [12:03:53]line ТРК (МРК, ГНК) : 32 [12:03:53]line Товар: 2710124130 [12:03:53]line Аи-92-К-5 [12:03:53]line 10.040 * 64.80 [12:03:53]line = 650.59 [12:03:53]line НДС 12% НСП 1% [12:03:53]line > о реализуемом товаре [12:03:53]line ОКРУГЛЕНИЕ: -0.59 [12:03:53]line ИТОГО: 650.00 [12:03:53]line Внесено: 650.00 [12:03:53]line СДАЧА: 0.00 [12:03:53]line НСП 1% : 5.76 [12:03:53]line НДС 12% : 69.09 [12:03:53]line Наличными: 650.00 [12:03:53]line Безнал.: 0.00 [12:03:53]line Место: АЗС № 108 "Партнер Нефть" [12:03:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:03:53]line СНО: Общий режим [12:03:53]line Чек 90 16.04.2024 12:03 [12:03:53]line Смена: 118 ФФД: 1.0 [12:03:53]line ЗНМ: 0300000027 [12:03:53]line РНМ: 0000138879044617 [12:03:53]line Версия ККМ: 001 [12:03:53]line ФМ: 0000000000963154 [12:03:53]line ФД: 29816 [12:03:53]line ФПД: 217710265196252 [12:03:53]line 1/tax-web-control/client/api/v1/ticket?date=20240416T120353&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29816&fm=217710265196252&tin=02508201610067®Number=0000138879044617&sum=65000 [12:03:53]OFD Sender: Processing packet 29816 [packets to send 8, broken 7] [12:03:53]ProducePacketName [12:03:53]name=ofd_packets/00029816 [12:03:53]OFD Sender: To server: pG, [12:03:53]CommunicateWithHost lk.salyk.kg:30040 [12:03:53]ConnectInit lk.salyk.kg [12:03:53]written 0, free lines is 4095 [12:03:53]Connected sock=10 [12:03:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 51 9D 07 01 3E 0D 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 38 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 23 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 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 29 69 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 74 00 00 35 04 06 00 C6 01 9F 05 5E DC 02 73 04 72 91 AB 59 B8 [12:03:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 93 4B 47 00 33 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 36 33 31 35 34 10 04 04 00 78 74 00 00 F4 03 04 00 C7 13 1E 66 B6 04 01 00 00 29 63 AA FB 74 1F F5 F9 [12:03:53]CommunicateWithHost err = 0 [12:03:53]CheckOFDResponse [12:03:53]1017 (14) - 77093643461234 [12:03:53]1041 (16) - 0000000000963154 [12:03:53]1040 (4) - 29816 [12:03:53]1012 (4) - 16.04.2024 05:59 [12:03:53]1206 (1) - 0 [12:03:53]OFD Sender: Remove packet 29816 [12:03:53]ProducePacketName [12:03:53]name=ofd_packets/00029816 [12:03:53]NVStorageDeleteData [12:03:53]Write to MH i2c: 01 00 00 E1 13 F4 [12:03:53]Write i2c OK [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: 01 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: 01 07 00 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: 01 07 00 E1 13 00 00 00 00 00 D2 0C D9 [12:03:53]RasterBufferAndPrint [12:03:53]line [12:03:53]line [12:03:53]line [12:03:53]line [12:03:53]line [12:03:53]written 0, free lines is 3289 [12:03:53]MH_Cut [12:03:53]Write to MH i2c: D1 01 00 E8 13 01 CD [12:03:53]Write i2c OK [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: D1 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: D1 01 00 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: D1 01 00 E8 13 00 CC [12:03:53]Write to MH i2c: 01 00 00 E9 13 FC [12:03:53]Write i2c OK [12:03:53]MH_I2C_Read... [12:03:54]OFD Sender: No OFD packet to send [12:03:54]*** Cut start [12:03:54]*** Partial cut [12:03:54]*** CUTSNS_PIN = 1 [12:03:54]*** CUTSNS_PIN = 0 [12:03:54]*** Brake cut motor [12:03:55]Read from MH i2c: 01 [12:03:55]MH_I2C_Read... [12:03:55]*** Stop cut motor [12:03:55]*** Cut end [12:03:55]Read from MH i2c: 01 07 00 [12:03:55]MH_I2C_Read... [12:03:55]Read from MH i2c: 01 07 00 E9 13 00 00 00 00 00 FF 0F 11 [12:03:55]process_action close_receipt done [12:03:55]requested_data is exist [12:03:55]produce_requested_data [12:03:55]requested_item fm.sn is exist - process it [12:03:55]wFMCommunicate request_size=4 [12:03:55]MH_SAM_APDU [12:03:55]CAPDU: 80 11 00 00 [12:03:55]Write to MH i2c: E2 08 00 EA 13 80 11 00 00 00 00 00 00 77 [12:03:55]Write i2c OK [12:03:55]MH_I2C_Read... [12:03:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:55]Read from MH i2c: E2 [12:03:55]MH_I2C_Read... [12:03:55]Read from MH i2c: E2 17 00 [12:03:55]MH_I2C_Read... [12:03:55]Read from MH i2c: E2 17 00 EA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C6 [12:03:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:03:55]wFMCommunicate OK [12:03:55]requested_item fd.num is exist - process it [12:03:55]SAM_PROTO_GetFieldsCounters [12:03:55]wFMCommunicate request_size=4 [12:03:55]MH_SAM_APDU [12:03:55]CAPDU: 80 13 00 00 [12:03:55]Write to MH i2c: E2 08 00 EB 13 80 13 00 00 00 00 00 00 7A [12:03:55]Write i2c OK [12:03:55]MH_I2C_Read... [12:03:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:55]Read from MH i2c: E2 [12:03:55]MH_I2C_Read... [12:03:55]Read from MH i2c: E2 62 00 [12:03:55]MH_I2C_Read... [12:03:55]Read from MH i2c: E2 62 00 EB 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 78 74 00 00 0E 04 04 00 76 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 28 [12:03:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 78 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:55]wFMCommunicate OK [12:03:55]SAM_PROTO_GetFieldsCounters done [12:03:55]requested_item shift.num is exist - process it [12:03:55]requested_item shift.opened is exist - process it [12:03:55]req_shift_opened [12:03:55]FM_GetShiftState [12:03:55]SAM_PROTO_GetShiftState [12:03:55]wFMCommunicate request_size=4 [12:03:55]MH_SAM_APDU [12:03:55]CAPDU: 80 13 01 00 [12:03:55]Write to MH i2c: E2 08 00 EC 13 80 13 01 00 00 00 00 00 7C [12:03:55]Write i2c OK [12:03:55]MH_I2C_Read... [12:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:55]Read from MH i2c: E2 [12:03:55]MH_I2C_Read... [12:03:55]Read from MH i2c: E2 0E 00 [12:03:55]MH_I2C_Read... [12:03:55]Read from MH i2c: E2 0E 00 EC 13 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 2A [12:03:55]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:03:55]wFMCommunicate OK [12:03:55]SAM_PROTO_GetShiftState done [12:03:55]FM_GetShiftState done [12:03:55]req_shift_opened done [12:03:55]requested_item shift.open_date is exist - process it [12:03:55]req_shift_open_date [12:03:55]req_shift_open_date done [12:03:55]produce_requested_data done [12:03:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29816,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [12:03:55]process_action_free close_receipt [12:03:55]json_value_free [12:03:55]json_value_free done [12:03:55]process_json_proto returns [12:03:55]Send response to host [12:03:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29816,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [12:03:55]free response buf [12:03:55]execute_script done [12:03:55]execute_script returns [12:03:55]free content buf [12:03:55]Sock 7.Close socket [12:03:55]Sock 7.Thread stoped [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10:54]OFD Sender: No OFD packet to send [12:10:59]OFD Sender: No OFD packet to send [12:11:04]OFD Sender: No OFD packet to send [12:11:09]OFD Sender: No OFD packet to send [12:11:14]OFD Sender: No OFD packet to send [12:11:19]OFD Sender: No OFD packet to send [12:11:24]OFD Sender: No OFD packet to send [12:11:29]OFD Sender: No OFD packet to send [12:11:34]OFD Sender: No OFD packet to send [12:11:39]OFD Sender: No OFD packet to send [12:11:44]OFD Sender: No OFD packet to send [12:11:47]accept exits with 9 [12:11:47]New connection [12:11:47]New thread 3067276644 created [12:11:47]Thread 3067133284 joined [12:11:47]Waiting for new connection... [12:11:47] Sock 9.Parse request [12:11:47]Sock 9.Check first char [12:11:47]Sock 9.First char is OK [12:11:47]request: POST /json_proto HTTP/1.0 [12:11:47]Method: POST [12:11:47]URL: /json_proto [12:11:47]Method is POST - this is cgi request [12:11:47]url: /json_proto [12:11:47]query_string will be loaded in cgi processing [12:11:47]execute_cgi json_proto POST (null) [12:11:47]execute_cgi path=json_proto method=POST [12:11:47]POST find Content-Length [12:11:47]Host: 172.17.33.3:8080 [12:11:47]Content-Length: 670 [12:11:47]Content-Type: application/json [12:11:47] [12:11:47]POST finish read [12:11:47]Found Content-Length = 670 [12:11:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:47]execute_script... [12:11:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:47]POST & json_proto [12:11:47]process_json_proto [12:11:47]json parsed OK: [12:11:47]protocol is kg_v1.0 [12:11:47]action value=close_receipt [12:11:47]process_action close_receipt [12:11:47]cmd_close_receipt [12:11:47]MH_GetDate [12:11:47]Write to MH i2c: F0 00 00 ED 13 EF [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: F0 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: F0 09 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: F0 09 00 ED 13 00 05 6B 1E 66 23 5B 8F 65 5E [12:11:47]GetLastDocTimeStamp 1713269033 [12:11:47]current date 1713269509 [12:11:47]FM_GetShiftState [12:11:47]SAM_PROTO_GetShiftState [12:11:47]wFMCommunicate request_size=4 [12:11:47]MH_SAM_APDU [12:11:47]CAPDU: 80 13 01 00 [12:11:47]Write to MH i2c: E2 08 00 EE 13 80 13 01 00 00 00 00 00 7E [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:47]Read from MH i2c: E2 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 0E 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 0E 00 EE 13 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 2C [12:11:47]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:11:47]wFMCommunicate OK [12:11:47]SAM_PROTO_GetShiftState done [12:11:47]FM_GetShiftState done [12:11:47]opened in 1713226843 [12:11:47]opened+sec_in_day 1713313243 [12:11:47]quantity*price = 30004 [12:11:47]sum+1 = 30006 [12:11:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 91 16.04.2024 12:11 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29817 ФПД: 256288196487745 1/tax-web-control/client/api/v1/ticket?date=20240416T121149&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29817&fm=256288196487745&tin=02508201610067®Number=0000138879044617&sum=30000 [12:11:48]StoreToDocumentArchive [12:11:48]shift 118 fd 29817 [12:11:48]save to /storage/0118/doc_00029817 [12:11:48]save last doc name /storage/0118/doc_00029817 to /storage/kkm_last_doc_name [12:11:48]save OK [12:11:48]Clear old archive folders... [12:11:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:11:48]tlvbuf is 0018D690 [12:11:48]SAM_PROTO_ClearQueue [12:11:48]wFMCommunicate request_size=4 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 09 00 00 [12:11:48]Write to MH i2c: E2 08 00 FB 13 80 09 00 00 00 00 00 00 80 [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 03 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 03 00 FB 13 00 90 00 82 [12:11:48]RAPDU: 90 00 [12:11:48]wFMCommunicate OK [12:11:48]SAM_PROTO_ClearQueue done [12:11:48]KKMCreateOFDPacket [12:11:48]OFDProtocolAddRootSTLVToBuf [12:11:48]FM_MakeSignedData [12:11:48]FM_MakeSignedData [12:11:48]SAM_PROTO_SignData [12:11:48]wFMCommunicate request_size=4 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 0D 01 02 [12:11:48]Write to MH i2c: E2 08 00 FC 13 80 0D 01 02 00 00 00 00 88 [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 03 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 03 00 FC 13 00 90 00 83 [12:11:48]RAPDU: 90 00 [12:11:48]wFMCommunicate OK [12:11:48]wFMCommunicate request_size=255 [12:11:48]MH_SAM_APDU [12:11:48]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 05 6B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 74 00 00 35 04 06 00 [12:11:48]Write to MH i2c: E2 02 01 FD 13 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 05 6B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 74 00 00 35 04 06 00 00 00 35 [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 03 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 03 00 FD 13 00 90 00 84 [12:11:48]RAPDU: 90 00 [12:11:48]wFMCommunicate OK [12:11:48]wFMCommunicate request_size=11 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 0D 02 02 06 E9 17 BE E9 6A 41 [12:11:48]Write to MH i2c: E2 0E 00 FE 13 80 0D 02 02 06 00 E9 17 BE E9 6A 41 00 00 E9 [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:49]Read from MH i2c: E2 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: E2 03 00 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: E2 03 00 FE 13 00 90 00 85 [12:11:49]RAPDU: 90 00 [12:11:49]wFMCommunicate OK [12:11:49]wFMCommunicate request_size=4 [12:11:49]MH_SAM_APDU [12:11:49]CAPDU: 80 0D 03 02 [12:11:49]Write to MH i2c: E2 08 00 FF 13 80 0D 03 02 00 00 00 00 8D [12:11:49]Write i2c OK [12:11:49]MH_I2C_Read... [12:11:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:49]Read from MH i2c: E2 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: E2 0B 00 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: E2 0B 00 FF 13 00 FD D2 C0 51 DB B7 77 42 90 00 B9 [12:11:49]RAPDU: FD D2 C0 51 DB B7 77 42 90 00 [12:11:49]wFMCommunicate OK [12:11:49]SAM_PROTO_SignData done [12:11:49]FM_MakeSignedData done [12:11:49]CreateOFDProtocolMessage [12:11:49]wFMCommunicate request_size=4 [12:11:49]MH_SAM_APDU [12:11:49]CAPDU: 80 11 00 00 [12:11:49]Write to MH i2c: E2 08 00 00 14 80 11 00 00 00 00 00 00 8E [12:11:49]Write i2c OK [12:11:49]MH_I2C_Read... [12:11:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:49]Read from MH i2c: E2 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: E2 17 00 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: E2 17 00 00 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DD [12:11:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:11:49]wFMCommunicate OK [12:11:49]CreateOFDProtocolMessage done [12:11:49]OFDSenderStorePacket 29817 [12:11:49]StoreOFDPacket docnum=29817 [12:11:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 8D 5E 08 01 61 58 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 05 6B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 74 00 00 35 04 06 00 E9 17 BE E9 6A 41 FD D2 C0 51 DB B7 77 42 [12:11:49]CheckFolder [12:11:49]dirname=/storage/ofd_packets [12:11:49]CheckFolder done [12:11:49]ProducePacketName [12:11:49]name=ofd_packets/00029817 [12:11:49]NVStorageSaveData ofd_packets/00029817 [12:11:49]File name is /storage/ofd_packets/00029817 [12:11:49]Write 302 bytes [12:11:49]NVStorageSaveData done [12:11:49]OFDSenderStorePacket done [12:11:49]KKMCreateOFDPacket done [12:11:49]NVStorageSaveData kkm_last_timestamp [12:11:49]File name is /storage/kkm_last_timestamp [12:11:49]Write 4 bytes [12:11:49]NVStorageSaveData done [12:11:49]ExternCall_PrintAddStr [12:11:49]wPrintStart [12:11:49]Write to MH i2c: 01 00 00 01 14 15 [12:11:49]Write i2c OK [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: 01 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: 01 07 00 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: 01 07 00 01 14 00 00 00 00 00 FF 0F 2A [12:11:49]RasterBufferAndPrint [12:11:49]line Счет N : (1)348318 [12:11:49]line ИНН: 02508201610067 [12:11:49]line Контрольно-Кассовый Чек [12:11:49]line ПРОДАЖА [12:11:49]line ТРК (МРК, ГНК) : 41 [12:11:49]line Товар: 2710124130 [12:11:49]line SUPER-92-К-5 [12:11:49]line 4.560 * 65.80 [12:11:49]line = 300.05 [12:11:49]line НДС 12% НСП 1% [12:11:49]line > о реализуемом товаре [12:11:49]line ОКРУГЛЕНИЕ: -0.05 [12:11:49]line ИТОГО: 300.00 [12:11:49]line Внесено: 300.00 [12:11:49]line СДАЧА: 0.00 [12:11:49]line НСП 1% : 2.65 [12:11:49]line НДС 12% : 31.86 [12:11:49]line Наличными: 300.00 [12:11:49]line Безнал.: 0.00 [12:11:49]line Место: АЗС № 108 "Партнер Нефть" [12:11:49]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:11:49]line СНО: Общий режим [12:11:49]line Чек 91 16.04.2024 12:11 [12:11:49]line Смена: 118 ФФД: 1.0 [12:11:49]line ЗНМ: 0300000027 [12:11:49]line РНМ: 0000138879044617 [12:11:49]line Версия ККМ: 001 [12:11:49]line ФМ: 0000000000963154 [12:11:49]line ФД: 29817 [12:11:49]line ФПД: 256288196487745 [12:11:49]line 1/tax-web-control/client/api/v1/ticket?date=20240416T121149&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29817&fm=256288196487745&tin=02508201610067®Number=0000138879044617&sum=30000 [12:11:49]OFD Sender: Processing packet 29817 [packets to send 8, broken 7] [12:11:49]ProducePacketName [12:11:49]name=ofd_packets/00029817 [12:11:49]OFD Sender: To server: pG, [12:11:49]CommunicateWithHost lk.salyk.kg:30040 [12:11:49]ConnectInit lk.salyk.kg [12:11:49]written 0, free lines is 4095 [12:11:49]Connected sock=10 [12:11:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 8D 5E 08 01 61 58 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 05 6B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 74 00 00 35 04 06 00 E9 17 BE E9 6A 41 FD D2 C0 51 DB B7 77 42 [12:11:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 87 35 47 00 6E 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 36 33 31 35 34 10 04 04 00 79 74 00 00 F4 03 04 00 A3 15 1E 66 B6 04 01 00 00 BE 1E D8 11 FB C6 CD 94 [12:11:49]CommunicateWithHost err = 0 [12:11:49]CheckOFDResponse [12:11:49]1017 (14) - 77093643461234 [12:11:49]1041 (16) - 0000000000963154 [12:11:49]1040 (4) - 29817 [12:11:49]1012 (4) - 16.04.2024 06:07 [12:11:49]1206 (1) - 0 [12:11:49]OFD Sender: Remove packet 29817 [12:11:49]ProducePacketName [12:11:49]name=ofd_packets/00029817 [12:11:49]NVStorageDeleteData [12:11:49]Write to MH i2c: 01 00 00 2B 14 3F [12:11:49]Write i2c OK [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: 01 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: 01 07 00 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: 01 07 00 2B 14 00 00 00 00 00 CC 0C 1E [12:11:49]RasterBufferAndPrint [12:11:49]line [12:11:49]line [12:11:49]line [12:11:49]line [12:11:49]line [12:11:49]written 0, free lines is 3282 [12:11:49]MH_Cut [12:11:49]Write to MH i2c: D1 01 00 32 14 01 18 [12:11:49]Write i2c OK [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: D1 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: D1 01 00 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: D1 01 00 32 14 00 17 [12:11:49]Write to MH i2c: 01 00 00 33 14 47 [12:11:49]Write i2c OK [12:11:49]MH_I2C_Read... [12:11:50]OFD Sender: No OFD packet to send [12:11:50]*** Cut start [12:11:50]*** Partial cut [12:11:50]*** CUTSNS_PIN = 1 [12:11:50]*** CUTSNS_PIN = 0 [12:11:50]*** Brake cut motor [12:11:51]Read from MH i2c: 01 [12:11:51]MH_I2C_Read... [12:11:51]*** Stop cut motor [12:11:51]*** Cut end [12:11:51]Read from MH i2c: 01 07 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: 01 07 00 33 14 00 00 00 00 00 FF 0F 5C [12:11:51]process_action close_receipt done [12:11:51]requested_data is exist [12:11:51]produce_requested_data [12:11:51]requested_item fm.sn is exist - process it [12:11:51]wFMCommunicate request_size=4 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 11 00 00 [12:11:51]Write to MH i2c: E2 08 00 34 14 80 11 00 00 00 00 00 00 C2 [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 17 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 17 00 34 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 11 [12:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:11:51]wFMCommunicate OK [12:11:51]requested_item fd.num is exist - process it [12:11:51]SAM_PROTO_GetFieldsCounters [12:11:51]wFMCommunicate request_size=4 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 13 00 00 [12:11:51]Write to MH i2c: E2 08 00 35 14 80 13 00 00 00 00 00 00 C5 [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 62 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 62 00 35 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 79 74 00 00 0E 04 04 00 76 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 77 [12:11:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 79 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:51]wFMCommunicate OK [12:11:51]SAM_PROTO_GetFieldsCounters done [12:11:51]requested_item shift.num is exist - process it [12:11:51]requested_item shift.opened is exist - process it [12:11:51]req_shift_opened [12:11:51]FM_GetShiftState [12:11:51]SAM_PROTO_GetShiftState [12:11:51]wFMCommunicate request_size=4 [12:11:51]MH_SAM_APDU [12:11:51]CAPDU: 80 13 01 00 [12:11:51]Write to MH i2c: E2 08 00 36 14 80 13 01 00 00 00 00 00 C7 [12:11:51]Write i2c OK [12:11:51]MH_I2C_Read... [12:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:51]Read from MH i2c: E2 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 0E 00 [12:11:51]MH_I2C_Read... [12:11:51]Read from MH i2c: E2 0E 00 36 14 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 75 [12:11:51]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:11:51]wFMCommunicate OK [12:11:51]SAM_PROTO_GetShiftState done [12:11:51]FM_GetShiftState done [12:11:51]req_shift_opened done [12:11:51]requested_item shift.open_date is exist - process it [12:11:51]req_shift_open_date [12:11:51]req_shift_open_date done [12:11:51]produce_requested_data done [12:11:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29817,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [12:11:51]process_action_free close_receipt [12:11:51]json_value_free [12:11:51]json_value_free done [12:11:51]process_json_proto returns [12:11:51]Send response to host [12:11:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29817,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [12:11:51]free response buf [12:11:51]execute_script done [12:11:51]execute_script returns [12:11:51]free content buf [12:11:51]Sock 9.Close socket [12:11:51]Sock 9.Thread stoped [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:42]accept exits with 7 [12:12:42]New connection [12:12:42]New thread 3067133284 created [12:12:42]Thread 3067276644 joined [12:12:42]Waiting for new connection... [12:12:42] Sock 7.Parse request [12:12:42]Sock 7.Check first char [12:12:42]Sock 7.First char is OK [12:12:42]request: POST /json_proto HTTP/1.0 [12:12:42]Method: POST [12:12:42]URL: /json_proto [12:12:42]Method is POST - this is cgi request [12:12:42]url: /json_proto [12:12:42]query_string will be loaded in cgi processing [12:12:42]execute_cgi json_proto POST (null) [12:12:42]execute_cgi path=json_proto method=POST [12:12:42]POST find Content-Length [12:12:42]Host: 172.17.33.3:8080 [12:12:42]Content-Length: 677 [12:12:42]Content-Type: application/json [12:12:42] [12:12:42]POST finish read [12:12:42]Found Content-Length = 677 [12:12:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:42]execute_script... [12:12:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:42]POST & json_proto [12:12:42]process_json_proto [12:12:42]json parsed OK: [12:12:42]protocol is kg_v1.0 [12:12:42]action value=close_receipt [12:12:42]process_action close_receipt [12:12:42]cmd_close_receipt [12:12:42]MH_GetDate [12:12:42]Write to MH i2c: F0 00 00 37 14 3A [12:12:42]Write i2c OK [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: F0 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: F0 09 00 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: F0 09 00 37 14 00 3B 6B 1E 66 23 5B 8F 65 DF [12:12:42]GetLastDocTimeStamp 1713269509 [12:12:42]current date 1713269563 [12:12:42]FM_GetShiftState [12:12:42]SAM_PROTO_GetShiftState [12:12:42]wFMCommunicate request_size=4 [12:12:42]MH_SAM_APDU [12:12:42]CAPDU: 80 13 01 00 [12:12:42]Write to MH i2c: E2 08 00 38 14 80 13 01 00 00 00 00 00 C9 [12:12:42]Write i2c OK [12:12:42]MH_I2C_Read... [12:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:42]Read from MH i2c: E2 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: E2 0E 00 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: E2 0E 00 38 14 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 77 [12:12:42]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:12:42]wFMCommunicate OK [12:12:42]SAM_PROTO_GetShiftState done [12:12:42]FM_GetShiftState done [12:12:42]opened in 1713226843 [12:12:42]opened+sec_in_day 1713313243 [12:12:42]quantity*price = 50009 [12:12:42]sum+1 = 50010 [12:12:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 92 16.04.2024 12:12 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29818 ФПД: 138616548772554 1/tax-web-control/client/api/v1/ticket?date=20240416T121243&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29818&fm=138616548772554&tin=02508201610067®Number=0000138879044617&sum=50000 [12:12:43]StoreToDocumentArchive [12:12:43]shift 118 fd 29818 [12:12:43]save to /storage/0118/doc_00029818 [12:12:43]save last doc name /storage/0118/doc_00029818 to /storage/kkm_last_doc_name [12:12:43]save OK [12:12:43]Clear old archive folders... [12:12:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:43]tlvbuf is 0016C440 [12:12:43]SAM_PROTO_ClearQueue [12:12:43]wFMCommunicate request_size=4 [12:12:43]MH_SAM_APDU [12:12:43]CAPDU: 80 09 00 00 [12:12:43]Write to MH i2c: E2 08 00 45 14 80 09 00 00 00 00 00 00 CB [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:43]Read from MH i2c: E2 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 45 14 00 90 00 CD [12:12:43]RAPDU: 90 00 [12:12:43]wFMCommunicate OK [12:12:43]SAM_PROTO_ClearQueue done [12:12:43]KKMCreateOFDPacket [12:12:43]OFDProtocolAddRootSTLVToBuf [12:12:43]FM_MakeSignedData [12:12:43]FM_MakeSignedData [12:12:43]SAM_PROTO_SignData [12:12:43]wFMCommunicate request_size=4 [12:12:43]MH_SAM_APDU [12:12:43]CAPDU: 80 0D 01 02 [12:12:43]Write to MH i2c: E2 08 00 46 14 80 0D 01 02 00 00 00 00 D3 [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:43]Read from MH i2c: E2 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 46 14 00 90 00 CE [12:12:43]RAPDU: 90 00 [12:12:43]wFMCommunicate OK [12:12:43]wFMCommunicate request_size=255 [12:12:43]MH_SAM_APDU [12:12:43]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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 5C 00 00 00 F4 03 04 00 3B 6B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 74 00 00 35 04 06 00 7E [12:12:43]Write to MH i2c: E2 02 01 47 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 5C 00 00 00 F4 03 04 00 3B 6B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 74 00 00 35 04 06 00 7E 00 00 B3 [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:43]Read from MH i2c: E2 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 47 14 00 90 00 CF [12:12:43]RAPDU: 90 00 [12:12:43]wFMCommunicate OK [12:12:43]wFMCommunicate request_size=10 [12:12:43]MH_SAM_APDU [12:12:43]CAPDU: 80 0D 02 02 05 12 2E 26 4A CA [12:12:43]Write to MH i2c: E2 0D 00 48 14 80 0D 02 02 05 00 12 2E 26 4A CA 00 00 5A [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:43]Read from MH i2c: E2 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 48 14 00 90 00 D0 [12:12:43]RAPDU: 90 00 [12:12:43]wFMCommunicate OK [12:12:43]wFMCommunicate request_size=4 [12:12:43]MH_SAM_APDU [12:12:43]CAPDU: 80 0D 03 02 [12:12:43]Write to MH i2c: E2 08 00 49 14 80 0D 03 02 00 00 00 00 D8 [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:43]Read from MH i2c: E2 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 0B 00 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 0B 00 49 14 00 23 E3 BA C0 FE 56 54 B4 90 00 B5 [12:12:43]RAPDU: 23 E3 BA C0 FE 56 54 B4 90 00 [12:12:43]wFMCommunicate OK [12:12:43]SAM_PROTO_SignData done [12:12:43]FM_MakeSignedData done [12:12:43]CreateOFDProtocolMessage [12:12:43]wFMCommunicate request_size=4 [12:12:43]MH_SAM_APDU [12:12:43]CAPDU: 80 11 00 00 [12:12:43]Write to MH i2c: E2 08 00 4A 14 80 11 00 00 00 00 00 00 D8 [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:43]Read from MH i2c: E2 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 17 00 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 17 00 4A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 27 [12:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:12:43]wFMCommunicate OK [12:12:43]CreateOFDProtocolMessage done [12:12:43]OFDSenderStorePacket 29818 [12:12:43]StoreOFDPacket docnum=29818 [12:12:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 76 10 07 01 0A 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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 5C 00 00 00 F4 03 04 00 3B 6B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 74 00 00 35 04 06 00 7E 12 2E 26 4A CA 23 E3 BA C0 FE 56 54 B4 [12:12:43]CheckFolder [12:12:43]dirname=/storage/ofd_packets [12:12:43]CheckFolder done [12:12:43]ProducePacketName [12:12:43]name=ofd_packets/00029818 [12:12:43]NVStorageSaveData ofd_packets/00029818 [12:12:43]File name is /storage/ofd_packets/00029818 [12:12:43]Write 301 bytes [12:12:43]NVStorageSaveData done [12:12:43]OFDSenderStorePacket done [12:12:43]KKMCreateOFDPacket done [12:12:43]NVStorageSaveData kkm_last_timestamp [12:12:43]File name is /storage/kkm_last_timestamp [12:12:43]Write 4 bytes [12:12:43]NVStorageSaveData done [12:12:43]ExternCall_PrintAddStr [12:12:43]wPrintStart [12:12:43]Write to MH i2c: 01 00 00 4B 14 5F [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: 01 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: 01 07 00 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: 01 07 00 4B 14 00 00 00 00 00 FF 0F 74 [12:12:43]RasterBufferAndPrint [12:12:43]line Счет N : (1)348319 [12:12:43]line ИНН: 02508201610067 [12:12:43]line Контрольно-Кассовый Чек [12:12:43]line ПРОДАЖА [12:12:43]line ТРК (МРК, ГНК) : 33 [12:12:43]line Товар: 2710124500 [12:12:43]line Аи-95-К-5 [12:12:43]line 6.860 * 72.90 [12:12:43]line = 500.09 [12:12:43]line НДС 12% НСП 1% [12:12:43]line > о реализуемом товаре [12:12:43]line ОКРУГЛЕНИЕ: -0.09 [12:12:43]line ИТОГО: 500.00 [12:12:43]line Внесено: 500.00 [12:12:43]line СДАЧА: 0.00 [12:12:43]line НСП 1% : 4.43 [12:12:43]line НДС 12% : 53.11 [12:12:43]line Наличными: 500.00 [12:12:43]line Безнал.: 0.00 [12:12:43]line Место: АЗС № 108 "Партнер Нефть" [12:12:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:12:43]line СНО: Общий режим [12:12:43]line Чек 92 16.04.2024 12:12 [12:12:43]line Смена: 118 ФФД: 1.0 [12:12:43]line ЗНМ: 0300000027 [12:12:43]line РНМ: 0000138879044617 [12:12:43]line Версия ККМ: 001 [12:12:43]line ФМ: 0000000000963154 [12:12:43]line ФД: 29818 [12:12:43]line ФПД: 138616548772554 [12:12:43]line 1/tax-web-control/client/api/v1/ticket?date=20240416T121243&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29818&fm=138616548772554&tin=02508201610067®Number=0000138879044617&sum=50000 [12:12:44]OFD Sender: Processing packet 29818 [packets to send 8, broken 7] [12:12:44]ProducePacketName [12:12:44]name=ofd_packets/00029818 [12:12:44]OFD Sender: To server: pG, [12:12:44]CommunicateWithHost lk.salyk.kg:30040 [12:12:44]ConnectInit lk.salyk.kg [12:12:44]written 0, free lines is 4095 [12:12:44]Connected sock=10 [12:12:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 76 10 07 01 0A 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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 5C 00 00 00 F4 03 04 00 3B 6B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 74 00 00 35 04 06 00 7E 12 2E 26 4A CA 23 E3 BA C0 FE 56 54 B4 [12:12:44]Write to MH i2c: 01 00 00 75 14 89 [12:12:44]Write i2c OK [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: 01 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: 01 07 00 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: 01 07 00 75 14 00 00 00 00 00 C4 0C 60 [12:12:44]RasterBufferAndPrint [12:12:44]line [12:12:44]line [12:12:44]line [12:12:44]line [12:12:44]line [12:12:44]written 0, free lines is 3274 [12:12:44]MH_Cut [12:12:44]Write to MH i2c: D1 01 00 7C 14 01 62 [12:12:44]Write i2c OK [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: D1 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: D1 01 00 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: D1 01 00 7C 14 00 61 [12:12:44]Write to MH i2c: 01 00 00 7D 14 91 [12:12:44]Write i2c OK [12:12:44]MH_I2C_Read... [12:12:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 49 94 47 00 5B 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 74 00 00 F4 03 04 00 DA 15 1E 66 B6 04 01 00 00 B3 B1 10 F2 4C D7 54 B8 [12:12:44]CommunicateWithHost err = 0 [12:12:44]CheckOFDResponse [12:12:44]1017 (14) - 77093643461234 [12:12:44]1041 (16) - 0000000000963154 [12:12:44]1040 (4) - 29818 [12:12:44]1012 (4) - 16.04.2024 06:08 [12:12:44]1206 (1) - 0 [12:12:44]OFD Sender: Remove packet 29818 [12:12:44]ProducePacketName [12:12:44]name=ofd_packets/00029818 [12:12:44]NVStorageDeleteData [12:12:45]OFD Sender: No OFD packet to send [12:12:45]*** Cut start [12:12:45]*** Partial cut [12:12:45]*** CUTSNS_PIN = 1 [12:12:45]*** CUTSNS_PIN = 0 [12:12:45]*** Brake cut motor [12:12:46]Read from MH i2c: 01 [12:12:46]MH_I2C_Read... [12:12:46]*** Stop cut motor [12:12:46]*** Cut end [12:12:46]Read from MH i2c: 01 07 00 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: 01 07 00 7D 14 00 00 00 00 00 FF 0F A6 [12:12:46]process_action close_receipt done [12:12:46]requested_data is exist [12:12:46]produce_requested_data [12:12:46]requested_item fm.sn is exist - process it [12:12:46]wFMCommunicate request_size=4 [12:12:46]MH_SAM_APDU [12:12:46]CAPDU: 80 11 00 00 [12:12:46]Write to MH i2c: E2 08 00 7E 14 80 11 00 00 00 00 00 00 0C [12:12:46]Write i2c OK [12:12:46]MH_I2C_Read... [12:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:46]Read from MH i2c: E2 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 17 00 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 17 00 7E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5B [12:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:12:46]wFMCommunicate OK [12:12:46]requested_item fd.num is exist - process it [12:12:46]SAM_PROTO_GetFieldsCounters [12:12:46]wFMCommunicate request_size=4 [12:12:46]MH_SAM_APDU [12:12:46]CAPDU: 80 13 00 00 [12:12:46]Write to MH i2c: E2 08 00 7F 14 80 13 00 00 00 00 00 00 0F [12:12:46]Write i2c OK [12:12:46]MH_I2C_Read... [12:12:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:46]Read from MH i2c: E2 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 62 00 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 62 00 7F 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7A 74 00 00 0E 04 04 00 76 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 C5 [12:12:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7A 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:46]wFMCommunicate OK [12:12:46]SAM_PROTO_GetFieldsCounters done [12:12:46]requested_item shift.num is exist - process it [12:12:46]requested_item shift.opened is exist - process it [12:12:46]req_shift_opened [12:12:46]FM_GetShiftState [12:12:46]SAM_PROTO_GetShiftState [12:12:46]wFMCommunicate request_size=4 [12:12:46]MH_SAM_APDU [12:12:46]CAPDU: 80 13 01 00 [12:12:46]Write to MH i2c: E2 08 00 80 14 80 13 01 00 00 00 00 00 11 [12:12:46]Write i2c OK [12:12:46]MH_I2C_Read... [12:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:46]Read from MH i2c: E2 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 0E 00 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 0E 00 80 14 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 BF [12:12:46]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:12:46]wFMCommunicate OK [12:12:46]SAM_PROTO_GetShiftState done [12:12:46]FM_GetShiftState done [12:12:46]req_shift_opened done [12:12:46]requested_item shift.open_date is exist - process it [12:12:46]req_shift_open_date [12:12:46]req_shift_open_date done [12:12:46]produce_requested_data done [12:12:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29818,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [12:12:46]process_action_free close_receipt [12:12:46]json_value_free [12:12:46]json_value_free done [12:12:46]process_json_proto returns [12:12:46]Send response to host [12:12:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29818,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [12:12:46]free response buf [12:12:46]execute_script done [12:12:46]execute_script returns [12:12:46]free content buf [12:12:46]Sock 7.Close socket [12:12:46]Sock 7.Thread stoped [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:30]OFD Sender: No OFD packet to send [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:45]OFD Sender: No OFD packet to send [12:19:50]OFD Sender: No OFD packet to send [12:19:55]OFD Sender: No OFD packet to send [12:20:00]OFD Sender: No OFD packet to send [12:20:05]OFD Sender: No OFD packet to send [12:20:10]OFD Sender: No OFD packet to send [12:20:15]OFD Sender: No OFD packet to send [12:20:20]OFD Sender: No OFD packet to send [12:20:25]OFD Sender: No OFD packet to send [12:20:30]OFD Sender: No OFD packet to send [12:20:35]OFD Sender: No OFD packet to send [12:20:40]OFD Sender: No OFD packet to send [12:20:45]OFD Sender: No OFD packet to send [12:20:50]OFD Sender: No OFD packet to send [12:20:55]OFD Sender: No OFD packet to send [12:21:00]OFD Sender: No OFD packet to send [12:21:05]OFD Sender: No OFD packet to send [12:21:10]OFD Sender: No OFD packet to send [12:21:15]OFD Sender: No OFD packet to send [12:21:20]OFD Sender: No OFD packet to send [12:21:25]OFD Sender: No OFD packet to send [12:21:30]OFD Sender: No OFD packet to send [12:21:35]OFD Sender: No OFD packet to send [12:21:40]OFD Sender: No OFD packet to send [12:21:45]OFD Sender: No OFD packet to send [12:21:50]OFD Sender: No OFD packet to send [12:21:55]OFD Sender: No OFD packet to send [12:22:00]OFD Sender: No OFD packet to send [12:22:05]OFD Sender: No OFD packet to send [12:22:10]OFD Sender: No OFD packet to send [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]OFD Sender: No OFD packet to send [12:23:34]accept exits with 9 [12:23:34]New connection [12:23:34]New thread 3067276644 created [12:23:34]Thread 3067133284 joined [12:23:34]Waiting for new connection... [12:23:34] Sock 9.Parse request [12:23:34]Sock 9.Check first char [12:23:34]Sock 9.First char is OK [12:23:34]request: POST /json_proto HTTP/1.0 [12:23:34]Method: POST [12:23:34]URL: /json_proto [12:23:34]Method is POST - this is cgi request [12:23:34]url: /json_proto [12:23:34]query_string will be loaded in cgi processing [12:23:34]execute_cgi json_proto POST (null) [12:23:34]execute_cgi path=json_proto method=POST [12:23:34]POST find Content-Length [12:23:34]Host: 172.17.33.3:8080 [12:23:34]Content-Length: 808 [12:23:34]Content-Type: application/json [12:23:34] [12:23:34]POST finish read [12:23:34]Found Content-Length = 808 [12:23:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 25.960, "sum" : 1892.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1892.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:34]execute_script... [12:23:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 25.960, "sum" : 1892.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1892.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:34]POST & json_proto [12:23:34]process_json_proto [12:23:34]json parsed OK: [12:23:34]protocol is kg_v1.0 [12:23:34]action value=close_receipt [12:23:34]process_action close_receipt [12:23:34]cmd_close_receipt [12:23:34]MH_GetDate [12:23:34]Write to MH i2c: F0 00 00 81 14 84 [12:23:34]Write i2c OK [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: F0 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: F0 09 00 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: F0 09 00 81 14 00 C8 6D 1E 66 23 5B 8F 65 B8 [12:23:34]GetLastDocTimeStamp 1713269563 [12:23:34]current date 1713270216 [12:23:34]FM_GetShiftState [12:23:34]SAM_PROTO_GetShiftState [12:23:34]wFMCommunicate request_size=4 [12:23:34]MH_SAM_APDU [12:23:34]CAPDU: 80 13 01 00 [12:23:34]Write to MH i2c: E2 08 00 82 14 80 13 01 00 00 00 00 00 13 [12:23:34]Write i2c OK [12:23:34]MH_I2C_Read... [12:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:34]Read from MH i2c: E2 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: E2 0E 00 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: E2 0E 00 82 14 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 C1 [12:23:34]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:23:34]wFMCommunicate OK [12:23:34]SAM_PROTO_GetShiftState done [12:23:34]FM_GetShiftState done [12:23:34]opened in 1713226843 [12:23:34]opened+sec_in_day 1713313243 [12:23:34]quantity*price = 189248 [12:23:34]sum+1 = 189249 [12:23:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1892.48 НСП 1% : 16.75 НДС 12% : 200.97 Наличными: 0.00 Безнал.: 1892.48 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 93 16.04.2024 12:23 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29819 ФПД: 215146512793412 1/tax-web-control/client/api/v1/ticket?date=20240416T122336&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29819&fm=215146512793412&tin=02508201610067®Number=0000138879044617&sum=189248 [12:23:35]StoreToDocumentArchive [12:23:35]shift 118 fd 29819 [12:23:35]save to /storage/0118/doc_00029819 [12:23:35]save last doc name /storage/0118/doc_00029819 to /storage/kkm_last_doc_name [12:23:35]save OK [12:23:35]Clear old archive folders... [12:23:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:23:35]tlvbuf is 001A0E90 [12:23:35]SAM_PROTO_ClearQueue [12:23:35]wFMCommunicate request_size=4 [12:23:35]MH_SAM_APDU [12:23:35]CAPDU: 80 09 00 00 [12:23:35]Write to MH i2c: E2 08 00 8F 14 80 09 00 00 00 00 00 00 15 [12:23:35]Write i2c OK [12:23:35]MH_I2C_Read... [12:23:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:35]Read from MH i2c: E2 [12:23:35]MH_I2C_Read... [12:23:35]Read from MH i2c: E2 03 00 [12:23:35]MH_I2C_Read... [12:23:35]Read from MH i2c: E2 03 00 8F 14 00 90 00 17 [12:23:35]RAPDU: 90 00 [12:23:35]wFMCommunicate OK [12:23:35]SAM_PROTO_ClearQueue done [12:23:35]KKMCreateOFDPacket [12:23:35]OFDProtocolAddRootSTLVToBuf [12:23:35]FM_MakeSignedData [12:23:35]FM_MakeSignedData [12:23:35]SAM_PROTO_SignData [12:23:35]wFMCommunicate request_size=4 [12:23:35]MH_SAM_APDU [12:23:35]CAPDU: 80 0D 01 02 [12:23:35]Write to MH i2c: E2 08 00 90 14 80 0D 01 02 00 00 00 00 1D [12:23:35]Write i2c OK [12:23:35]MH_I2C_Read... [12:23:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:35]OFD Sender: No OFD packet to send [12:23:35]Read from MH i2c: E2 [12:23:35]MH_I2C_Read... [12:23:35]Read from MH i2c: E2 03 00 [12:23:35]MH_I2C_Read... [12:23:35]Read from MH i2c: E2 03 00 90 14 00 90 00 18 [12:23:35]RAPDU: 90 00 [12:23:35]wFMCommunicate OK [12:23:35]wFMCommunicate request_size=255 [12:23:35]MH_SAM_APDU [12:23:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 68 65 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 40 E3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 E3 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 C8 6D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 74 00 00 35 04 06 00 C3 [12:23:35]Write to MH i2c: E2 02 01 91 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 68 65 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 40 E3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 E3 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 C8 6D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 74 00 00 35 04 06 00 C3 00 00 B8 [12:23:35]Write i2c OK [12:23:35]MH_I2C_Read... [12:23:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:36]Read from MH i2c: E2 [12:23:36]MH_I2C_Read... [12:23:36]Read from MH i2c: E2 03 00 [12:23:36]MH_I2C_Read... [12:23:36]Read from MH i2c: E2 03 00 91 14 00 90 00 19 [12:23:36]RAPDU: 90 00 [12:23:36]wFMCommunicate OK [12:23:36]wFMCommunicate request_size=10 [12:23:36]MH_SAM_APDU [12:23:36]CAPDU: 80 0D 02 02 05 AC B3 78 3F 44 [12:23:36]Write to MH i2c: E2 0D 00 92 14 80 0D 02 02 05 00 AC B3 78 3F 44 00 00 84 [12:23:36]Write i2c OK [12:23:36]MH_I2C_Read... [12:23:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:36]Read from MH i2c: E2 [12:23:36]MH_I2C_Read... [12:23:36]Read from MH i2c: E2 03 00 [12:23:36]MH_I2C_Read... [12:23:36]Read from MH i2c: E2 03 00 92 14 00 90 00 1A [12:23:36]RAPDU: 90 00 [12:23:36]wFMCommunicate OK [12:23:36]wFMCommunicate request_size=4 [12:23:36]MH_SAM_APDU [12:23:36]CAPDU: 80 0D 03 02 [12:23:36]Write to MH i2c: E2 08 00 93 14 80 0D 03 02 00 00 00 00 22 [12:23:36]Write i2c OK [12:23:36]MH_I2C_Read... [12:23:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:36]Read from MH i2c: E2 [12:23:36]MH_I2C_Read... [12:23:36]Read from MH i2c: E2 0B 00 [12:23:36]MH_I2C_Read... [12:23:36]Read from MH i2c: E2 0B 00 93 14 00 12 C1 52 80 93 07 93 02 90 00 F7 [12:23:36]RAPDU: 12 C1 52 80 93 07 93 02 90 00 [12:23:36]wFMCommunicate OK [12:23:36]SAM_PROTO_SignData done [12:23:36]FM_MakeSignedData done [12:23:36]CreateOFDProtocolMessage [12:23:36]wFMCommunicate request_size=4 [12:23:36]MH_SAM_APDU [12:23:36]CAPDU: 80 11 00 00 [12:23:36]Write to MH i2c: E2 08 00 94 14 80 11 00 00 00 00 00 00 22 [12:23:36]Write i2c OK [12:23:36]MH_I2C_Read... [12:23:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:36]Read from MH i2c: E2 [12:23:36]MH_I2C_Read... [12:23:36]Read from MH i2c: E2 17 00 [12:23:36]MH_I2C_Read... [12:23:36]Read from MH i2c: E2 17 00 94 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 71 [12:23:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:23:36]wFMCommunicate OK [12:23:36]CreateOFDProtocolMessage done [12:23:36]OFDSenderStorePacket 29819 [12:23:36]StoreOFDPacket docnum=29819 [12:23:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 95 A9 07 01 82 05 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 68 65 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 40 E3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 E3 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 C8 6D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 74 00 00 35 04 06 00 C3 AC B3 78 3F 44 12 C1 52 80 93 07 93 02 [12:23:36]CheckFolder [12:23:36]dirname=/storage/ofd_packets [12:23:36]CheckFolder done [12:23:36]ProducePacketName [12:23:36]name=ofd_packets/00029819 [12:23:36]NVStorageSaveData ofd_packets/00029819 [12:23:36]File name is /storage/ofd_packets/00029819 [12:23:36]Write 301 bytes [12:23:36]NVStorageSaveData done [12:23:36]OFDSenderStorePacket done [12:23:36]KKMCreateOFDPacket done [12:23:36]NVStorageSaveData kkm_last_timestamp [12:23:36]File name is /storage/kkm_last_timestamp [12:23:36]Write 4 bytes [12:23:36]NVStorageSaveData done [12:23:36]ExternCall_PrintAddStr [12:23:36]wPrintStart [12:23:36]Write to MH i2c: 01 00 00 95 14 A9 [12:23:36]Write i2c OK [12:23:36]MH_I2C_Read... [12:23:36]Read from MH i2c: 01 [12:23:36]MH_I2C_Read... [12:23:36]Read from MH i2c: 01 07 00 [12:23:36]MH_I2C_Read... [12:23:36]Read from MH i2c: 01 07 00 95 14 00 00 00 00 00 FF 0F BE [12:23:36]RasterBufferAndPrint [12:23:36]line Счет N : (1)348320 [12:23:36]line ИНН: 02508201610067 [12:23:36]line Контрольно-Кассовый Чек [12:23:36]line ПРОДАЖА [12:23:36]line ТРК (МРК, ГНК) : 33 [12:23:36]line Товар: 2710124500 [12:23:36]line Аи-95-К-5 [12:23:36]line 25.960 * 72.90 [12:23:36]line = 1892.48 [12:23:36]line НДС 12% НСП 1% [12:23:36]line > о реализуемом товаре [12:23:36]line ИТОГО: 1892.48 [12:23:36]line НСП 1% : 16.75 [12:23:36]line НДС 12% : 200.97 [12:23:36]line Наличными: 0.00 [12:23:36]line Безнал.: 1892.48 [12:23:36]line Место: АЗС № 108 "Партнер Нефть" [12:23:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:23:36]line СНО: Общий режим [12:23:36]line Чек 93 16.04.2024 12:23 [12:23:36]line Смена: 118 ФФД: 1.0 [12:23:36]line ЗНМ: 0300000027 [12:23:36]line РНМ: 0000138879044617 [12:23:36]line Версия ККМ: 001 [12:23:36]line Платежная система: О! деньги [12:23:36]line ФМ: 0000000000963154 [12:23:36]line ФД: 29819 [12:23:36]line ФПД: 215146512793412 [12:23:36]line 1/tax-web-control/client/api/v1/ticket?date=20240416T122336&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29819&fm=215146512793412&tin=02508201610067®Number=0000138879044617&sum=189248 [12:23:36]OFD Sender: Processing packet 29819 [packets to send 8, broken 7] [12:23:36]ProducePacketName [12:23:36]name=ofd_packets/00029819 [12:23:36]OFD Sender: To server: pG, [12:23:36]CommunicateWithHost lk.salyk.kg:30040 [12:23:36]ConnectInit lk.salyk.kg [12:23:36]written 0, free lines is 4095 [12:23:36]Connected sock=10 [12:23:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 95 A9 07 01 82 05 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 68 65 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 40 E3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 E3 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 C8 6D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 74 00 00 35 04 06 00 C3 AC B3 78 3F 44 12 C1 52 80 93 07 93 02 [12:23:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A2 91 47 00 2F 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 7B 74 00 00 F4 03 04 00 66 18 1E 66 B6 04 01 00 00 B6 47 AD 84 5B 05 5F 91 [12:23:36]CommunicateWithHost err = 0 [12:23:36]CheckOFDResponse [12:23:36]1017 (14) - 77093643461234 [12:23:36]1041 (16) - 0000000000963154 [12:23:36]1040 (4) - 29819 [12:23:36]1012 (4) - 16.04.2024 06:19 [12:23:36]1206 (1) - 0 [12:23:36]OFD Sender: Remove packet 29819 [12:23:36]ProducePacketName [12:23:36]name=ofd_packets/00029819 [12:23:36]NVStorageDeleteData [12:23:37]Write to MH i2c: 01 00 00 BE 14 D2 [12:23:37]Write i2c OK [12:23:37]MH_I2C_Read... [12:23:37]Read from MH i2c: 01 [12:23:37]MH_I2C_Read... [12:23:37]Read from MH i2c: 01 07 00 [12:23:37]MH_I2C_Read... [12:23:37]Read from MH i2c: 01 07 00 BE 14 00 00 00 00 00 08 0D EE [12:23:37]RasterBufferAndPrint [12:23:37]line [12:23:37]line [12:23:37]line [12:23:37]line [12:23:37]line [12:23:37]written 0, free lines is 3341 [12:23:37]MH_Cut [12:23:37]Write to MH i2c: D1 01 00 C5 14 01 AB [12:23:37]Write i2c OK [12:23:37]MH_I2C_Read... [12:23:37]Read from MH i2c: D1 [12:23:37]MH_I2C_Read... [12:23:37]Read from MH i2c: D1 01 00 [12:23:37]MH_I2C_Read... [12:23:37]Read from MH i2c: D1 01 00 C5 14 00 AA [12:23:37]Write to MH i2c: 01 00 00 C6 14 DA [12:23:37]Write i2c OK [12:23:37]MH_I2C_Read... [12:23:37]OFD Sender: No OFD packet to send [12:23:37]*** Cut start [12:23:37]*** Partial cut [12:23:37]*** CUTSNS_PIN = 1 [12:23:37]*** CUTSNS_PIN = 0 [12:23:38]*** Brake cut motor [12:23:38]Read from MH i2c: 01 [12:23:38]MH_I2C_Read... [12:23:38]*** Stop cut motor [12:23:38]*** Cut end [12:23:38]Read from MH i2c: 01 07 00 [12:23:38]MH_I2C_Read... [12:23:38]Read from MH i2c: 01 07 00 C6 14 00 00 00 00 00 FF 0F EF [12:23:38]process_action close_receipt done [12:23:38]requested_data is exist [12:23:38]produce_requested_data [12:23:38]requested_item fm.sn is exist - process it [12:23:38]wFMCommunicate request_size=4 [12:23:38]MH_SAM_APDU [12:23:38]CAPDU: 80 11 00 00 [12:23:38]Write to MH i2c: E2 08 00 C7 14 80 11 00 00 00 00 00 00 55 [12:23:38]Write i2c OK [12:23:38]MH_I2C_Read... [12:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:38]Read from MH i2c: E2 [12:23:38]MH_I2C_Read... [12:23:38]Read from MH i2c: E2 17 00 [12:23:38]MH_I2C_Read... [12:23:38]Read from MH i2c: E2 17 00 C7 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A4 [12:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:23:38]wFMCommunicate OK [12:23:38]requested_item fd.num is exist - process it [12:23:38]SAM_PROTO_GetFieldsCounters [12:23:38]wFMCommunicate request_size=4 [12:23:38]MH_SAM_APDU [12:23:38]CAPDU: 80 13 00 00 [12:23:38]Write to MH i2c: E2 08 00 C8 14 80 13 00 00 00 00 00 00 58 [12:23:38]Write i2c OK [12:23:38]MH_I2C_Read... [12:23:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:38]Read from MH i2c: E2 [12:23:38]MH_I2C_Read... [12:23:38]Read from MH i2c: E2 62 00 [12:23:38]MH_I2C_Read... [12:23:38]Read from MH i2c: E2 62 00 C8 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7B 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [12:23:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7B 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:38]wFMCommunicate OK [12:23:38]SAM_PROTO_GetFieldsCounters done [12:23:38]requested_item shift.num is exist - process it [12:23:38]requested_item shift.opened is exist - process it [12:23:38]req_shift_opened [12:23:38]FM_GetShiftState [12:23:38]SAM_PROTO_GetShiftState [12:23:38]wFMCommunicate request_size=4 [12:23:38]MH_SAM_APDU [12:23:38]CAPDU: 80 13 01 00 [12:23:38]Write to MH i2c: E2 08 00 C9 14 80 13 01 00 00 00 00 00 5A [12:23:38]Write i2c OK [12:23:38]MH_I2C_Read... [12:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:38]Read from MH i2c: E2 [12:23:38]MH_I2C_Read... [12:23:38]Read from MH i2c: E2 0E 00 [12:23:38]MH_I2C_Read... [12:23:38]Read from MH i2c: E2 0E 00 C9 14 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 08 [12:23:38]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:23:38]wFMCommunicate OK [12:23:38]SAM_PROTO_GetShiftState done [12:23:38]FM_GetShiftState done [12:23:38]req_shift_opened done [12:23:38]requested_item shift.open_date is exist - process it [12:23:38]req_shift_open_date [12:23:38]req_shift_open_date done [12:23:38]produce_requested_data done [12:23:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29819,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [12:23:38]process_action_free close_receipt [12:23:38]json_value_free [12:23:38]json_value_free done [12:23:38]process_json_proto returns [12:23:38]Send response to host [12:23:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29819,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [12:23:38]free response buf [12:23:38]execute_script done [12:23:38]execute_script returns [12:23:38]free content buf [12:23:38]Sock 9.Close socket [12:23:38]Sock 9.Thread stoped [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:51]accept exits with 7 [12:23:51]New connection [12:23:51]New thread 3067133284 created [12:23:51]Thread 3067276644 joined [12:23:51]Waiting for new connection... [12:23:51] Sock 7.Parse request [12:23:51]Sock 7.Check first char [12:23:51]Sock 7.First char is OK [12:23:51]request: POST /json_proto HTTP/1.0 [12:23:51]Method: POST [12:23:51]URL: /json_proto [12:23:51]Method is POST - this is cgi request [12:23:51]url: /json_proto [12:23:51]query_string will be loaded in cgi processing [12:23:51]execute_cgi json_proto POST (null) [12:23:51]execute_cgi path=json_proto method=POST [12:23:51]POST find Content-Length [12:23:51]Host: 172.17.33.3:8080 [12:23:51]Content-Length: 677 [12:23:51]Content-Type: application/json [12:23:51] [12:23:51]POST finish read [12:23:51]Found Content-Length = 677 [12:23:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:51]execute_script... [12:23:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:51]POST & json_proto [12:23:51]process_json_proto [12:23:51]json parsed OK: [12:23:51]protocol is kg_v1.0 [12:23:51]action value=close_receipt [12:23:51]process_action close_receipt [12:23:51]cmd_close_receipt [12:23:51]MH_GetDate [12:23:51]Write to MH i2c: F0 00 00 CA 14 CD [12:23:51]Write i2c OK [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: F0 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: F0 09 00 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: F0 09 00 CA 14 00 D9 6D 1E 66 23 5B 8F 65 12 [12:23:51]GetLastDocTimeStamp 1713270216 [12:23:51]current date 1713270233 [12:23:51]FM_GetShiftState [12:23:51]SAM_PROTO_GetShiftState [12:23:51]wFMCommunicate request_size=4 [12:23:51]MH_SAM_APDU [12:23:51]CAPDU: 80 13 01 00 [12:23:51]Write to MH i2c: E2 08 00 CB 14 80 13 01 00 00 00 00 00 5C [12:23:51]Write i2c OK [12:23:51]MH_I2C_Read... [12:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:51]Read from MH i2c: E2 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: E2 0E 00 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: E2 0E 00 CB 14 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 0A [12:23:51]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:23:51]wFMCommunicate OK [12:23:51]SAM_PROTO_GetShiftState done [12:23:51]FM_GetShiftState done [12:23:51]opened in 1713226843 [12:23:51]opened+sec_in_day 1713313243 [12:23:51]quantity*price = 50025 [12:23:51]sum+1 = 50027 [12:23:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 94 16.04.2024 12:23 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29820 ФПД: 236502072579909 1/tax-web-control/client/api/v1/ticket?date=20240416T122353&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29820&fm=236502072579909&tin=02508201610067®Number=0000138879044617&sum=50000 [12:23:52]StoreToDocumentArchive [12:23:52]shift 118 fd 29820 [12:23:52]save to /storage/0118/doc_00029820 [12:23:52]save last doc name /storage/0118/doc_00029820 to /storage/kkm_last_doc_name [12:23:52]save OK [12:23:52]Clear old archive folders... [12:23:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:23:52]tlvbuf is 001AB0D0 [12:23:52]SAM_PROTO_ClearQueue [12:23:52]wFMCommunicate request_size=4 [12:23:52]MH_SAM_APDU [12:23:52]CAPDU: 80 09 00 00 [12:23:52]Write to MH i2c: E2 08 00 D8 14 80 09 00 00 00 00 00 00 5E [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:52]Read from MH i2c: E2 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 03 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 03 00 D8 14 00 90 00 60 [12:23:52]RAPDU: 90 00 [12:23:52]wFMCommunicate OK [12:23:52]SAM_PROTO_ClearQueue done [12:23:52]KKMCreateOFDPacket [12:23:52]OFDProtocolAddRootSTLVToBuf [12:23:52]FM_MakeSignedData [12:23:52]FM_MakeSignedData [12:23:52]SAM_PROTO_SignData [12:23:52]wFMCommunicate request_size=4 [12:23:52]MH_SAM_APDU [12:23:52]CAPDU: 80 0D 01 02 [12:23:52]Write to MH i2c: E2 08 00 D9 14 80 0D 01 02 00 00 00 00 66 [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:52]Read from MH i2c: E2 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 03 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 03 00 D9 14 00 90 00 61 [12:23:52]RAPDU: 90 00 [12:23:52]wFMCommunicate OK [12:23:52]wFMCommunicate request_size=255 [12:23:52]MH_SAM_APDU [12:23:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 5E 00 00 00 F4 03 04 00 D9 6D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 74 00 00 35 04 06 00 D7 [12:23:52]Write to MH i2c: E2 02 01 DA 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 5E 00 00 00 F4 03 04 00 D9 6D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 74 00 00 35 04 06 00 D7 00 00 84 [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:53]Read from MH i2c: E2 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 03 00 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 03 00 DA 14 00 90 00 62 [12:23:53]RAPDU: 90 00 [12:23:53]wFMCommunicate OK [12:23:53]wFMCommunicate request_size=10 [12:23:53]MH_SAM_APDU [12:23:53]CAPDU: 80 0D 02 02 05 18 EE 06 57 45 [12:23:53]Write to MH i2c: E2 0D 00 DB 14 80 0D 02 02 05 00 18 EE 06 57 45 00 00 1B [12:23:53]Write i2c OK [12:23:53]MH_I2C_Read... [12:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:53]Read from MH i2c: E2 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 03 00 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 03 00 DB 14 00 90 00 63 [12:23:53]RAPDU: 90 00 [12:23:53]wFMCommunicate OK [12:23:53]wFMCommunicate request_size=4 [12:23:53]MH_SAM_APDU [12:23:53]CAPDU: 80 0D 03 02 [12:23:53]Write to MH i2c: E2 08 00 DC 14 80 0D 03 02 00 00 00 00 6B [12:23:53]Write i2c OK [12:23:53]MH_I2C_Read... [12:23:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:53]Read from MH i2c: E2 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 0B 00 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 0B 00 DC 14 00 79 C1 AD 19 48 5A B2 37 90 00 F7 [12:23:53]RAPDU: 79 C1 AD 19 48 5A B2 37 90 00 [12:23:53]wFMCommunicate OK [12:23:53]SAM_PROTO_SignData done [12:23:53]FM_MakeSignedData done [12:23:53]CreateOFDProtocolMessage [12:23:53]wFMCommunicate request_size=4 [12:23:53]MH_SAM_APDU [12:23:53]CAPDU: 80 11 00 00 [12:23:53]Write to MH i2c: E2 08 00 DD 14 80 11 00 00 00 00 00 00 6B [12:23:53]Write i2c OK [12:23:53]MH_I2C_Read... [12:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:53]Read from MH i2c: E2 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 17 00 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: E2 17 00 DD 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BA [12:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:23:53]wFMCommunicate OK [12:23:53]CreateOFDProtocolMessage done [12:23:53]OFDSenderStorePacket 29820 [12:23:53]StoreOFDPacket docnum=29820 [12:23:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 23 B9 07 01 6D F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 5E 00 00 00 F4 03 04 00 D9 6D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 74 00 00 35 04 06 00 D7 18 EE 06 57 45 79 C1 AD 19 48 5A B2 37 [12:23:53]CheckFolder [12:23:53]dirname=/storage/ofd_packets [12:23:53]CheckFolder done [12:23:53]ProducePacketName [12:23:53]name=ofd_packets/00029820 [12:23:53]NVStorageSaveData ofd_packets/00029820 [12:23:53]File name is /storage/ofd_packets/00029820 [12:23:53]Write 301 bytes [12:23:53]NVStorageSaveData done [12:23:53]OFDSenderStorePacket done [12:23:53]KKMCreateOFDPacket done [12:23:53]NVStorageSaveData kkm_last_timestamp [12:23:53]File name is /storage/kkm_last_timestamp [12:23:53]Write 4 bytes [12:23:53]NVStorageSaveData done [12:23:53]ExternCall_PrintAddStr [12:23:53]wPrintStart [12:23:53]Write to MH i2c: 01 00 00 DE 14 F2 [12:23:53]Write i2c OK [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: 01 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: 01 07 00 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: 01 07 00 DE 14 00 00 00 00 00 FF 0F 07 [12:23:53]RasterBufferAndPrint [12:23:53]line Счет N : (1)348321 [12:23:53]line ИНН: 02508201610067 [12:23:53]line Контрольно-Кассовый Чек [12:23:53]line ПРОДАЖА [12:23:53]line ТРК (МРК, ГНК) : 23 [12:23:53]line Товар: 2710124130 [12:23:53]line Аи-92-К-5 [12:23:53]line 7.720 * 64.80 [12:23:53]line = 500.26 [12:23:53]line НДС 12% НСП 1% [12:23:53]line > о реализуемом товаре [12:23:53]line ОКРУГЛЕНИЕ: -0.26 [12:23:53]line ИТОГО: 500.00 [12:23:53]line Внесено: 500.00 [12:23:53]line СДАЧА: 0.00 [12:23:53]line НСП 1% : 4.43 [12:23:53]line НДС 12% : 53.12 [12:23:53]line Наличными: 500.00 [12:23:53]line Безнал.: 0.00 [12:23:53]line Место: АЗС № 108 "Партнер Нефть" [12:23:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:23:53]line СНО: Общий режим [12:23:53]line Чек 94 16.04.2024 12:23 [12:23:53]line Смена: 118 ФФД: 1.0 [12:23:53]line ЗНМ: 0300000027 [12:23:53]line РНМ: 0000138879044617 [12:23:53]line Версия ККМ: 001 [12:23:53]line ФМ: 0000000000963154 [12:23:53]line ФД: 29820 [12:23:53]line ФПД: 236502072579909 [12:23:53]line 1/tax-web-control/client/api/v1/ticket?date=20240416T122353&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29820&fm=236502072579909&tin=02508201610067®Number=0000138879044617&sum=50000 [12:23:53]OFD Sender: Processing packet 29820 [packets to send 8, broken 7] [12:23:53]ProducePacketName [12:23:53]name=ofd_packets/00029820 [12:23:53]OFD Sender: To server: pG, [12:23:53]CommunicateWithHost lk.salyk.kg:30040 [12:23:53]ConnectInit lk.salyk.kg [12:23:53]written 0, free lines is 4095 [12:23:53]Connected sock=10 [12:23:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 23 B9 07 01 6D F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 5E 00 00 00 F4 03 04 00 D9 6D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 74 00 00 35 04 06 00 D7 18 EE 06 57 45 79 C1 AD 19 48 5A B2 37 [12:23:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D0 6D 47 00 65 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 74 00 00 F4 03 04 00 77 18 1E 66 B6 04 01 00 00 35 4E C3 1B 7C B8 AB AE [12:23:53]CommunicateWithHost err = 0 [12:23:53]CheckOFDResponse [12:23:53]1017 (14) - 77093643461234 [12:23:53]1041 (16) - 0000000000963154 [12:23:53]1040 (4) - 29820 [12:23:53]1012 (4) - 16.04.2024 06:19 [12:23:53]1206 (1) - 0 [12:23:53]OFD Sender: Remove packet 29820 [12:23:53]ProducePacketName [12:23:53]name=ofd_packets/00029820 [12:23:53]NVStorageDeleteData [12:23:54]Write to MH i2c: 01 00 00 08 15 1D [12:23:54]Write i2c OK [12:23:54]MH_I2C_Read... [12:23:54]Read from MH i2c: 01 [12:23:54]MH_I2C_Read... [12:23:54]Read from MH i2c: 01 07 00 [12:23:54]MH_I2C_Read... [12:23:54]Read from MH i2c: 01 07 00 08 15 00 00 00 00 00 C7 0C F7 [12:23:54]RasterBufferAndPrint [12:23:54]line [12:23:54]line [12:23:54]line [12:23:54]line [12:23:54]line [12:23:54]written 0, free lines is 3276 [12:23:54]MH_Cut [12:23:54]Write to MH i2c: D1 01 00 0F 15 01 F6 [12:23:54]Write i2c OK [12:23:54]MH_I2C_Read... [12:23:54]Read from MH i2c: D1 [12:23:54]MH_I2C_Read... [12:23:54]Read from MH i2c: D1 01 00 [12:23:54]MH_I2C_Read... [12:23:54]Read from MH i2c: D1 01 00 0F 15 00 F5 [12:23:54]Write to MH i2c: 01 00 00 10 15 25 [12:23:54]Write i2c OK [12:23:54]MH_I2C_Read... [12:23:54]OFD Sender: No OFD packet to send [12:23:54]*** Cut start [12:23:54]*** Partial cut [12:23:54]*** CUTSNS_PIN = 1 [12:23:54]*** CUTSNS_PIN = 0 [12:23:55]*** Brake cut motor [12:23:55]Read from MH i2c: 01 [12:23:55]MH_I2C_Read... [12:23:55]*** Stop cut motor [12:23:55]*** Cut end [12:23:55]Read from MH i2c: 01 07 00 [12:23:55]MH_I2C_Read... [12:23:55]Read from MH i2c: 01 07 00 10 15 00 00 00 00 00 FF 0F 3A [12:23:55]process_action close_receipt done [12:23:55]requested_data is exist [12:23:55]produce_requested_data [12:23:55]requested_item fm.sn is exist - process it [12:23:55]wFMCommunicate request_size=4 [12:23:55]MH_SAM_APDU [12:23:55]CAPDU: 80 11 00 00 [12:23:55]Write to MH i2c: E2 08 00 11 15 80 11 00 00 00 00 00 00 A0 [12:23:55]Write i2c OK [12:23:55]MH_I2C_Read... [12:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:55]Read from MH i2c: E2 [12:23:55]MH_I2C_Read... [12:23:55]Read from MH i2c: E2 17 00 [12:23:55]MH_I2C_Read... [12:23:55]Read from MH i2c: E2 17 00 11 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EF [12:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:23:55]wFMCommunicate OK [12:23:55]requested_item fd.num is exist - process it [12:23:55]SAM_PROTO_GetFieldsCounters [12:23:55]wFMCommunicate request_size=4 [12:23:55]MH_SAM_APDU [12:23:55]CAPDU: 80 13 00 00 [12:23:55]Write to MH i2c: E2 08 00 12 15 80 13 00 00 00 00 00 00 A3 [12:23:55]Write i2c OK [12:23:55]MH_I2C_Read... [12:23:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:55]Read from MH i2c: E2 [12:23:55]MH_I2C_Read... [12:23:55]Read from MH i2c: E2 62 00 [12:23:55]MH_I2C_Read... [12:23:55]Read from MH i2c: E2 62 00 12 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7C 74 00 00 0E 04 04 00 76 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 61 [12:23:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7C 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:55]wFMCommunicate OK [12:23:55]SAM_PROTO_GetFieldsCounters done [12:23:55]requested_item shift.num is exist - process it [12:23:55]requested_item shift.opened is exist - process it [12:23:55]req_shift_opened [12:23:55]FM_GetShiftState [12:23:55]SAM_PROTO_GetShiftState [12:23:55]wFMCommunicate request_size=4 [12:23:55]MH_SAM_APDU [12:23:55]CAPDU: 80 13 01 00 [12:23:55]Write to MH i2c: E2 08 00 13 15 80 13 01 00 00 00 00 00 A5 [12:23:55]Write i2c OK [12:23:55]MH_I2C_Read... [12:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:55]Read from MH i2c: E2 [12:23:55]MH_I2C_Read... [12:23:55]Read from MH i2c: E2 0E 00 [12:23:55]MH_I2C_Read... [12:23:55]Read from MH i2c: E2 0E 00 13 15 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 53 [12:23:55]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:23:55]wFMCommunicate OK [12:23:55]SAM_PROTO_GetShiftState done [12:23:55]FM_GetShiftState done [12:23:55]req_shift_opened done [12:23:55]requested_item shift.open_date is exist - process it [12:23:55]req_shift_open_date [12:23:55]req_shift_open_date done [12:23:55]produce_requested_data done [12:23:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29820,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [12:23:55]process_action_free close_receipt [12:23:55]json_value_free [12:23:55]json_value_free done [12:23:55]process_json_proto returns [12:23:55]Send response to host [12:23:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29820,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [12:23:55]free response buf [12:23:55]execute_script done [12:23:55]execute_script returns [12:23:55]free content buf [12:23:55]Sock 7.Close socket [12:23:55]Sock 7.Thread stoped [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:42]accept exits with 9 [12:25:42]New connection [12:25:42]New thread 3067276644 created [12:25:42]Thread 3067133284 joined [12:25:42]Waiting for new connection... [12:25:42] Sock 9.Parse request [12:25:42]Sock 9.Check first char [12:25:42]Sock 9.First char is OK [12:25:42]request: POST /json_proto HTTP/1.0 [12:25:42]Method: POST [12:25:42]URL: /json_proto [12:25:42]Method is POST - this is cgi request [12:25:42]url: /json_proto [12:25:42]query_string will be loaded in cgi processing [12:25:42]execute_cgi json_proto POST (null) [12:25:42]execute_cgi path=json_proto method=POST [12:25:42]POST find Content-Length [12:25:42]Host: 172.17.33.3:8080 [12:25:42]Content-Length: 1207 [12:25:42]Content-Type: application/json [12:25:42] [12:25:42]POST finish read [12:25:42]Found Content-Length = 1207 [12:25:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348322\u000A16.04.2024 12:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 2592.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03612\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:42]execute_script... [12:25:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348322\u000A16.04.2024 12:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 2592.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03612\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:42]POST & json_proto [12:25:42]process_json_proto [12:25:42]json parsed OK: [12:25:42]protocol is kg_v1.0 [12:25:42]action value=print_text [12:25:42]process_action print_text [12:25:42]cmd_print_text [12:25:42]ExternCall_PrintAddStr [12:25:42]wPrintStart [12:25:42]Write to MH i2c: 01 00 00 14 15 29 [12:25:42]Write i2c OK [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: 01 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: 01 07 00 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: 01 07 00 14 15 00 00 00 00 00 FF 0F 3E [12:25:42]RasterBufferAndPrint [12:25:42]line *****ТОВАРНЫЙ ЧЕК***** [12:25:42]line АЗС 108 [12:25:42]line Партнер нефть [12:25:42]line 02508201610067 [12:25:42]line Кассир : Шадыканова Ж. [12:25:42]line Счет N : (1)348322 [12:25:42]line 16.04.2024 12:07 [12:25:42]line ПРОДАЖА [12:25:42]line ТРК (МРК, ГНК): 42 [12:25:42]line Вид ГСМ : 2710124130 [12:25:42]line Аи-92-К-5 [12:25:42]line 40.000 x 64.80 [12:25:42]line ИТОГ: 2592.00 [12:25:42]line Тип оплаты: Талоны: Топливная Карта [12:25:42]line 03612 [12:25:42]line ______________________ [12:25:42]line (подпись) [12:25:42]written 0, free lines is 4095 [12:25:42]Write to MH i2c: 01 00 00 29 15 3E [12:25:42]Write i2c OK [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: 01 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: 01 07 00 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: 01 07 00 29 15 00 00 00 00 00 F6 0D 48 [12:25:42]RasterBufferAndPrint [12:25:42]line [12:25:42]line [12:25:42]line [12:25:42]line [12:25:42]line [12:25:42]written 0, free lines is 3576 [12:25:42]MH_Cut [12:25:42]Write to MH i2c: D1 01 00 30 15 01 17 [12:25:42]Write i2c OK [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: D1 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: D1 01 00 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: D1 01 00 30 15 00 16 [12:25:42]Write to MH i2c: 01 00 00 31 15 46 [12:25:42]Write i2c OK [12:25:42]MH_I2C_Read... [12:25:42]*** Cut start [12:25:42]*** Partial cut [12:25:42]*** CUTSNS_PIN = 1 [12:25:42]*** CUTSNS_PIN = 0 [12:25:43]*** Brake cut motor [12:25:43]Read from MH i2c: 01 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: 01 07 00 [12:25:43]MH_I2C_Read... [12:25:43]*** Stop cut motor [12:25:43]*** Cut end [12:25:43]Read from MH i2c: 01 07 00 31 15 00 00 00 00 00 FF 0F 5B [12:25:43]process_action print_text done [12:25:43]requested_data is exist [12:25:43]produce_requested_data [12:25:43]requested_item fm.sn is exist - process it [12:25:43]wFMCommunicate request_size=4 [12:25:43]MH_SAM_APDU [12:25:43]CAPDU: 80 11 00 00 [12:25:43]Write to MH i2c: E2 08 00 32 15 80 11 00 00 00 00 00 00 C1 [12:25:43]Write i2c OK [12:25:43]MH_I2C_Read... [12:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:43]Read from MH i2c: E2 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: E2 17 00 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: E2 17 00 32 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 10 [12:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:25:43]wFMCommunicate OK [12:25:43]requested_item fd.num is exist - process it [12:25:43]SAM_PROTO_GetFieldsCounters [12:25:43]wFMCommunicate request_size=4 [12:25:43]MH_SAM_APDU [12:25:43]CAPDU: 80 13 00 00 [12:25:43]Write to MH i2c: E2 08 00 33 15 80 13 00 00 00 00 00 00 C4 [12:25:43]Write i2c OK [12:25:43]MH_I2C_Read... [12:25:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:43]Read from MH i2c: E2 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: E2 62 00 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: E2 62 00 33 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7C 74 00 00 0E 04 04 00 76 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 82 [12:25:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7C 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:43]wFMCommunicate OK [12:25:43]SAM_PROTO_GetFieldsCounters done [12:25:43]requested_item shift.num is exist - process it [12:25:43]requested_item shift.opened is exist - process it [12:25:43]req_shift_opened [12:25:43]FM_GetShiftState [12:25:43]SAM_PROTO_GetShiftState [12:25:43]wFMCommunicate request_size=4 [12:25:43]MH_SAM_APDU [12:25:43]CAPDU: 80 13 01 00 [12:25:43]Write to MH i2c: E2 08 00 34 15 80 13 01 00 00 00 00 00 C6 [12:25:43]Write i2c OK [12:25:43]MH_I2C_Read... [12:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:43]Read from MH i2c: E2 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: E2 0E 00 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: E2 0E 00 34 15 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 74 [12:25:43]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:25:43]wFMCommunicate OK [12:25:43]SAM_PROTO_GetShiftState done [12:25:43]FM_GetShiftState done [12:25:43]req_shift_opened done [12:25:43]requested_item shift.open_date is exist - process it [12:25:43]req_shift_open_date [12:25:43]req_shift_open_date done [12:25:43]produce_requested_data done [12:25:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29820,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [12:25:43]process_action_free print_text [12:25:43]json_value_free [12:25:43]json_value_free done [12:25:43]process_json_proto returns [12:25:43]Send response to host [12:25:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29820,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [12:25:43]free response buf [12:25:43]execute_script done [12:25:43]execute_script returns [12:25:43]free content buf [12:25:43]Sock 9.Close socket [12:25:43]Sock 9.Thread stoped [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]accept exits with 7 [12:25:54]New connection [12:25:54]New thread 3067133284 created [12:25:54]Thread 3067276644 joined [12:25:54]Waiting for new connection... [12:25:54] Sock 7.Parse request [12:25:54]Sock 7.Check first char [12:25:54]Sock 7.First char is OK [12:25:54]request: POST /json_proto HTTP/1.0 [12:25:54]Method: POST [12:25:54]URL: /json_proto [12:25:54]Method is POST - this is cgi request [12:25:54]url: /json_proto [12:25:54]query_string will be loaded in cgi processing [12:25:54]execute_cgi json_proto POST (null) [12:25:54]execute_cgi path=json_proto method=POST [12:25:54]POST find Content-Length [12:25:54]Host: 172.17.33.3:8080 [12:25:54]Content-Length: 808 [12:25:54]Content-Type: application/json [12:25:54] [12:25:54]POST finish read [12:25:54]Found Content-Length = 808 [12:25:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 34.400, "sum" : 2507.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2507.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:54]execute_script... [12:25:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 34.400, "sum" : 2507.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2507.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:54]POST & json_proto [12:25:54]process_json_proto [12:25:54]json parsed OK: [12:25:54]protocol is kg_v1.0 [12:25:54]action value=close_receipt [12:25:54]process_action close_receipt [12:25:54]cmd_close_receipt [12:25:54]MH_GetDate [12:25:54]Write to MH i2c: F0 00 00 35 15 39 [12:25:54]Write i2c OK [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: F0 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: F0 09 00 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: F0 09 00 35 15 00 53 6E 1E 66 23 5B 8F 65 F9 [12:25:54]GetLastDocTimeStamp 1713270233 [12:25:54]current date 1713270355 [12:25:54]FM_GetShiftState [12:25:54]SAM_PROTO_GetShiftState [12:25:54]wFMCommunicate request_size=4 [12:25:54]MH_SAM_APDU [12:25:54]CAPDU: 80 13 01 00 [12:25:54]Write to MH i2c: E2 08 00 36 15 80 13 01 00 00 00 00 00 C8 [12:25:54]Write i2c OK [12:25:54]MH_I2C_Read... [12:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:54]Read from MH i2c: E2 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 0E 00 [12:25:54]MH_I2C_Read... [12:25:54]Read from MH i2c: E2 0E 00 36 15 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 76 [12:25:54]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:25:54]wFMCommunicate OK [12:25:54]SAM_PROTO_GetShiftState done [12:25:54]FM_GetShiftState done [12:25:54]opened in 1713226843 [12:25:54]opened+sec_in_day 1713313243 [12:25:54]quantity*price = 250776 [12:25:54]sum+1 = 250777 [12:25:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2507.76 НСП 1% : 22.19 НДС 12% : 266.31 Наличными: 0.00 Безнал.: 2507.76 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 95 16.04.2024 12:25 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29821 ФПД: 206412884223585 1/tax-web-control/client/api/v1/ticket?date=20240416T122556&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29821&fm=206412884223585&tin=02508201610067®Number=0000138879044617&sum=250776 [12:25:55]StoreToDocumentArchive [12:25:55]shift 118 fd 29821 [12:25:55]save to /storage/0118/doc_00029821 [12:25:55]save last doc name /storage/0118/doc_00029821 to /storage/kkm_last_doc_name [12:25:55]save OK [12:25:55]Clear old archive folders... [12:25:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:55]tlvbuf is 00208670 [12:25:55]SAM_PROTO_ClearQueue [12:25:55]wFMCommunicate request_size=4 [12:25:55]MH_SAM_APDU [12:25:55]CAPDU: 80 09 00 00 [12:25:55]Write to MH i2c: E2 08 00 43 15 80 09 00 00 00 00 00 00 CA [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:55]Read from MH i2c: E2 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 03 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 03 00 43 15 00 90 00 CC [12:25:55]RAPDU: 90 00 [12:25:55]wFMCommunicate OK [12:25:55]SAM_PROTO_ClearQueue done [12:25:55]KKMCreateOFDPacket [12:25:55]OFDProtocolAddRootSTLVToBuf [12:25:55]FM_MakeSignedData [12:25:55]FM_MakeSignedData [12:25:55]SAM_PROTO_SignData [12:25:55]wFMCommunicate request_size=4 [12:25:55]MH_SAM_APDU [12:25:55]CAPDU: 80 0D 01 02 [12:25:55]Write to MH i2c: E2 08 00 44 15 80 0D 01 02 00 00 00 00 D2 [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:55]Read from MH i2c: E2 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 03 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 03 00 44 15 00 90 00 CD [12:25:55]RAPDU: 90 00 [12:25:55]wFMCommunicate OK [12:25:55]wFMCommunicate request_size=255 [12:25:55]MH_SAM_APDU [12:25:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 86 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 98 D3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 D3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 68 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 D3 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 54 6E 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 74 00 00 35 04 06 00 BB [12:25:55]Write to MH i2c: E2 02 01 45 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 86 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 98 D3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 D3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 68 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 D3 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 54 6E 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 74 00 00 35 04 06 00 BB 00 00 AC [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:55]Read from MH i2c: E2 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 03 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 03 00 45 15 00 90 00 CE [12:25:55]RAPDU: 90 00 [12:25:55]wFMCommunicate OK [12:25:55]wFMCommunicate request_size=10 [12:25:55]MH_SAM_APDU [12:25:55]CAPDU: 80 0D 02 02 05 BB 3E A4 26 61 [12:25:55]Write to MH i2c: E2 0D 00 46 15 80 0D 02 02 05 00 BB 3E A4 26 61 00 00 03 [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:55]Read from MH i2c: E2 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 03 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 03 00 46 15 00 90 00 CF [12:25:55]RAPDU: 90 00 [12:25:55]wFMCommunicate OK [12:25:55]wFMCommunicate request_size=4 [12:25:55]MH_SAM_APDU [12:25:55]CAPDU: 80 0D 03 02 [12:25:55]Write to MH i2c: E2 08 00 47 15 80 0D 03 02 00 00 00 00 D7 [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:55]Read from MH i2c: E2 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 0B 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 0B 00 47 15 00 0A 2C 0C 08 57 0A 16 73 90 00 0C [12:25:55]RAPDU: 0A 2C 0C 08 57 0A 16 73 90 00 [12:25:55]wFMCommunicate OK [12:25:55]SAM_PROTO_SignData done [12:25:55]FM_MakeSignedData done [12:25:55]CreateOFDProtocolMessage [12:25:55]wFMCommunicate request_size=4 [12:25:55]MH_SAM_APDU [12:25:55]CAPDU: 80 11 00 00 [12:25:55]Write to MH i2c: E2 08 00 48 15 80 11 00 00 00 00 00 00 D7 [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:55]Read from MH i2c: E2 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 17 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 17 00 48 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 26 [12:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:25:55]wFMCommunicate OK [12:25:55]CreateOFDProtocolMessage done [12:25:55]OFDSenderStorePacket 29821 [12:25:55]StoreOFDPacket docnum=29821 [12:25:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 08 32 07 01 9B A3 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 60 86 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 98 D3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 D3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 68 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 D3 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 54 6E 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 74 00 00 35 04 06 00 BB BB 3E A4 26 61 0A 2C 0C 08 57 0A 16 73 [12:25:55]CheckFolder [12:25:55]dirname=/storage/ofd_packets [12:25:55]CheckFolder done [12:25:55]ProducePacketName [12:25:55]name=ofd_packets/00029821 [12:25:55]NVStorageSaveData ofd_packets/00029821 [12:25:55]File name is /storage/ofd_packets/00029821 [12:25:55]Write 301 bytes [12:25:55]NVStorageSaveData done [12:25:55]OFDSenderStorePacket done [12:25:55]KKMCreateOFDPacket done [12:25:55]NVStorageSaveData kkm_last_timestamp [12:25:55]File name is /storage/kkm_last_timestamp [12:25:55]Write 4 bytes [12:25:55]NVStorageSaveData done [12:25:55]ExternCall_PrintAddStr [12:25:55]wPrintStart [12:25:55]Write to MH i2c: 01 00 00 49 15 5E [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: 01 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: 01 07 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: 01 07 00 49 15 00 00 00 00 00 FF 0F 73 [12:25:55]RasterBufferAndPrint [12:25:55]line Счет N : (1)348323 [12:25:55]line ИНН: 02508201610067 [12:25:55]line Контрольно-Кассовый Чек [12:25:55]line ПРОДАЖА [12:25:55]line ТРК (МРК, ГНК) : 33 [12:25:55]line Товар: 2710124500 [12:25:55]line Аи-95-К-5 [12:25:55]line 34.400 * 72.90 [12:25:55]line = 2507.76 [12:25:55]line НДС 12% НСП 1% [12:25:55]line > о реализуемом товаре [12:25:55]line ИТОГО: 2507.76 [12:25:55]line НСП 1% : 22.19 [12:25:55]line НДС 12% : 266.31 [12:25:55]line Наличными: 0.00 [12:25:55]line Безнал.: 2507.76 [12:25:55]line Место: АЗС № 108 "Партнер Нефть" [12:25:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:25:55]line СНО: Общий режим [12:25:55]line Чек 95 16.04.2024 12:25 [12:25:55]line Смена: 118 ФФД: 1.0 [12:25:55]line ЗНМ: 0300000027 [12:25:55]line РНМ: 0000138879044617 [12:25:55]line Версия ККМ: 001 [12:25:55]line Платежная система: О! деньги [12:25:55]line ФМ: 0000000000963154 [12:25:55]line ФД: 29821 [12:25:56]line ФПД: 206412884223585 [12:25:56]line 1/tax-web-control/client/api/v1/ticket?date=20240416T122556&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29821&fm=206412884223585&tin=02508201610067®Number=0000138879044617&sum=250776 [12:25:56]OFD Sender: Processing packet 29821 [packets to send 8, broken 7] [12:25:56]ProducePacketName [12:25:56]name=ofd_packets/00029821 [12:25:56]OFD Sender: To server: pG, [12:25:56]CommunicateWithHost lk.salyk.kg:30040 [12:25:56]ConnectInit lk.salyk.kg [12:25:56]written 0, free lines is 4095 [12:25:56]Connected sock=10 [12:25:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 08 32 07 01 9B A3 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 60 86 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 98 D3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 D3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 68 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 D3 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 54 6E 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 74 00 00 35 04 06 00 BB BB 3E A4 26 61 0A 2C 0C 08 57 0A 16 73 [12:25:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9F 2E 47 00 03 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 7D 74 00 00 F4 03 04 00 F2 18 1E 66 B6 04 01 00 00 5B 03 0D A2 A2 10 8A 90 [12:25:56]CommunicateWithHost err = 0 [12:25:56]CheckOFDResponse [12:25:56]1017 (14) - 77093643461234 [12:25:56]1041 (16) - 0000000000963154 [12:25:56]1040 (4) - 29821 [12:25:56]1012 (4) - 16.04.2024 06:21 [12:25:56]1206 (1) - 0 [12:25:56]OFD Sender: Remove packet 29821 [12:25:56]ProducePacketName [12:25:56]name=ofd_packets/00029821 [12:25:56]NVStorageDeleteData [12:25:56]Write to MH i2c: 01 00 00 72 15 87 [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: 01 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: 01 07 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: 01 07 00 72 15 00 00 00 00 00 E0 0C 7A [12:25:56]RasterBufferAndPrint [12:25:56]line [12:25:56]line [12:25:56]line [12:25:56]line [12:25:56]line [12:25:56]written 0, free lines is 3301 [12:25:56]MH_Cut [12:25:56]Write to MH i2c: D1 01 00 79 15 01 60 [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: D1 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: D1 01 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: D1 01 00 79 15 00 5F [12:25:56]Write to MH i2c: 01 00 00 7A 15 8F [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:57]OFD Sender: No OFD packet to send [12:25:57]*** Cut start [12:25:57]*** Partial cut [12:25:57]*** CUTSNS_PIN = 1 [12:25:57]*** CUTSNS_PIN = 0 [12:25:57]*** Brake cut motor [12:25:58]Read from MH i2c: 01 [12:25:58]MH_I2C_Read... [12:25:58]*** Stop cut motor [12:25:58]*** Cut end [12:25:58]Read from MH i2c: 01 07 00 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: 01 07 00 7A 15 00 00 00 00 00 FF 0F A4 [12:25:58]process_action close_receipt done [12:25:58]requested_data is exist [12:25:58]produce_requested_data [12:25:58]requested_item fm.sn is exist - process it [12:25:58]wFMCommunicate request_size=4 [12:25:58]MH_SAM_APDU [12:25:58]CAPDU: 80 11 00 00 [12:25:58]Write to MH i2c: E2 08 00 7B 15 80 11 00 00 00 00 00 00 0A [12:25:58]Write i2c OK [12:25:58]MH_I2C_Read... [12:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:58]Read from MH i2c: E2 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: E2 17 00 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: E2 17 00 7B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 59 [12:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:25:58]wFMCommunicate OK [12:25:58]requested_item fd.num is exist - process it [12:25:58]SAM_PROTO_GetFieldsCounters [12:25:58]wFMCommunicate request_size=4 [12:25:58]MH_SAM_APDU [12:25:58]CAPDU: 80 13 00 00 [12:25:58]Write to MH i2c: E2 08 00 7C 15 80 13 00 00 00 00 00 00 0D [12:25:58]Write i2c OK [12:25:58]MH_I2C_Read... [12:25:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:58]Read from MH i2c: E2 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: E2 62 00 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: E2 62 00 7C 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7D 74 00 00 0E 04 04 00 76 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 CF [12:25:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7D 74 00 00 0E 04 04 00 76 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 [12:25:58]wFMCommunicate OK [12:25:58]SAM_PROTO_GetFieldsCounters done [12:25:58]requested_item shift.num is exist - process it [12:25:58]requested_item shift.opened is exist - process it [12:25:58]req_shift_opened [12:25:58]FM_GetShiftState [12:25:58]SAM_PROTO_GetShiftState [12:25:58]wFMCommunicate request_size=4 [12:25:58]MH_SAM_APDU [12:25:58]CAPDU: 80 13 01 00 [12:25:58]Write to MH i2c: E2 08 00 7D 15 80 13 01 00 00 00 00 00 0F [12:25:58]Write i2c OK [12:25:58]MH_I2C_Read... [12:25:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:58]Read from MH i2c: E2 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: E2 0E 00 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: E2 0E 00 7D 15 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 BD [12:25:58]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:25:58]wFMCommunicate OK [12:25:58]SAM_PROTO_GetShiftState done [12:25:58]FM_GetShiftState done [12:25:58]req_shift_opened done [12:25:58]requested_item shift.open_date is exist - process it [12:25:58]req_shift_open_date [12:25:58]req_shift_open_date done [12:25:58]produce_requested_data done [12:25:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29821,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [12:25:58]process_action_free close_receipt [12:25:58]json_value_free [12:25:58]json_value_free done [12:25:58]process_json_proto returns [12:25:58]Send response to host [12:25:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29821,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [12:25:58]free response buf [12:25:58]execute_script done [12:25:58]execute_script returns [12:25:58]free content buf [12:25:58]Sock 7.Close socket [12:25:58]Sock 7.Thread stoped [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:02]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:09]accept exits with 9 [12:38:09]New connection [12:38:09]New thread 3067276644 created [12:38:09]Thread 3067133284 joined [12:38:09]Waiting for new connection... [12:38:09] Sock 9.Parse request [12:38:09]Sock 9.Check first char [12:38:09]Sock 9.First char is OK [12:38:09]request: POST /json_proto HTTP/1.0 [12:38:09]Method: POST [12:38:09]URL: /json_proto [12:38:09]Method is POST - this is cgi request [12:38:09]url: /json_proto [12:38:09]query_string will be loaded in cgi processing [12:38:09]execute_cgi json_proto POST (null) [12:38:09]execute_cgi path=json_proto method=POST [12:38:09]POST find Content-Length [12:38:09]Host: 172.17.33.3:8080 [12:38:09]Content-Length: 844 [12:38:09]Content-Type: application/json [12:38:09] [12:38:09]POST finish read [12:38:09]Found Content-Length = 844 [12:38:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 14.980, "sum" : 500.33, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:09]execute_script... [12:38:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 14.980, "sum" : 500.33, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:09]POST & json_proto [12:38:09]process_json_proto [12:38:09]json parsed OK: [12:38:09]protocol is kg_v1.0 [12:38:09]action value=close_receipt [12:38:09]process_action close_receipt [12:38:09]cmd_close_receipt [12:38:09]MH_GetDate [12:38:09]Write to MH i2c: F0 00 00 7E 15 82 [12:38:09]Write i2c OK [12:38:09]MH_I2C_Read... [12:38:09]Read from MH i2c: F0 [12:38:09]MH_I2C_Read... [12:38:09]Read from MH i2c: F0 09 00 [12:38:09]MH_I2C_Read... [12:38:09]Read from MH i2c: F0 09 00 7E 15 00 32 71 1E 66 23 5B 8F 65 24 [12:38:09]GetLastDocTimeStamp 1713270356 [12:38:09]current date 1713271090 [12:38:09]FM_GetShiftState [12:38:09]SAM_PROTO_GetShiftState [12:38:09]wFMCommunicate request_size=4 [12:38:09]MH_SAM_APDU [12:38:09]CAPDU: 80 13 01 00 [12:38:09]Write to MH i2c: E2 08 00 7F 15 80 13 01 00 00 00 00 00 11 [12:38:09]Write i2c OK [12:38:09]MH_I2C_Read... [12:38:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:09]Read from MH i2c: E2 [12:38:09]MH_I2C_Read... [12:38:09]Read from MH i2c: E2 0E 00 [12:38:09]MH_I2C_Read... [12:38:09]Read from MH i2c: E2 0E 00 7F 15 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 BF [12:38:09]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:38:09]wFMCommunicate OK [12:38:09]SAM_PROTO_GetShiftState done [12:38:09]FM_GetShiftState done [12:38:09]opened in 1713226843 [12:38:09]opened+sec_in_day 1713313243 [12:38:09]quantity*price = 50033 [12:38:09]sum+1 = 50034 [12:38:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 96 16.04.2024 12:38 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29822 ФПД: 100904598413714 1/tax-web-control/client/api/v1/ticket?date=20240416T123810&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29822&fm=100904598413714&tin=02508201610067®Number=0000138879044617&sum=50033 [12:38:10]StoreToDocumentArchive [12:38:10]shift 118 fd 29822 [12:38:10]save to /storage/0118/doc_00029822 [12:38:10]save last doc name /storage/0118/doc_00029822 to /storage/kkm_last_doc_name [12:38:10]save OK [12:38:10]Clear old archive folders... [12:38:10]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:38:10]tlvbuf is 0017DFC0 [12:38:10]SAM_PROTO_ClearQueue [12:38:10]wFMCommunicate request_size=4 [12:38:10]MH_SAM_APDU [12:38:10]CAPDU: 80 09 00 00 [12:38:10]Write to MH i2c: E2 08 00 8C 15 80 09 00 00 00 00 00 00 13 [12:38:10]Write i2c OK [12:38:10]MH_I2C_Read... [12:38:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:10]Read from MH i2c: E2 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 03 00 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 03 00 8C 15 00 90 00 15 [12:38:10]RAPDU: 90 00 [12:38:10]wFMCommunicate OK [12:38:10]SAM_PROTO_ClearQueue done [12:38:10]KKMCreateOFDPacket [12:38:10]OFDProtocolAddRootSTLVToBuf [12:38:10]FM_MakeSignedData [12:38:10]FM_MakeSignedData [12:38:10]SAM_PROTO_SignData [12:38:10]wFMCommunicate request_size=4 [12:38:10]MH_SAM_APDU [12:38:10]CAPDU: 80 0D 01 02 [12:38:10]Write to MH i2c: E2 08 00 8D 15 80 0D 01 02 00 00 00 00 1B [12:38:10]Write i2c OK [12:38:10]MH_I2C_Read... [12:38:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:10]Read from MH i2c: E2 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 03 00 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 03 00 8D 15 00 90 00 16 [12:38:10]RAPDU: 90 00 [12:38:10]wFMCommunicate OK [12:38:10]wFMCommunicate request_size=255 [12:38:10]MH_SAM_APDU [12:38:10]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 32 71 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 74 00 00 35 04 06 00 5B C5 [12:38:10]Write to MH i2c: E2 02 01 8E 15 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 32 71 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 74 00 00 35 04 06 00 5B C5 00 00 05 [12:38:10]Write i2c OK [12:38:10]MH_I2C_Read... [12:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:10]Read from MH i2c: E2 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 03 00 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 03 00 8E 15 00 90 00 17 [12:38:10]RAPDU: 90 00 [12:38:10]wFMCommunicate OK [12:38:10]wFMCommunicate request_size=9 [12:38:10]MH_SAM_APDU [12:38:10]CAPDU: 80 0D 02 02 04 AE BE A1 92 [12:38:10]Write to MH i2c: E2 0C 00 8F 15 80 0D 02 02 04 00 AE BE A1 92 00 00 C5 [12:38:10]Write i2c OK [12:38:10]MH_I2C_Read... [12:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:10]Read from MH i2c: E2 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 03 00 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 03 00 8F 15 00 90 00 18 [12:38:10]RAPDU: 90 00 [12:38:10]wFMCommunicate OK [12:38:10]wFMCommunicate request_size=4 [12:38:10]MH_SAM_APDU [12:38:10]CAPDU: 80 0D 03 02 [12:38:10]Write to MH i2c: E2 08 00 90 15 80 0D 03 02 00 00 00 00 20 [12:38:10]Write i2c OK [12:38:10]MH_I2C_Read... [12:38:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:10]Read from MH i2c: E2 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 0B 00 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 0B 00 90 15 00 11 9F 27 17 BD ED 41 6C 90 00 66 [12:38:10]RAPDU: 11 9F 27 17 BD ED 41 6C 90 00 [12:38:10]wFMCommunicate OK [12:38:10]SAM_PROTO_SignData done [12:38:10]FM_MakeSignedData done [12:38:10]CreateOFDProtocolMessage [12:38:10]wFMCommunicate request_size=4 [12:38:10]MH_SAM_APDU [12:38:10]CAPDU: 80 11 00 00 [12:38:10]Write to MH i2c: E2 08 00 91 15 80 11 00 00 00 00 00 00 20 [12:38:10]Write i2c OK [12:38:10]MH_I2C_Read... [12:38:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:10]Read from MH i2c: E2 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 17 00 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: E2 17 00 91 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6F [12:38:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:38:10]wFMCommunicate OK [12:38:10]CreateOFDProtocolMessage done [12:38:10]OFDSenderStorePacket 29822 [12:38:10]StoreOFDPacket docnum=29822 [12:38:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 D0 B2 06 01 C5 F9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 32 71 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 74 00 00 35 04 06 00 5B C5 AE BE A1 92 11 9F 27 17 BD ED 41 6C [12:38:10]CheckFolder [12:38:10]dirname=/storage/ofd_packets [12:38:10]CheckFolder done [12:38:10]ProducePacketName [12:38:10]name=ofd_packets/00029822 [12:38:10]NVStorageSaveData ofd_packets/00029822 [12:38:10]File name is /storage/ofd_packets/00029822 [12:38:10]Write 300 bytes [12:38:10]NVStorageSaveData done [12:38:10]OFDSenderStorePacket done [12:38:10]KKMCreateOFDPacket done [12:38:10]NVStorageSaveData kkm_last_timestamp [12:38:10]File name is /storage/kkm_last_timestamp [12:38:10]Write 4 bytes [12:38:10]NVStorageSaveData done [12:38:10]ExternCall_PrintAddStr [12:38:10]wPrintStart [12:38:10]Write to MH i2c: 01 00 00 92 15 A7 [12:38:10]Write i2c OK [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: 01 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: 01 07 00 [12:38:10]MH_I2C_Read... [12:38:10]Read from MH i2c: 01 07 00 92 15 00 00 00 00 00 FF 0F BC [12:38:10]RasterBufferAndPrint [12:38:10]line Счет N : (1)348326 [12:38:10]line ИНН: 02508201610067 [12:38:10]line Контрольно-Кассовый Чек [12:38:10]line ПРОДАЖА [12:38:10]line ТРК (МРК, ГНК) : 71 [12:38:10]line Товар: 2711129700 [12:38:10]line ГАЗ-К-5 [12:38:10]line 14.980 * 33.40 [12:38:10]line = 500.33 [12:38:10]line НДС 12% НСП 1% [12:38:10]line > о реализуемом товаре [12:38:10]line ИТОГО: 500.33 [12:38:10]line НСП 1% : 4.43 [12:38:10]line НДС 12% : 53.13 [12:38:10]line Наличными: 0.00 [12:38:10]line Безнал.: 500.33 [12:38:10]line Место: АЗС № 108 "Партнер Нефть" [12:38:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:38:10]line СНО: Общий режим [12:38:10]line Чек 96 16.04.2024 12:38 [12:38:10]line Смена: 118 ФФД: 1.0 [12:38:10]line ЗНМ: 0300000027 [12:38:10]line РНМ: 0000138879044617 [12:38:10]line Версия ККМ: 001 [12:38:11]line Платежная система: АКБ Кыргызстан [12:38:11]line ФМ: 0000000000963154 [12:38:11]line ФД: 29822 [12:38:11]line ФПД: 100904598413714 [12:38:11]line 1/tax-web-control/client/api/v1/ticket?date=20240416T123810&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29822&fm=100904598413714&tin=02508201610067®Number=0000138879044617&sum=50033 [12:38:11]OFD Sender: Processing packet 29822 [packets to send 8, broken 7] [12:38:11]ProducePacketName [12:38:11]name=ofd_packets/00029822 [12:38:11]OFD Sender: To server: pG, [12:38:11]CommunicateWithHost lk.salyk.kg:30040 [12:38:11]ConnectInit lk.salyk.kg [12:38:11]written 0, free lines is 4095 [12:38:11]Connected sock=10 [12:38:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 D0 B2 06 01 C5 F9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 32 71 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 74 00 00 35 04 06 00 5B C5 AE BE A1 92 11 9F 27 17 BD ED 41 6C [12:38:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D7 69 47 00 64 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 74 00 00 F4 03 04 00 D1 1B 1E 66 B6 04 01 00 00 3F 42 10 AB F5 6C 9D 74 [12:38:11]CommunicateWithHost err = 0 [12:38:11]CheckOFDResponse [12:38:11]1017 (14) - 77093643461234 [12:38:11]1041 (16) - 0000000000963154 [12:38:11]1040 (4) - 29822 [12:38:11]1012 (4) - 16.04.2024 06:33 [12:38:11]1206 (1) - 0 [12:38:11]OFD Sender: Remove packet 29822 [12:38:11]ProducePacketName [12:38:11]name=ofd_packets/00029822 [12:38:11]NVStorageDeleteData [12:38:11]Write to MH i2c: 01 00 00 BB 15 D0 [12:38:11]Write i2c OK [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: 01 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: 01 07 00 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: 01 07 00 BB 15 00 00 00 00 00 D8 0C BB [12:38:11]RasterBufferAndPrint [12:38:11]line [12:38:11]line [12:38:11]line [12:38:11]line [12:38:11]line [12:38:11]written 0, free lines is 3294 [12:38:11]MH_Cut [12:38:11]Write to MH i2c: D1 01 00 C2 15 01 A9 [12:38:11]Write i2c OK [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: D1 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: D1 01 00 [12:38:11]MH_I2C_Read... [12:38:11]Read from MH i2c: D1 01 00 C2 15 00 A8 [12:38:11]Write to MH i2c: 01 00 00 C3 15 D8 [12:38:11]Write i2c OK [12:38:11]MH_I2C_Read... [12:38:11]OFD Sender: No OFD packet to send [12:38:12]*** Cut start [12:38:12]*** Partial cut [12:38:12]*** CUTSNS_PIN = 1 [12:38:12]*** CUTSNS_PIN = 0 [12:38:12]*** Brake cut motor [12:38:13]Read from MH i2c: 01 [12:38:13]MH_I2C_Read... [12:38:13]*** Stop cut motor [12:38:13]*** Cut end [12:38:13]Read from MH i2c: 01 07 00 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: 01 07 00 C3 15 00 00 00 00 00 FF 0F ED [12:38:13]process_action close_receipt done [12:38:13]requested_data is exist [12:38:13]produce_requested_data [12:38:13]requested_item fm.sn is exist - process it [12:38:13]wFMCommunicate request_size=4 [12:38:13]MH_SAM_APDU [12:38:13]CAPDU: 80 11 00 00 [12:38:13]Write to MH i2c: E2 08 00 C4 15 80 11 00 00 00 00 00 00 53 [12:38:13]Write i2c OK [12:38:13]MH_I2C_Read... [12:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:13]Read from MH i2c: E2 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: E2 17 00 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: E2 17 00 C4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A2 [12:38:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:38:13]wFMCommunicate OK [12:38:13]requested_item fd.num is exist - process it [12:38:13]SAM_PROTO_GetFieldsCounters [12:38:13]wFMCommunicate request_size=4 [12:38:13]MH_SAM_APDU [12:38:13]CAPDU: 80 13 00 00 [12:38:13]Write to MH i2c: E2 08 00 C5 15 80 13 00 00 00 00 00 00 56 [12:38:13]Write i2c OK [12:38:13]MH_I2C_Read... [12:38:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:13]Read from MH i2c: E2 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: E2 62 00 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: E2 62 00 C5 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7E 74 00 00 0E 04 04 00 76 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 1C [12:38:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7E 74 00 00 0E 04 04 00 76 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 [12:38:13]wFMCommunicate OK [12:38:13]SAM_PROTO_GetFieldsCounters done [12:38:13]requested_item shift.num is exist - process it [12:38:13]requested_item shift.opened is exist - process it [12:38:13]req_shift_opened [12:38:13]FM_GetShiftState [12:38:13]SAM_PROTO_GetShiftState [12:38:13]wFMCommunicate request_size=4 [12:38:13]MH_SAM_APDU [12:38:13]CAPDU: 80 13 01 00 [12:38:13]Write to MH i2c: E2 08 00 C6 15 80 13 01 00 00 00 00 00 58 [12:38:13]Write i2c OK [12:38:13]MH_I2C_Read... [12:38:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:13]Read from MH i2c: E2 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: E2 0E 00 [12:38:13]MH_I2C_Read... [12:38:13]Read from MH i2c: E2 0E 00 C6 15 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 06 [12:38:13]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:38:13]wFMCommunicate OK [12:38:13]SAM_PROTO_GetShiftState done [12:38:13]FM_GetShiftState done [12:38:13]req_shift_opened done [12:38:13]requested_item shift.open_date is exist - process it [12:38:13]req_shift_open_date [12:38:13]req_shift_open_date done [12:38:13]produce_requested_data done [12:38:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29822,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [12:38:13]process_action_free close_receipt [12:38:13]json_value_free [12:38:13]json_value_free done [12:38:13]process_json_proto returns [12:38:13]Send response to host [12:38:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29822,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [12:38:13]free response buf [12:38:13]execute_script done [12:38:13]execute_script returns [12:38:13]free content buf [12:38:13]Sock 9.Close socket [12:38:13]Sock 9.Thread stoped [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:43]accept exits with 7 [12:40:43]New connection [12:40:43]New thread 3067133284 created [12:40:43]Thread 3067276644 joined [12:40:43]Waiting for new connection... [12:40:43] Sock 7.Parse request [12:40:43]Sock 7.Check first char [12:40:43]Sock 7.First char is OK [12:40:43]request: POST /json_proto HTTP/1.0 [12:40:43]Method: POST [12:40:43]URL: /json_proto [12:40:43]Method is POST - this is cgi request [12:40:43]url: /json_proto [12:40:43]query_string will be loaded in cgi processing [12:40:43]execute_cgi json_proto POST (null) [12:40:43]execute_cgi path=json_proto method=POST [12:40:43]POST find Content-Length [12:40:43]Host: 172.17.33.3:8080 [12:40:43]Content-Length: 812 [12:40:43]Content-Type: application/json [12:40:43] [12:40:43]POST finish read [12:40:43]Found Content-Length = 812 [12:40:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:43]execute_script... [12:40:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:43]POST & json_proto [12:40:43]process_json_proto [12:40:43]json parsed OK: [12:40:43]protocol is kg_v1.0 [12:40:43]action value=close_receipt [12:40:43]process_action close_receipt [12:40:43]cmd_close_receipt [12:40:43]MH_GetDate [12:40:43]Write to MH i2c: F0 00 00 C7 15 CB [12:40:43]Write i2c OK [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: F0 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: F0 09 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: F0 09 00 C7 15 00 CD 71 1E 66 23 5B 8F 65 08 [12:40:43]GetLastDocTimeStamp 1713271090 [12:40:43]current date 1713271245 [12:40:43]FM_GetShiftState [12:40:43]SAM_PROTO_GetShiftState [12:40:43]wFMCommunicate request_size=4 [12:40:43]MH_SAM_APDU [12:40:43]CAPDU: 80 13 01 00 [12:40:43]Write to MH i2c: E2 08 00 C8 15 80 13 01 00 00 00 00 00 5A [12:40:43]Write i2c OK [12:40:43]MH_I2C_Read... [12:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:43]Read from MH i2c: E2 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 0E 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 0E 00 C8 15 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 08 [12:40:43]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:40:43]wFMCommunicate OK [12:40:43]SAM_PROTO_GetShiftState done [12:40:43]FM_GetShiftState done [12:40:43]opened in 1713226843 [12:40:43]opened+sec_in_day 1713313243 [12:40:43]quantity*price = 150024 [12:40:43]sum+1 = 150025 [12:40:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.24 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.24 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 97 16.04.2024 12:40 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29823 ФПД: 42293471106985 1/tax-web-control/client/api/v1/ticket?date=20240416T124045&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29823&fm=42293471106985&tin=02508201610067®Number=0000138879044617&sum=150024 [12:40:44]StoreToDocumentArchive [12:40:44]shift 118 fd 29823 [12:40:44]save to /storage/0118/doc_00029823 [12:40:44]save last doc name /storage/0118/doc_00029823 to /storage/kkm_last_doc_name [12:40:44]save OK [12:40:44]Clear old archive folders... [12:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:40:44]tlvbuf is 0014ED60 [12:40:44]SAM_PROTO_ClearQueue [12:40:44]wFMCommunicate request_size=4 [12:40:44]MH_SAM_APDU [12:40:44]CAPDU: 80 09 00 00 [12:40:44]Write to MH i2c: E2 08 00 D5 15 80 09 00 00 00 00 00 00 5C [12:40:44]Write i2c OK [12:40:44]MH_I2C_Read... [12:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:44]Read from MH i2c: E2 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: E2 03 00 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: E2 03 00 D5 15 00 90 00 5E [12:40:44]RAPDU: 90 00 [12:40:44]wFMCommunicate OK [12:40:44]SAM_PROTO_ClearQueue done [12:40:44]KKMCreateOFDPacket [12:40:44]OFDProtocolAddRootSTLVToBuf [12:40:44]FM_MakeSignedData [12:40:44]FM_MakeSignedData [12:40:44]SAM_PROTO_SignData [12:40:44]wFMCommunicate request_size=4 [12:40:44]MH_SAM_APDU [12:40:44]CAPDU: 80 0D 01 02 [12:40:44]Write to MH i2c: E2 08 00 D6 15 80 0D 01 02 00 00 00 00 64 [12:40:44]Write i2c OK [12:40:44]MH_I2C_Read... [12:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:44]Read from MH i2c: E2 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: E2 03 00 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: E2 03 00 D6 15 00 90 00 5F [12:40:44]RAPDU: 90 00 [12:40:44]wFMCommunicate OK [12:40:44]wFMCommunicate request_size=255 [12:40:44]MH_SAM_APDU [12:40:44]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CD 71 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 74 00 00 35 04 06 00 [12:40:44]Write to MH i2c: E2 02 01 D7 15 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CD 71 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 74 00 00 35 04 06 00 00 00 A2 [12:40:44]Write i2c OK [12:40:44]MH_I2C_Read... [12:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:45]Read from MH i2c: E2 [12:40:45]MH_I2C_Read... [12:40:45]Read from MH i2c: E2 03 00 [12:40:45]MH_I2C_Read... [12:40:45]Read from MH i2c: E2 03 00 D7 15 00 90 00 60 [12:40:45]RAPDU: 90 00 [12:40:45]wFMCommunicate OK [12:40:45]wFMCommunicate request_size=11 [12:40:45]MH_SAM_APDU [12:40:45]CAPDU: 80 0D 02 02 06 26 77 37 52 57 A9 [12:40:45]Write to MH i2c: E2 0E 00 D8 15 80 0D 02 02 06 00 26 77 37 52 57 A9 00 00 99 [12:40:45]Write i2c OK [12:40:45]MH_I2C_Read... [12:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:45]Read from MH i2c: E2 [12:40:45]MH_I2C_Read... [12:40:45]Read from MH i2c: E2 03 00 [12:40:45]MH_I2C_Read... [12:40:45]Read from MH i2c: E2 03 00 D8 15 00 90 00 61 [12:40:45]RAPDU: 90 00 [12:40:45]wFMCommunicate OK [12:40:45]wFMCommunicate request_size=4 [12:40:45]MH_SAM_APDU [12:40:45]CAPDU: 80 0D 03 02 [12:40:45]Write to MH i2c: E2 08 00 D9 15 80 0D 03 02 00 00 00 00 69 [12:40:45]Write i2c OK [12:40:45]MH_I2C_Read... [12:40:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:45]Read from MH i2c: E2 [12:40:45]MH_I2C_Read... [12:40:45]Read from MH i2c: E2 0B 00 [12:40:45]MH_I2C_Read... [12:40:45]Read from MH i2c: E2 0B 00 D9 15 00 DE 09 79 CB C6 2F 41 DD 90 00 A8 [12:40:45]RAPDU: DE 09 79 CB C6 2F 41 DD 90 00 [12:40:45]wFMCommunicate OK [12:40:45]SAM_PROTO_SignData done [12:40:45]FM_MakeSignedData done [12:40:45]CreateOFDProtocolMessage [12:40:45]wFMCommunicate request_size=4 [12:40:45]MH_SAM_APDU [12:40:45]CAPDU: 80 11 00 00 [12:40:45]Write to MH i2c: E2 08 00 DA 15 80 11 00 00 00 00 00 00 69 [12:40:45]Write i2c OK [12:40:45]MH_I2C_Read... [12:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:45]Read from MH i2c: E2 [12:40:45]MH_I2C_Read... [12:40:45]Read from MH i2c: E2 17 00 [12:40:45]MH_I2C_Read... [12:40:45]Read from MH i2c: E2 17 00 DA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B8 [12:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:40:45]wFMCommunicate OK [12:40:45]CreateOFDProtocolMessage done [12:40:45]OFDSenderStorePacket 29823 [12:40:45]StoreOFDPacket docnum=29823 [12:40:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 B9 C9 08 01 01 05 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CD 71 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 74 00 00 35 04 06 00 26 77 37 52 57 A9 DE 09 79 CB C6 2F 41 DD [12:40:45]CheckFolder [12:40:45]dirname=/storage/ofd_packets [12:40:45]CheckFolder done [12:40:45]ProducePacketName [12:40:45]name=ofd_packets/00029823 [12:40:45]NVStorageSaveData ofd_packets/00029823 [12:40:45]File name is /storage/ofd_packets/00029823 [12:40:45]Write 302 bytes [12:40:45]NVStorageSaveData done [12:40:45]OFDSenderStorePacket done [12:40:45]KKMCreateOFDPacket done [12:40:45]NVStorageSaveData kkm_last_timestamp [12:40:45]File name is /storage/kkm_last_timestamp [12:40:45]Write 4 bytes [12:40:45]NVStorageSaveData done [12:40:45]ExternCall_PrintAddStr [12:40:45]wPrintStart [12:40:45]Write to MH i2c: 01 00 00 DB 15 F0 [12:40:45]Write i2c OK [12:40:45]MH_I2C_Read... [12:40:45]Read from MH i2c: 01 [12:40:45]MH_I2C_Read... [12:40:45]Read from MH i2c: 01 07 00 [12:40:45]MH_I2C_Read... [12:40:45]Read from MH i2c: 01 07 00 DB 15 00 00 00 00 00 FF 0F 05 [12:40:45]RasterBufferAndPrint [12:40:45]line Счет N : (1)348327 [12:40:45]line ИНН: 02508201610067 [12:40:45]line Контрольно-Кассовый Чек [12:40:45]line ПРОДАЖА [12:40:45]line ТРК (МРК, ГНК) : 41 [12:40:45]line Товар: 2710124130 [12:40:45]line SUPER-92-К-5 [12:40:45]line 22.800 * 65.80 [12:40:45]line = 1500.24 [12:40:45]line НДС 12% НСП 1% [12:40:45]line > о реализуемом товаре [12:40:45]line ИТОГО: 1500.24 [12:40:45]line НСП 1% : 13.28 [12:40:45]line НДС 12% : 159.32 [12:40:45]line Наличными: 0.00 [12:40:45]line Безнал.: 1500.24 [12:40:45]line Место: АЗС № 108 "Партнер Нефть" [12:40:45]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:40:45]line СНО: Общий режим [12:40:45]line Чек 97 16.04.2024 12:40 [12:40:45]line Смена: 118 ФФД: 1.0 [12:40:45]line ЗНМ: 0300000027 [12:40:45]line РНМ: 0000138879044617 [12:40:45]line Версия ККМ: 001 [12:40:45]line Платежная система: Бакай Банк [12:40:45]line ФМ: 0000000000963154 [12:40:45]line ФД: 29823 [12:40:45]line ФПД: 42293471106985 [12:40:45]line 1/tax-web-control/client/api/v1/ticket?date=20240416T124045&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29823&fm=42293471106985&tin=02508201610067®Number=0000138879044617&sum=150024 [12:40:45]OFD Sender: Processing packet 29823 [packets to send 8, broken 7] [12:40:45]ProducePacketName [12:40:45]name=ofd_packets/00029823 [12:40:45]OFD Sender: To server: pG, [12:40:45]CommunicateWithHost lk.salyk.kg:30040 [12:40:45]ConnectInit lk.salyk.kg [12:40:45]written 0, free lines is 4095 [12:40:45]Connected sock=10 [12:40:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 B9 C9 08 01 01 05 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CD 71 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 74 00 00 35 04 06 00 26 77 37 52 57 A9 DE 09 79 CB C6 2F 41 DD [12:40:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5B EC 47 00 A6 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 7F 74 00 00 F4 03 04 00 6B 1C 1E 66 B6 04 01 00 00 B0 01 F5 4D 74 7F 03 8B [12:40:45]CommunicateWithHost err = 0 [12:40:45]CheckOFDResponse [12:40:45]1017 (14) - 77093643461234 [12:40:45]1041 (16) - 0000000000963154 [12:40:45]1040 (4) - 29823 [12:40:45]1012 (4) - 16.04.2024 06:36 [12:40:45]1206 (1) - 0 [12:40:45]OFD Sender: Remove packet 29823 [12:40:45]ProducePacketName [12:40:45]name=ofd_packets/00029823 [12:40:45]NVStorageDeleteData [12:40:46]Write to MH i2c: 01 00 00 04 16 1A [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: 01 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: 01 07 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: 01 07 00 04 16 00 00 00 00 00 DC 0C 09 [12:40:46]RasterBufferAndPrint [12:40:46]line [12:40:46]line [12:40:46]line [12:40:46]line [12:40:46]line [12:40:46]written 0, free lines is 3299 [12:40:46]MH_Cut [12:40:46]Write to MH i2c: D1 01 00 0B 16 01 F3 [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: D1 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: D1 01 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: D1 01 00 0B 16 00 F2 [12:40:46]Write to MH i2c: 01 00 00 0C 16 22 [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]OFD Sender: No OFD packet to send [12:40:46]*** Cut start [12:40:46]*** Partial cut [12:40:46]*** CUTSNS_PIN = 1 [12:40:46]*** CUTSNS_PIN = 0 [12:40:47]*** Brake cut motor [12:40:47]Read from MH i2c: 01 [12:40:47]MH_I2C_Read... [12:40:47]*** Stop cut motor [12:40:47]*** Cut end [12:40:47]Read from MH i2c: 01 07 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: 01 07 00 0C 16 00 00 00 00 00 FF 0F 37 [12:40:47]process_action close_receipt done [12:40:47]requested_data is exist [12:40:47]produce_requested_data [12:40:47]requested_item fm.sn is exist - process it [12:40:47]wFMCommunicate request_size=4 [12:40:47]MH_SAM_APDU [12:40:47]CAPDU: 80 11 00 00 [12:40:47]Write to MH i2c: E2 08 00 0D 16 80 11 00 00 00 00 00 00 9D [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:47]Read from MH i2c: E2 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 17 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 17 00 0D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EC [12:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:40:47]wFMCommunicate OK [12:40:47]requested_item fd.num is exist - process it [12:40:47]SAM_PROTO_GetFieldsCounters [12:40:47]wFMCommunicate request_size=4 [12:40:47]MH_SAM_APDU [12:40:47]CAPDU: 80 13 00 00 [12:40:47]Write to MH i2c: E2 08 00 0E 16 80 13 00 00 00 00 00 00 A0 [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:47]Read from MH i2c: E2 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 62 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 62 00 0E 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7F 74 00 00 0E 04 04 00 76 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 6A [12:40:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7F 74 00 00 0E 04 04 00 76 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 [12:40:47]wFMCommunicate OK [12:40:47]SAM_PROTO_GetFieldsCounters done [12:40:47]requested_item shift.num is exist - process it [12:40:47]requested_item shift.opened is exist - process it [12:40:47]req_shift_opened [12:40:47]FM_GetShiftState [12:40:47]SAM_PROTO_GetShiftState [12:40:47]wFMCommunicate request_size=4 [12:40:47]MH_SAM_APDU [12:40:47]CAPDU: 80 13 01 00 [12:40:47]Write to MH i2c: E2 08 00 0F 16 80 13 01 00 00 00 00 00 A2 [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:47]Read from MH i2c: E2 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 0E 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 0E 00 0F 16 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 50 [12:40:47]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:40:47]wFMCommunicate OK [12:40:47]SAM_PROTO_GetShiftState done [12:40:47]FM_GetShiftState done [12:40:47]req_shift_opened done [12:40:47]requested_item shift.open_date is exist - process it [12:40:47]req_shift_open_date [12:40:47]req_shift_open_date done [12:40:47]produce_requested_data done [12:40:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29823,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [12:40:47]process_action_free close_receipt [12:40:47]json_value_free [12:40:47]json_value_free done [12:40:47]process_json_proto returns [12:40:47]Send response to host [12:40:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29823,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [12:40:47]free response buf [12:40:47]execute_script done [12:40:47]execute_script returns [12:40:47]free content buf [12:40:47]Sock 7.Close socket [12:40:47]Sock 7.Thread stoped [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]accept exits with 9 [12:41:21]New connection [12:41:21]New thread 3067276644 created [12:41:21]Thread 3067133284 joined [12:41:21]Waiting for new connection... [12:41:21] Sock 9.Parse request [12:41:21]Sock 9.Check first char [12:41:21]Sock 9.First char is OK [12:41:21]request: POST /json_proto HTTP/1.0 [12:41:21]Method: POST [12:41:21]URL: /json_proto [12:41:21]Method is POST - this is cgi request [12:41:21]url: /json_proto [12:41:21]query_string will be loaded in cgi processing [12:41:21]execute_cgi json_proto POST (null) [12:41:21]execute_cgi path=json_proto method=POST [12:41:21]POST find Content-Length [12:41:21]Host: 172.17.33.3:8080 [12:41:21]Content-Length: 1205 [12:41:21]Content-Type: application/json [12:41:21] [12:41:21]POST finish read [12:41:21]Found Content-Length = 1205 [12:41:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348325\u000A16.04.2024 12:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 130.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 9477.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68982\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:21]execute_script... [12:41:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348325\u000A16.04.2024 12:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 130.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 9477.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68982\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:21]POST & json_proto [12:41:21]process_json_proto [12:41:21]json parsed OK: [12:41:21]protocol is kg_v1.0 [12:41:21]action value=print_text [12:41:21]process_action print_text [12:41:21]cmd_print_text [12:41:21]ExternCall_PrintAddStr [12:41:21]wPrintStart [12:41:21]Write to MH i2c: 01 00 00 10 16 26 [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: 01 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: 01 07 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: 01 07 00 10 16 00 00 00 00 00 FF 0F 3B [12:41:21]RasterBufferAndPrint [12:41:21]line *****ТОВАРНЫЙ ЧЕК***** [12:41:21]line АЗС 108 [12:41:21]line Партнер нефть [12:41:21]line 02508201610067 [12:41:21]line Кассир : Шадыканова Ж. [12:41:21]line Счет N : (1)348325 [12:41:21]line 16.04.2024 12:22 [12:41:21]line ПРОДАЖА [12:41:21]line ТРК (МРК, ГНК): 51 [12:41:21]line Вид ГСМ : 2710194210 [12:41:21]line ДТ-К-5 [12:41:21]line 130.000 x 72.90 [12:41:21]line ИТОГ: 9477.00 [12:41:21]line Тип оплаты: Талоны: Топливная Карта [12:41:21]line 68982 [12:41:21]line ______________________ [12:41:21]line (подпись) [12:41:21]written 0, free lines is 4095 [12:41:21]OFD Sender: No OFD packet to send [12:41:21]Write to MH i2c: 01 00 00 25 16 3B [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: 01 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: 01 07 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: 01 07 00 25 16 00 00 00 00 00 F4 0D 43 [12:41:21]RasterBufferAndPrint [12:41:21]line [12:41:21]line [12:41:21]line [12:41:21]line [12:41:21]line [12:41:21]written 0, free lines is 3574 [12:41:21]MH_Cut [12:41:21]Write to MH i2c: D1 01 00 2C 16 01 14 [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: D1 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: D1 01 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: D1 01 00 2C 16 00 13 [12:41:21]Write to MH i2c: 01 00 00 2D 16 43 [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:22]*** Cut start [12:41:22]*** Partial cut [12:41:22]*** CUTSNS_PIN = 1 [12:41:22]*** CUTSNS_PIN = 0 [12:41:22]*** Brake cut motor [12:41:22]Read from MH i2c: 01 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: 01 07 00 [12:41:22]MH_I2C_Read... [12:41:22]*** Stop cut motor [12:41:22]*** Cut end [12:41:22]Read from MH i2c: 01 07 00 2D 16 00 00 00 00 00 FF 0F 58 [12:41:22]process_action print_text done [12:41:22]requested_data is exist [12:41:22]produce_requested_data [12:41:22]requested_item fm.sn is exist - process it [12:41:22]wFMCommunicate request_size=4 [12:41:22]MH_SAM_APDU [12:41:22]CAPDU: 80 11 00 00 [12:41:22]Write to MH i2c: E2 08 00 2E 16 80 11 00 00 00 00 00 00 BE [12:41:22]Write i2c OK [12:41:22]MH_I2C_Read... [12:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:22]Read from MH i2c: E2 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 17 00 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 17 00 2E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0D [12:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:41:22]wFMCommunicate OK [12:41:22]requested_item fd.num is exist - process it [12:41:22]SAM_PROTO_GetFieldsCounters [12:41:22]wFMCommunicate request_size=4 [12:41:22]MH_SAM_APDU [12:41:22]CAPDU: 80 13 00 00 [12:41:22]Write to MH i2c: E2 08 00 2F 16 80 13 00 00 00 00 00 00 C1 [12:41:22]Write i2c OK [12:41:22]MH_I2C_Read... [12:41:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:22]Read from MH i2c: E2 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 62 00 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 62 00 2F 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7F 74 00 00 0E 04 04 00 76 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 8B [12:41:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7F 74 00 00 0E 04 04 00 76 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 [12:41:22]wFMCommunicate OK [12:41:22]SAM_PROTO_GetFieldsCounters done [12:41:22]requested_item shift.num is exist - process it [12:41:22]requested_item shift.opened is exist - process it [12:41:22]req_shift_opened [12:41:22]FM_GetShiftState [12:41:22]SAM_PROTO_GetShiftState [12:41:22]wFMCommunicate request_size=4 [12:41:22]MH_SAM_APDU [12:41:22]CAPDU: 80 13 01 00 [12:41:22]Write to MH i2c: E2 08 00 30 16 80 13 01 00 00 00 00 00 C3 [12:41:22]Write i2c OK [12:41:22]MH_I2C_Read... [12:41:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:22]Read from MH i2c: E2 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 0E 00 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 0E 00 30 16 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 71 [12:41:22]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:41:22]wFMCommunicate OK [12:41:22]SAM_PROTO_GetShiftState done [12:41:22]FM_GetShiftState done [12:41:22]req_shift_opened done [12:41:22]requested_item shift.open_date is exist - process it [12:41:22]req_shift_open_date [12:41:22]req_shift_open_date done [12:41:22]produce_requested_data done [12:41:22]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29823,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [12:41:22]process_action_free print_text [12:41:22]json_value_free [12:41:22]json_value_free done [12:41:22]process_json_proto returns [12:41:22]Send response to host [12:41:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29823,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [12:41:22]free response buf [12:41:22]execute_script done [12:41:22]execute_script returns [12:41:22]free content buf [12:41:22]Sock 9.Close socket [12:41:22]Sock 9.Thread stoped [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:18]accept exits with 7 [12:43:18]New connection [12:43:18]New thread 3067133284 created [12:43:18]Thread 3067276644 joined [12:43:18]Waiting for new connection... [12:43:18] Sock 7.Parse request [12:43:18]Sock 7.Check first char [12:43:18]Sock 7.First char is OK [12:43:18]request: POST /json_proto HTTP/1.0 [12:43:18]Method: POST [12:43:18]URL: /json_proto [12:43:18]Method is POST - this is cgi request [12:43:18]url: /json_proto [12:43:18]query_string will be loaded in cgi processing [12:43:18]execute_cgi json_proto POST (null) [12:43:18]execute_cgi path=json_proto method=POST [12:43:18]POST find Content-Length [12:43:18]Host: 172.17.33.3:8080 [12:43:18]Content-Length: 816 [12:43:18]Content-Type: application/json [12:43:18] [12:43:18]POST finish read [12:43:18]Found Content-Length = 816 [12:43:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:18]execute_script... [12:43:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:18]POST & json_proto [12:43:18]process_json_proto [12:43:18]json parsed OK: [12:43:18]protocol is kg_v1.0 [12:43:18]action value=close_receipt [12:43:18]process_action close_receipt [12:43:18]cmd_close_receipt [12:43:18]MH_GetDate [12:43:18]Write to MH i2c: F0 00 00 31 16 36 [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: F0 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: F0 09 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: F0 09 00 31 16 00 68 72 1E 66 23 5B 8F 65 0F [12:43:18]GetLastDocTimeStamp 1713271245 [12:43:18]current date 1713271400 [12:43:18]FM_GetShiftState [12:43:18]SAM_PROTO_GetShiftState [12:43:18]wFMCommunicate request_size=4 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 13 01 00 [12:43:18]Write to MH i2c: E2 08 00 32 16 80 13 01 00 00 00 00 00 C5 [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 0E 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 0E 00 32 16 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 73 [12:43:18]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:43:18]wFMCommunicate OK [12:43:18]SAM_PROTO_GetShiftState done [12:43:18]FM_GetShiftState done [12:43:18]opened in 1713226843 [12:43:18]opened+sec_in_day 1713313243 [12:43:18]quantity*price = 100018 [12:43:18]sum+1 = 100020 [12:43:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 98 16.04.2024 12:43 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29824 ФПД: 183849127317621 1/tax-web-control/client/api/v1/ticket?date=20240416T124320&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29824&fm=183849127317621&tin=02508201610067®Number=0000138879044617&sum=100019 [12:43:20]StoreToDocumentArchive [12:43:20]shift 118 fd 29824 [12:43:20]save to /storage/0118/doc_00029824 [12:43:20]save last doc name /storage/0118/doc_00029824 to /storage/kkm_last_doc_name [12:43:20]save OK [12:43:20]Clear old archive folders... [12:43:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:43:20]tlvbuf is 00171D60 [12:43:20]SAM_PROTO_ClearQueue [12:43:20]wFMCommunicate request_size=4 [12:43:20]MH_SAM_APDU [12:43:20]CAPDU: 80 09 00 00 [12:43:20]Write to MH i2c: E2 08 00 3F 16 80 09 00 00 00 00 00 00 C7 [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:20]Read from MH i2c: E2 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 03 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 03 00 3F 16 00 90 00 C9 [12:43:20]RAPDU: 90 00 [12:43:20]wFMCommunicate OK [12:43:20]SAM_PROTO_ClearQueue done [12:43:20]KKMCreateOFDPacket [12:43:20]OFDProtocolAddRootSTLVToBuf [12:43:20]FM_MakeSignedData [12:43:20]FM_MakeSignedData [12:43:20]SAM_PROTO_SignData [12:43:20]wFMCommunicate request_size=4 [12:43:20]MH_SAM_APDU [12:43:20]CAPDU: 80 0D 01 02 [12:43:20]Write to MH i2c: E2 08 00 40 16 80 0D 01 02 00 00 00 00 CF [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:20]Read from MH i2c: E2 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 03 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 03 00 40 16 00 90 00 CA [12:43:20]RAPDU: 90 00 [12:43:20]wFMCommunicate OK [12:43:20]wFMCommunicate request_size=255 [12:43:20]MH_SAM_APDU [12:43:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 68 72 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 74 00 00 35 04 06 00 A7 35 B5 ED [12:43:20]Write to MH i2c: E2 02 01 41 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 68 72 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 74 00 00 35 04 06 00 A7 35 B5 ED 00 00 20 [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:20]Read from MH i2c: E2 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 03 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 03 00 41 16 00 90 00 CB [12:43:20]RAPDU: 90 00 [12:43:20]wFMCommunicate OK [12:43:20]wFMCommunicate request_size=7 [12:43:20]MH_SAM_APDU [12:43:20]CAPDU: 80 0D 02 02 02 10 75 [12:43:20]Write to MH i2c: E2 0A 00 42 16 80 0D 02 02 02 00 10 75 00 00 5B [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:20]Read from MH i2c: E2 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 03 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 03 00 42 16 00 90 00 CC [12:43:20]RAPDU: 90 00 [12:43:20]wFMCommunicate OK [12:43:20]wFMCommunicate request_size=4 [12:43:20]MH_SAM_APDU [12:43:20]CAPDU: 80 0D 03 02 [12:43:20]Write to MH i2c: E2 08 00 43 16 80 0D 03 02 00 00 00 00 D4 [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:20]Read from MH i2c: E2 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 0B 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 0B 00 43 16 00 18 7F 06 55 63 03 44 DD 90 00 4E [12:43:20]RAPDU: 18 7F 06 55 63 03 44 DD 90 00 [12:43:20]wFMCommunicate OK [12:43:20]SAM_PROTO_SignData done [12:43:20]FM_MakeSignedData done [12:43:20]CreateOFDProtocolMessage [12:43:20]wFMCommunicate request_size=4 [12:43:20]MH_SAM_APDU [12:43:20]CAPDU: 80 11 00 00 [12:43:20]Write to MH i2c: E2 08 00 44 16 80 11 00 00 00 00 00 00 D4 [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:20]Read from MH i2c: E2 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 17 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 17 00 44 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 23 [12:43:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:43:20]wFMCommunicate OK [12:43:20]CreateOFDProtocolMessage done [12:43:20]OFDSenderStorePacket 29824 [12:43:20]StoreOFDPacket docnum=29824 [12:43:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 CC C5 04 01 F2 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 68 72 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 74 00 00 35 04 06 00 A7 35 B5 ED 10 75 18 7F 06 55 63 03 44 DD [12:43:20]CheckFolder [12:43:20]dirname=/storage/ofd_packets [12:43:20]CheckFolder done [12:43:20]ProducePacketName [12:43:20]name=ofd_packets/00029824 [12:43:20]NVStorageSaveData ofd_packets/00029824 [12:43:20]File name is /storage/ofd_packets/00029824 [12:43:20]Write 298 bytes [12:43:20]NVStorageSaveData done [12:43:20]OFDSenderStorePacket done [12:43:20]KKMCreateOFDPacket done [12:43:20]NVStorageSaveData kkm_last_timestamp [12:43:20]File name is /storage/kkm_last_timestamp [12:43:20]Write 4 bytes [12:43:20]NVStorageSaveData done [12:43:20]ExternCall_PrintAddStr [12:43:20]wPrintStart [12:43:20]Write to MH i2c: 01 00 00 45 16 5B [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: 01 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: 01 07 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: 01 07 00 45 16 00 00 00 00 00 FF 0F 70 [12:43:20]RasterBufferAndPrint [12:43:20]line Счет N : (1)348328 [12:43:20]line ИНН: 02508201610067 [12:43:20]line Контрольно-Кассовый Чек [12:43:20]line ПРОДАЖА [12:43:20]line ТРК (МРК, ГНК) : 11 [12:43:20]line Товар: 2710194210 [12:43:20]line ДТ-К-5 [12:43:20]line 13.720 * 72.90 [12:43:20]line = 1000.19 [12:43:20]line НДС 12% НСП 1% [12:43:20]line > о реализуемом товаре [12:43:20]line ИТОГО: 1000.19 [12:43:20]line НСП 1% : 8.85 [12:43:20]line НДС 12% : 106.21 [12:43:20]line Наличными: 0.00 [12:43:20]line Безнал.: 1000.19 [12:43:20]line Место: АЗС № 108 "Партнер Нефть" [12:43:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:43:20]line СНО: Общий режим [12:43:20]line Чек 98 16.04.2024 12:43 [12:43:20]line Смена: 118 ФФД: 1.0 [12:43:20]line ЗНМ: 0300000027 [12:43:20]line РНМ: 0000138879044617 [12:43:20]line Версия ККМ: 001 [12:43:20]line Платежная система: Бакай Банк [12:43:20]line ФМ: 0000000000963154 [12:43:20]line ФД: 29824 [12:43:20]line ФПД: 183849127317621 [12:43:20]line 1/tax-web-control/client/api/v1/ticket?date=20240416T124320&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29824&fm=183849127317621&tin=02508201610067®Number=0000138879044617&sum=100019 [12:43:20]OFD Sender: Processing packet 29824 [packets to send 8, broken 7] [12:43:20]ProducePacketName [12:43:20]name=ofd_packets/00029824 [12:43:20]OFD Sender: To server: pG, [12:43:20]CommunicateWithHost lk.salyk.kg:30040 [12:43:20]ConnectInit lk.salyk.kg [12:43:20]written 0, free lines is 4095 [12:43:20]Connected sock=10 [12:43:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 CC C5 04 01 F2 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 68 72 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 74 00 00 35 04 06 00 A7 35 B5 ED 10 75 18 7F 06 55 63 03 44 DD [12:43:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B2 A0 47 00 82 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 36 33 31 35 34 10 04 04 00 80 74 00 00 F4 03 04 00 06 1D 1E 66 B6 04 01 00 00 DE 7B 1A 87 29 5F 33 4D [12:43:21]CommunicateWithHost err = 0 [12:43:21]CheckOFDResponse [12:43:21]1017 (14) - 77093643461234 [12:43:21]1041 (16) - 0000000000963154 [12:43:21]1040 (4) - 29824 [12:43:21]1012 (4) - 16.04.2024 06:39 [12:43:21]1206 (1) - 0 [12:43:21]OFD Sender: Remove packet 29824 [12:43:21]ProducePacketName [12:43:21]name=ofd_packets/00029824 [12:43:21]NVStorageDeleteData [12:43:21]Write to MH i2c: 01 00 00 6E 16 84 [12:43:21]Write i2c OK [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: 01 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: 01 07 00 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: 01 07 00 6E 16 00 00 00 00 00 D2 0C 69 [12:43:21]RasterBufferAndPrint [12:43:21]line [12:43:21]line [12:43:21]line [12:43:21]line [12:43:21]line [12:43:21]written 0, free lines is 3286 [12:43:21]MH_Cut [12:43:21]Write to MH i2c: D1 01 00 75 16 01 5D [12:43:21]Write i2c OK [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: D1 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: D1 01 00 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: D1 01 00 75 16 00 5C [12:43:21]Write to MH i2c: 01 00 00 76 16 8C [12:43:21]Write i2c OK [12:43:21]MH_I2C_Read... [12:43:21]OFD Sender: No OFD packet to send [12:43:22]*** Cut start [12:43:22]*** Partial cut [12:43:22]*** CUTSNS_PIN = 1 [12:43:22]*** CUTSNS_PIN = 0 [12:43:22]*** Brake cut motor [12:43:22]Read from MH i2c: 01 [12:43:22]MH_I2C_Read... [12:43:22]*** Stop cut motor [12:43:22]*** Cut end [12:43:22]Read from MH i2c: 01 07 00 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: 01 07 00 76 16 00 00 00 00 00 FF 0F A1 [12:43:22]process_action close_receipt done [12:43:22]requested_data is exist [12:43:22]produce_requested_data [12:43:22]requested_item fm.sn is exist - process it [12:43:22]wFMCommunicate request_size=4 [12:43:22]MH_SAM_APDU [12:43:22]CAPDU: 80 11 00 00 [12:43:22]Write to MH i2c: E2 08 00 77 16 80 11 00 00 00 00 00 00 07 [12:43:22]Write i2c OK [12:43:22]MH_I2C_Read... [12:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:22]Read from MH i2c: E2 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 17 00 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 17 00 77 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 56 [12:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:43:22]wFMCommunicate OK [12:43:22]requested_item fd.num is exist - process it [12:43:22]SAM_PROTO_GetFieldsCounters [12:43:22]wFMCommunicate request_size=4 [12:43:22]MH_SAM_APDU [12:43:22]CAPDU: 80 13 00 00 [12:43:22]Write to MH i2c: E2 08 00 78 16 80 13 00 00 00 00 00 00 0A [12:43:22]Write i2c OK [12:43:22]MH_I2C_Read... [12:43:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:22]Read from MH i2c: E2 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 62 00 [12:43:22]MH_I2C_Read... [12:43:22]Read from MH i2c: E2 62 00 78 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 80 74 00 00 0E 04 04 00 76 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 D8 [12:43:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 80 74 00 00 0E 04 04 00 76 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 [12:43:22]wFMCommunicate OK [12:43:22]SAM_PROTO_GetFieldsCounters done [12:43:22]requested_item shift.num is exist - process it [12:43:22]requested_item shift.opened is exist - process it [12:43:22]req_shift_opened [12:43:22]FM_GetShiftState [12:43:22]SAM_PROTO_GetShiftState [12:43:22]wFMCommunicate request_size=4 [12:43:22]MH_SAM_APDU [12:43:22]CAPDU: 80 13 01 00 [12:43:22]Write to MH i2c: E2 08 00 79 16 80 13 01 00 00 00 00 00 0C [12:43:22]Write i2c OK [12:43:22]MH_I2C_Read... [12:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:23]Read from MH i2c: E2 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: E2 0E 00 [12:43:23]MH_I2C_Read... [12:43:23]Read from MH i2c: E2 0E 00 79 16 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 BA [12:43:23]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:43:23]wFMCommunicate OK [12:43:23]SAM_PROTO_GetShiftState done [12:43:23]FM_GetShiftState done [12:43:23]req_shift_opened done [12:43:23]requested_item shift.open_date is exist - process it [12:43:23]req_shift_open_date [12:43:23]req_shift_open_date done [12:43:23]produce_requested_data done [12:43:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29824,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [12:43:23]process_action_free close_receipt [12:43:23]json_value_free [12:43:23]json_value_free done [12:43:23]process_json_proto returns [12:43:23]Send response to host [12:43:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29824,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [12:43:23]free response buf [12:43:23]execute_script done [12:43:23]execute_script returns [12:43:23]free content buf [12:43:23]Sock 7.Close socket [12:43:23]Sock 7.Thread stoped [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:45:56]accept exits with 9 [12:45:56]New connection [12:45:56]New thread 3067276644 created [12:45:56]Thread 3067133284 joined [12:45:56]Waiting for new connection... [12:45:56] Sock 9.Parse request [12:45:56]Sock 9.Check first char [12:45:56]Sock 9.First char is OK [12:45:56]request: POST /json_proto HTTP/1.0 [12:45:56]Method: POST [12:45:56]URL: /json_proto [12:45:56]Method is POST - this is cgi request [12:45:56]url: /json_proto [12:45:56]query_string will be loaded in cgi processing [12:45:56]execute_cgi json_proto POST (null) [12:45:56]execute_cgi path=json_proto method=POST [12:45:56]POST find Content-Length [12:45:56]Host: 172.17.33.3:8080 [12:45:56]Content-Length: 670 [12:45:56]Content-Type: application/json [12:45:56] [12:45:56]POST finish read [12:45:56]Found Content-Length = 670 [12:45:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 6.840, "sum" : 450.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:56]execute_script... [12:45:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 6.840, "sum" : 450.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:56]POST & json_proto [12:45:56]process_json_proto [12:45:56]json parsed OK: [12:45:56]protocol is kg_v1.0 [12:45:56]action value=close_receipt [12:45:56]process_action close_receipt [12:45:56]cmd_close_receipt [12:45:56]MH_GetDate [12:45:56]Write to MH i2c: F0 00 00 7A 16 7F [12:45:56]Write i2c OK [12:45:56]MH_I2C_Read... [12:45:56]Read from MH i2c: F0 [12:45:56]MH_I2C_Read... [12:45:56]Read from MH i2c: F0 09 00 [12:45:56]MH_I2C_Read... [12:45:56]Read from MH i2c: F0 09 00 7A 16 00 06 73 1E 66 23 5B 8F 65 F7 [12:45:56]GetLastDocTimeStamp 1713271400 [12:45:56]current date 1713271558 [12:45:56]FM_GetShiftState [12:45:56]SAM_PROTO_GetShiftState [12:45:56]wFMCommunicate request_size=4 [12:45:56]MH_SAM_APDU [12:45:56]CAPDU: 80 13 01 00 [12:45:56]Write to MH i2c: E2 08 00 7B 16 80 13 01 00 00 00 00 00 0E [12:45:56]Write i2c OK [12:45:56]MH_I2C_Read... [12:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:56]Read from MH i2c: E2 [12:45:56]MH_I2C_Read... [12:45:56]Read from MH i2c: E2 0E 00 [12:45:56]MH_I2C_Read... [12:45:56]Read from MH i2c: E2 0E 00 7B 16 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 BC [12:45:56]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:45:56]wFMCommunicate OK [12:45:56]SAM_PROTO_GetShiftState done [12:45:56]FM_GetShiftState done [12:45:56]opened in 1713226843 [12:45:56]opened+sec_in_day 1713313243 [12:45:56]quantity*price = 45007 [12:45:56]sum+1 = 45008 [12:45:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 99 16.04.2024 12:45 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29825 ФПД: 262788773610904 1/tax-web-control/client/api/v1/ticket?date=20240416T124558&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29825&fm=262788773610904&tin=02508201610067®Number=0000138879044617&sum=45000 [12:45:57]StoreToDocumentArchive [12:45:57]shift 118 fd 29825 [12:45:57]save to /storage/0118/doc_00029825 [12:45:57]save last doc name /storage/0118/doc_00029825 to /storage/kkm_last_doc_name [12:45:57]save OK [12:45:57]Clear old archive folders... [12:45:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:45:57]tlvbuf is B6EF7720 [12:45:57]SAM_PROTO_ClearQueue [12:45:57]wFMCommunicate request_size=4 [12:45:57]MH_SAM_APDU [12:45:57]CAPDU: 80 09 00 00 [12:45:57]Write to MH i2c: E2 08 00 88 16 80 09 00 00 00 00 00 00 10 [12:45:57]Write i2c OK [12:45:57]MH_I2C_Read... [12:45:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:58]Read from MH i2c: E2 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: E2 03 00 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: E2 03 00 88 16 00 90 00 12 [12:45:58]RAPDU: 90 00 [12:45:58]wFMCommunicate OK [12:45:58]SAM_PROTO_ClearQueue done [12:45:58]KKMCreateOFDPacket [12:45:58]OFDProtocolAddRootSTLVToBuf [12:45:58]FM_MakeSignedData [12:45:58]FM_MakeSignedData [12:45:58]SAM_PROTO_SignData [12:45:58]wFMCommunicate request_size=4 [12:45:58]MH_SAM_APDU [12:45:58]CAPDU: 80 0D 01 02 [12:45:58]Write to MH i2c: E2 08 00 89 16 80 0D 01 02 00 00 00 00 18 [12:45:58]Write i2c OK [12:45:58]MH_I2C_Read... [12:45:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:58]Read from MH i2c: E2 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: E2 03 00 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: E2 03 00 89 16 00 90 00 13 [12:45:58]RAPDU: 90 00 [12:45:58]wFMCommunicate OK [12:45:58]wFMCommunicate request_size=255 [12:45:58]MH_SAM_APDU [12:45:58]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 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 06 73 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 74 00 00 35 04 06 00 [12:45:58]Write to MH i2c: E2 02 01 8A 16 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 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 06 73 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 74 00 00 35 04 06 00 00 00 0B [12:45:58]Write i2c OK [12:45:58]MH_I2C_Read... [12:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:58]Read from MH i2c: E2 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: E2 03 00 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: E2 03 00 8A 16 00 90 00 14 [12:45:58]RAPDU: 90 00 [12:45:58]wFMCommunicate OK [12:45:58]wFMCommunicate request_size=11 [12:45:58]MH_SAM_APDU [12:45:58]CAPDU: 80 0D 02 02 06 EF 01 47 80 85 98 [12:45:58]Write to MH i2c: E2 0E 00 8B 16 80 0D 02 02 06 00 EF 01 47 80 85 98 00 00 FB [12:45:58]Write i2c OK [12:45:58]MH_I2C_Read... [12:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:58]Read from MH i2c: E2 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: E2 03 00 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: E2 03 00 8B 16 00 90 00 15 [12:45:58]RAPDU: 90 00 [12:45:58]wFMCommunicate OK [12:45:58]wFMCommunicate request_size=4 [12:45:58]MH_SAM_APDU [12:45:58]CAPDU: 80 0D 03 02 [12:45:58]Write to MH i2c: E2 08 00 8C 16 80 0D 03 02 00 00 00 00 1D [12:45:58]Write i2c OK [12:45:58]MH_I2C_Read... [12:45:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:58]Read from MH i2c: E2 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: E2 0B 00 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: E2 0B 00 8C 16 00 F4 DC 0F 37 9A C7 16 DB 90 00 86 [12:45:58]RAPDU: F4 DC 0F 37 9A C7 16 DB 90 00 [12:45:58]wFMCommunicate OK [12:45:58]SAM_PROTO_SignData done [12:45:58]FM_MakeSignedData done [12:45:58]CreateOFDProtocolMessage [12:45:58]wFMCommunicate request_size=4 [12:45:58]MH_SAM_APDU [12:45:58]CAPDU: 80 11 00 00 [12:45:58]Write to MH i2c: E2 08 00 8D 16 80 11 00 00 00 00 00 00 1D [12:45:58]Write i2c OK [12:45:58]MH_I2C_Read... [12:45:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:58]Read from MH i2c: E2 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: E2 17 00 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: E2 17 00 8D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6C [12:45:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:45:58]wFMCommunicate OK [12:45:58]CreateOFDProtocolMessage done [12:45:58]OFDSenderStorePacket 29825 [12:45:58]StoreOFDPacket docnum=29825 [12:45:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 B1 CD 08 01 54 34 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 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 06 73 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 74 00 00 35 04 06 00 EF 01 47 80 85 98 F4 DC 0F 37 9A C7 16 DB [12:45:58]CheckFolder [12:45:58]dirname=/storage/ofd_packets [12:45:58]CheckFolder done [12:45:58]ProducePacketName [12:45:58]name=ofd_packets/00029825 [12:45:58]NVStorageSaveData ofd_packets/00029825 [12:45:58]File name is /storage/ofd_packets/00029825 [12:45:58]Write 302 bytes [12:45:58]NVStorageSaveData done [12:45:58]OFDSenderStorePacket done [12:45:58]KKMCreateOFDPacket done [12:45:58]NVStorageSaveData kkm_last_timestamp [12:45:58]File name is /storage/kkm_last_timestamp [12:45:58]Write 4 bytes [12:45:58]NVStorageSaveData done [12:45:58]ExternCall_PrintAddStr [12:45:58]wPrintStart [12:45:58]Write to MH i2c: 01 00 00 8E 16 A4 [12:45:58]Write i2c OK [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: 01 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: 01 07 00 [12:45:58]MH_I2C_Read... [12:45:58]Read from MH i2c: 01 07 00 8E 16 00 00 00 00 00 FF 0F B9 [12:45:58]RasterBufferAndPrint [12:45:58]line Счет N : (1)348329 [12:45:58]line ИНН: 02508201610067 [12:45:58]line Контрольно-Кассовый Чек [12:45:58]line ПРОДАЖА [12:45:58]line ТРК (МРК, ГНК) : 22 [12:45:58]line Товар: 2710124130 [12:45:58]line SUPER-92-К-5 [12:45:58]line 6.840 * 65.80 [12:45:58]line = 450.07 [12:45:58]line НДС 12% НСП 1% [12:45:58]line > о реализуемом товаре [12:45:58]line ОКРУГЛЕНИЕ: -0.07 [12:45:58]line ИТОГО: 450.00 [12:45:58]line Внесено: 450.00 [12:45:58]line СДАЧА: 0.00 [12:45:58]line НСП 1% : 3.98 [12:45:58]line НДС 12% : 47.79 [12:45:58]line Наличными: 450.00 [12:45:58]line Безнал.: 0.00 [12:45:58]line Место: АЗС № 108 "Партнер Нефть" [12:45:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:45:58]line СНО: Общий режим [12:45:58]line Чек 99 16.04.2024 12:45 [12:45:58]line Смена: 118 ФФД: 1.0 [12:45:58]line ЗНМ: 0300000027 [12:45:58]line РНМ: 0000138879044617 [12:45:58]line Версия ККМ: 001 [12:45:58]line ФМ: 0000000000963154 [12:45:58]line ФД: 29825 [12:45:58]line ФПД: 262788773610904 [12:45:58]line 1/tax-web-control/client/api/v1/ticket?date=20240416T124558&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29825&fm=262788773610904&tin=02508201610067®Number=0000138879044617&sum=45000 [12:45:58]OFD Sender: Processing packet 29825 [packets to send 8, broken 7] [12:45:58]ProducePacketName [12:45:58]name=ofd_packets/00029825 [12:45:58]OFD Sender: To server: pG, [12:45:58]CommunicateWithHost lk.salyk.kg:30040 [12:45:58]ConnectInit lk.salyk.kg [12:45:58]written 0, free lines is 4095 [12:45:58]Connected sock=10 [12:45:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 B1 CD 08 01 54 34 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 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 06 73 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 74 00 00 35 04 06 00 EF 01 47 80 85 98 F4 DC 0F 37 9A C7 16 DB [12:45:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 46 EA 47 00 2E 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 74 00 00 F4 03 04 00 A4 1D 1E 66 B6 04 01 00 00 FE 7A 90 01 AC 62 CB 22 [12:45:59]CommunicateWithHost err = 0 [12:45:59]CheckOFDResponse [12:45:59]1017 (14) - 77093643461234 [12:45:59]1041 (16) - 0000000000963154 [12:45:59]1040 (4) - 29825 [12:45:59]1012 (4) - 16.04.2024 06:41 [12:45:59]1206 (1) - 0 [12:45:59]OFD Sender: Remove packet 29825 [12:45:59]ProducePacketName [12:45:59]name=ofd_packets/00029825 [12:45:59]NVStorageDeleteData [12:45:59]Write to MH i2c: 01 00 00 B8 16 CE [12:45:59]Write i2c OK [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: 01 [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: 01 07 00 [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: 01 07 00 B8 16 00 00 00 00 00 C8 0C A9 [12:45:59]RasterBufferAndPrint [12:45:59]line [12:45:59]line [12:45:59]line [12:45:59]line [12:45:59]line [12:45:59]written 0, free lines is 3277 [12:45:59]MH_Cut [12:45:59]Write to MH i2c: D1 01 00 BF 16 01 A7 [12:45:59]Write i2c OK [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: D1 [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: D1 01 00 [12:45:59]MH_I2C_Read... [12:45:59]Read from MH i2c: D1 01 00 BF 16 00 A6 [12:45:59]Write to MH i2c: 01 00 00 C0 16 D6 [12:45:59]Write i2c OK [12:45:59]MH_I2C_Read... [12:45:59]OFD Sender: No OFD packet to send [12:46:00]*** Cut start [12:46:00]*** Partial cut [12:46:00]*** CUTSNS_PIN = 1 [12:46:00]*** CUTSNS_PIN = 0 [12:46:00]*** Brake cut motor [12:46:00]Read from MH i2c: 01 [12:46:00]MH_I2C_Read... [12:46:00]*** Stop cut motor [12:46:00]*** Cut end [12:46:00]Read from MH i2c: 01 07 00 [12:46:00]MH_I2C_Read... [12:46:00]Read from MH i2c: 01 07 00 C0 16 00 00 00 00 00 FF 0F EB [12:46:00]process_action close_receipt done [12:46:00]requested_data is exist [12:46:00]produce_requested_data [12:46:00]requested_item fm.sn is exist - process it [12:46:00]wFMCommunicate request_size=4 [12:46:00]MH_SAM_APDU [12:46:00]CAPDU: 80 11 00 00 [12:46:00]Write to MH i2c: E2 08 00 C1 16 80 11 00 00 00 00 00 00 51 [12:46:00]Write i2c OK [12:46:00]MH_I2C_Read... [12:46:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:00]Read from MH i2c: E2 [12:46:00]MH_I2C_Read... [12:46:00]Read from MH i2c: E2 17 00 [12:46:00]MH_I2C_Read... [12:46:00]Read from MH i2c: E2 17 00 C1 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A0 [12:46:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:46:00]wFMCommunicate OK [12:46:00]requested_item fd.num is exist - process it [12:46:00]SAM_PROTO_GetFieldsCounters [12:46:00]wFMCommunicate request_size=4 [12:46:00]MH_SAM_APDU [12:46:00]CAPDU: 80 13 00 00 [12:46:00]Write to MH i2c: E2 08 00 C2 16 80 13 00 00 00 00 00 00 54 [12:46:00]Write i2c OK [12:46:00]MH_I2C_Read... [12:46:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:00]Read from MH i2c: E2 [12:46:00]MH_I2C_Read... [12:46:00]Read from MH i2c: E2 62 00 [12:46:00]MH_I2C_Read... [12:46:00]Read from MH i2c: E2 62 00 C2 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 81 74 00 00 0E 04 04 00 76 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 26 [12:46:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 81 74 00 00 0E 04 04 00 76 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 [12:46:00]wFMCommunicate OK [12:46:00]SAM_PROTO_GetFieldsCounters done [12:46:00]requested_item shift.num is exist - process it [12:46:00]requested_item shift.opened is exist - process it [12:46:00]req_shift_opened [12:46:00]FM_GetShiftState [12:46:00]SAM_PROTO_GetShiftState [12:46:00]wFMCommunicate request_size=4 [12:46:00]MH_SAM_APDU [12:46:00]CAPDU: 80 13 01 00 [12:46:00]Write to MH i2c: E2 08 00 C3 16 80 13 01 00 00 00 00 00 56 [12:46:00]Write i2c OK [12:46:00]MH_I2C_Read... [12:46:00]Read from MH i2c: E2 [12:46:00]MH_I2C_Read... [12:46:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:00]Read from MH i2c: E2 0E 00 [12:46:00]MH_I2C_Read... [12:46:00]Read from MH i2c: E2 0E 00 C3 16 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 04 [12:46:00]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:46:00]wFMCommunicate OK [12:46:00]SAM_PROTO_GetShiftState done [12:46:00]FM_GetShiftState done [12:46:00]req_shift_opened done [12:46:00]requested_item shift.open_date is exist - process it [12:46:00]req_shift_open_date [12:46:00]req_shift_open_date done [12:46:00]produce_requested_data done [12:46:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29825,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [12:46:00]process_action_free close_receipt [12:46:00]json_value_free [12:46:00]json_value_free done [12:46:00]process_json_proto returns [12:46:00]Send response to host [12:46:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29825,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [12:46:00]free response buf [12:46:00]execute_script done [12:46:00]execute_script returns [12:46:00]free content buf [12:46:00]Sock 9.Close socket [12:46:00]Sock 9.Thread stoped [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:38]accept exits with 7 [12:46:38]New connection [12:46:38]New thread 3067133284 created [12:46:38]Thread 3067276644 joined [12:46:38]Waiting for new connection... [12:46:38] Sock 7.Parse request [12:46:38]Sock 7.Check first char [12:46:38]Sock 7.First char is OK [12:46:38]request: POST /json_proto HTTP/1.0 [12:46:38]Method: POST [12:46:38]URL: /json_proto [12:46:38]Method is POST - this is cgi request [12:46:38]url: /json_proto [12:46:38]query_string will be loaded in cgi processing [12:46:38]execute_cgi json_proto POST (null) [12:46:38]execute_cgi path=json_proto method=POST [12:46:38]POST find Content-Length [12:46:38]Host: 172.17.33.3:8080 [12:46:38]Content-Length: 812 [12:46:38]Content-Type: application/json [12:46:38] [12:46:38]POST finish read [12:46:38]Found Content-Length = 812 [12:46:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:38]execute_script... [12:46: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)348330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:38]POST & json_proto [12:46:38]process_json_proto [12:46:38]json parsed OK: [12:46:38]protocol is kg_v1.0 [12:46:38]action value=close_receipt [12:46:38]process_action close_receipt [12:46:38]cmd_close_receipt [12:46:38]MH_GetDate [12:46:38]Write to MH i2c: F0 00 00 C4 16 C9 [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: F0 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: F0 09 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: F0 09 00 C4 16 00 2F 73 1E 66 23 5B 8F 65 6A [12:46:38]GetLastDocTimeStamp 1713271558 [12:46:38]current date 1713271599 [12:46:38]FM_GetShiftState [12:46:38]SAM_PROTO_GetShiftState [12:46:38]wFMCommunicate request_size=4 [12:46:38]MH_SAM_APDU [12:46:38]CAPDU: 80 13 01 00 [12:46:38]Write to MH i2c: E2 08 00 C5 16 80 13 01 00 00 00 00 00 58 [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:38]Read from MH i2c: E2 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 0E 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 0E 00 C5 16 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 06 [12:46:38]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:46:38]wFMCommunicate OK [12:46:38]SAM_PROTO_GetShiftState done [12:46:38]FM_GetShiftState done [12:46:38]opened in 1713226843 [12:46:38]opened+sec_in_day 1713313243 [12:46:38]quantity*price = 150024 [12:46:38]sum+1 = 150025 [12:46:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.24 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.24 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 100 16.04.2024 12:46 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29826 ФПД: 58617560782858 1/tax-web-control/client/api/v1/ticket?date=20240416T124640&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29826&fm=58617560782858&tin=02508201610067®Number=0000138879044617&sum=150024 [12:46:39]StoreToDocumentArchive [12:46:39]shift 118 fd 29826 [12:46:39]save to /storage/0118/doc_00029826 [12:46:39]save last doc name /storage/0118/doc_00029826 to /storage/kkm_last_doc_name [12:46:39]save OK [12:46:39]Clear old archive folders... [12:46:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:46:39]tlvbuf is B6EF7470 [12:46:39]SAM_PROTO_ClearQueue [12:46:39]wFMCommunicate request_size=4 [12:46:39]MH_SAM_APDU [12:46:39]CAPDU: 80 09 00 00 [12:46:39]Write to MH i2c: E2 08 00 D2 16 80 09 00 00 00 00 00 00 5A [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:39]Read from MH i2c: E2 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 03 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 03 00 D2 16 00 90 00 5C [12:46:39]RAPDU: 90 00 [12:46:39]wFMCommunicate OK [12:46:39]SAM_PROTO_ClearQueue done [12:46:39]KKMCreateOFDPacket [12:46:39]OFDProtocolAddRootSTLVToBuf [12:46:39]FM_MakeSignedData [12:46:39]FM_MakeSignedData [12:46:39]SAM_PROTO_SignData [12:46:39]wFMCommunicate request_size=4 [12:46:39]MH_SAM_APDU [12:46:39]CAPDU: 80 0D 01 02 [12:46:39]Write to MH i2c: E2 08 00 D3 16 80 0D 01 02 00 00 00 00 62 [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:39]Read from MH i2c: E2 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 03 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 03 00 D3 16 00 90 00 5D [12:46:39]RAPDU: 90 00 [12:46:39]wFMCommunicate OK [12:46:39]wFMCommunicate request_size=255 [12:46:39]MH_SAM_APDU [12:46:39]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 30 73 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 74 00 00 35 04 06 00 [12:46:39]Write to MH i2c: E2 02 01 D4 16 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 30 73 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 74 00 00 35 04 06 00 00 00 0B [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]OFD Sender: No OFD packet to send [12:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:39]Read from MH i2c: E2 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 03 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 03 00 D4 16 00 90 00 5E [12:46:39]RAPDU: 90 00 [12:46:39]wFMCommunicate OK [12:46:39]wFMCommunicate request_size=11 [12:46:39]MH_SAM_APDU [12:46:39]CAPDU: 80 0D 02 02 06 35 4F F6 E3 58 0A [12:46:39]Write to MH i2c: E2 0E 00 D5 16 80 0D 02 02 06 00 35 4F F6 E3 58 0A 00 00 30 [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:39]Read from MH i2c: E2 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 03 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 03 00 D5 16 00 90 00 5F [12:46:39]RAPDU: 90 00 [12:46:39]wFMCommunicate OK [12:46:39]wFMCommunicate request_size=4 [12:46:39]MH_SAM_APDU [12:46:39]CAPDU: 80 0D 03 02 [12:46:39]Write to MH i2c: E2 08 00 D6 16 80 0D 03 02 00 00 00 00 67 [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:39]Read from MH i2c: E2 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 0B 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 0B 00 D6 16 00 C6 9D 2C 98 13 A7 A3 F6 90 00 E2 [12:46:39]RAPDU: C6 9D 2C 98 13 A7 A3 F6 90 00 [12:46:39]wFMCommunicate OK [12:46:39]SAM_PROTO_SignData done [12:46:39]FM_MakeSignedData done [12:46:39]CreateOFDProtocolMessage [12:46:39]wFMCommunicate request_size=4 [12:46:39]MH_SAM_APDU [12:46:39]CAPDU: 80 11 00 00 [12:46:39]Write to MH i2c: E2 08 00 D7 16 80 11 00 00 00 00 00 00 67 [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:39]Read from MH i2c: E2 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 17 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 17 00 D7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B6 [12:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:46:39]wFMCommunicate OK [12:46:39]CreateOFDProtocolMessage done [12:46:39]OFDSenderStorePacket 29826 [12:46:39]StoreOFDPacket docnum=29826 [12:46:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 21 CB 08 01 8A 35 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 30 73 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 74 00 00 35 04 06 00 35 4F F6 E3 58 0A C6 9D 2C 98 13 A7 A3 F6 [12:46:39]CheckFolder [12:46:39]dirname=/storage/ofd_packets [12:46:39]CheckFolder done [12:46:39]ProducePacketName [12:46:39]name=ofd_packets/00029826 [12:46:39]NVStorageSaveData ofd_packets/00029826 [12:46:39]File name is /storage/ofd_packets/00029826 [12:46:39]Write 302 bytes [12:46:39]NVStorageSaveData done [12:46:39]OFDSenderStorePacket done [12:46:39]KKMCreateOFDPacket done [12:46:39]NVStorageSaveData kkm_last_timestamp [12:46:39]File name is /storage/kkm_last_timestamp [12:46:39]Write 4 bytes [12:46:39]NVStorageSaveData done [12:46:39]ExternCall_PrintAddStr [12:46:39]wPrintStart [12:46:39]Write to MH i2c: 01 00 00 D8 16 EE [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: 01 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: 01 07 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: 01 07 00 D8 16 00 00 00 00 00 FF 0F 03 [12:46:39]RasterBufferAndPrint [12:46:39]line Счет N : (1)348330 [12:46:39]line ИНН: 02508201610067 [12:46:39]line Контрольно-Кассовый Чек [12:46:39]line ПРОДАЖА [12:46:39]line ТРК (МРК, ГНК) : 12 [12:46:39]line Товар: 2710124130 [12:46:39]line SUPER-92-К-5 [12:46:39]line 22.800 * 65.80 [12:46:39]line = 1500.24 [12:46:39]line НДС 12% НСП 1% [12:46:39]line > о реализуемом товаре [12:46:39]line ИТОГО: 1500.24 [12:46:39]line НСП 1% : 13.28 [12:46:39]line НДС 12% : 159.32 [12:46:39]line Наличными: 0.00 [12:46:39]line Безнал.: 1500.24 [12:46:39]line Место: АЗС № 108 "Партнер Нефть" [12:46:39]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:46:39]line СНО: Общий режим [12:46:39]line Чек 100 16.04.2024 12:46 [12:46:39]line Смена: 118 ФФД: 1.0 [12:46:39]line ЗНМ: 0300000027 [12:46:39]line РНМ: 0000138879044617 [12:46:39]line Версия ККМ: 001 [12:46:39]line Платежная система: Бакай Банк [12:46:40]line ФМ: 0000000000963154 [12:46:40]line ФД: 29826 [12:46:40]line ФПД: 58617560782858 [12:46:40]line 1/tax-web-control/client/api/v1/ticket?date=20240416T124640&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29826&fm=58617560782858&tin=02508201610067®Number=0000138879044617&sum=150024 [12:46:40]OFD Sender: Processing packet 29826 [packets to send 8, broken 7] [12:46:40]ProducePacketName [12:46:40]name=ofd_packets/00029826 [12:46:40]OFD Sender: To server: pG, [12:46:40]CommunicateWithHost lk.salyk.kg:30040 [12:46:40]ConnectInit lk.salyk.kg [12:46:40]written 0, free lines is 4095 [12:46:40]Connected sock=10 [12:46:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 21 CB 08 01 8A 35 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 30 73 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 74 00 00 35 04 06 00 35 4F F6 E3 58 0A C6 9D 2C 98 13 A7 A3 F6 [12:46:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2E 6C 47 00 20 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 82 74 00 00 F4 03 04 00 CE 1D 1E 66 B6 04 01 00 00 FD 02 CD C4 CB 4C FE D4 [12:46:40]CommunicateWithHost err = 0 [12:46:40]CheckOFDResponse [12:46:40]1017 (14) - 77093643461234 [12:46:40]1041 (16) - 0000000000963154 [12:46:40]1040 (4) - 29826 [12:46:40]1012 (4) - 16.04.2024 06:42 [12:46:40]1206 (1) - 0 [12:46:40]OFD Sender: Remove packet 29826 [12:46:40]ProducePacketName [12:46:40]name=ofd_packets/00029826 [12:46:40]NVStorageDeleteData [12:46:40]Write to MH i2c: 01 00 00 01 17 18 [12:46:40]Write i2c OK [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: 01 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: 01 07 00 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: 01 07 00 01 17 00 00 00 00 00 E0 0C 0B [12:46:40]RasterBufferAndPrint [12:46:40]line [12:46:40]line [12:46:40]line [12:46:40]line [12:46:40]line [12:46:40]written 0, free lines is 3300 [12:46:40]MH_Cut [12:46:40]Write to MH i2c: D1 01 00 08 17 01 F1 [12:46:40]Write i2c OK [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: D1 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: D1 01 00 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: D1 01 00 08 17 00 F0 [12:46:40]Write to MH i2c: 01 00 00 09 17 20 [12:46:40]Write i2c OK [12:46:40]MH_I2C_Read... [12:46:40]OFD Sender: No OFD packet to send [12:46:41]*** Cut start [12:46:41]*** Partial cut [12:46:41]*** CUTSNS_PIN = 1 [12:46:41]*** CUTSNS_PIN = 0 [12:46:41]*** Brake cut motor [12:46:42]Read from MH i2c: 01 [12:46:42]MH_I2C_Read... [12:46:42]*** Stop cut motor [12:46:42]*** Cut end [12:46:42]Read from MH i2c: 01 07 00 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: 01 07 00 09 17 00 00 00 00 00 FF 0F 35 [12:46:42]process_action close_receipt done [12:46:42]requested_data is exist [12:46:42]produce_requested_data [12:46:42]requested_item fm.sn is exist - process it [12:46:42]wFMCommunicate request_size=4 [12:46:42]MH_SAM_APDU [12:46:42]CAPDU: 80 11 00 00 [12:46:42]Write to MH i2c: E2 08 00 0A 17 80 11 00 00 00 00 00 00 9B [12:46:42]Write i2c OK [12:46:42]MH_I2C_Read... [12:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:42]Read from MH i2c: E2 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: E2 17 00 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: E2 17 00 0A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EA [12:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:46:42]wFMCommunicate OK [12:46:42]requested_item fd.num is exist - process it [12:46:42]SAM_PROTO_GetFieldsCounters [12:46:42]wFMCommunicate request_size=4 [12:46:42]MH_SAM_APDU [12:46:42]CAPDU: 80 13 00 00 [12:46:42]Write to MH i2c: E2 08 00 0B 17 80 13 00 00 00 00 00 00 9E [12:46:42]Write i2c OK [12:46:42]MH_I2C_Read... [12:46:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:42]Read from MH i2c: E2 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: E2 62 00 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: E2 62 00 0B 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 82 74 00 00 0E 04 04 00 76 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 74 [12:46:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 82 74 00 00 0E 04 04 00 76 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 [12:46:42]wFMCommunicate OK [12:46:42]SAM_PROTO_GetFieldsCounters done [12:46:42]requested_item shift.num is exist - process it [12:46:42]requested_item shift.opened is exist - process it [12:46:42]req_shift_opened [12:46:42]FM_GetShiftState [12:46:42]SAM_PROTO_GetShiftState [12:46:42]wFMCommunicate request_size=4 [12:46:42]MH_SAM_APDU [12:46:42]CAPDU: 80 13 01 00 [12:46:42]Write to MH i2c: E2 08 00 0C 17 80 13 01 00 00 00 00 00 A0 [12:46:42]Write i2c OK [12:46:42]MH_I2C_Read... [12:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:42]Read from MH i2c: E2 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: E2 0E 00 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: E2 0E 00 0C 17 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 4E [12:46:42]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:46:42]wFMCommunicate OK [12:46:42]SAM_PROTO_GetShiftState done [12:46:42]FM_GetShiftState done [12:46:42]req_shift_opened done [12:46:42]requested_item shift.open_date is exist - process it [12:46:42]req_shift_open_date [12:46:42]req_shift_open_date done [12:46:42]produce_requested_data done [12:46:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29826,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [12:46:42]process_action_free close_receipt [12:46:42]json_value_free [12:46:42]json_value_free done [12:46:42]process_json_proto returns [12:46:42]Send response to host [12:46:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29826,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [12:46:42]free response buf [12:46:42]execute_script done [12:46:42]execute_script returns [12:46:42]free content buf [12:46:42]Sock 7.Close socket [12:46:42]Sock 7.Thread stoped [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:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:36]OFD Sender: No OFD packet to send [12:48:41]OFD Sender: No OFD packet to send [12:48:46]OFD Sender: No OFD packet to send [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]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:46]OFD Sender: No OFD packet to send [12:55:51]OFD Sender: No OFD packet to send [12:55:56]OFD Sender: No OFD packet to send [12:55:57]accept exits with 9 [12:55:57]New connection [12:55:57]New thread 3067276644 created [12:55:57]Thread 3067133284 joined [12:55:57]Waiting for new connection... [12:55:57] Sock 9.Parse request [12:55:57]Sock 9.Check first char [12:55:57]Sock 9.First char is OK [12:55:57]request: POST /json_proto HTTP/1.0 [12:55:57]Method: POST [12:55:57]URL: /json_proto [12:55:57]Method is POST - this is cgi request [12:55:57]url: /json_proto [12:55:57]query_string will be loaded in cgi processing [12:55:57]execute_cgi json_proto POST (null) [12:55:57]execute_cgi path=json_proto method=POST [12:55:57]POST find Content-Length [12:55:57]Host: 172.17.33.3:8080 [12:55:57]Content-Length: 1206 [12:55:57]Content-Type: application/json [12:55:57] [12:55:57]POST finish read [12:55:57]Found Content-Length = 1206 [12:55:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348331\u000A16.04.2024 12:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.430 x 64.80\u000A\u0418\u0422\u041E\u0413: 999.86\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81666\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:57]execute_script... [12:55:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348331\u000A16.04.2024 12:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.430 x 64.80\u000A\u0418\u0422\u041E\u0413: 999.86\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81666\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:57]POST & json_proto [12:55:57]process_json_proto [12:55:57]json parsed OK: [12:55:57]protocol is kg_v1.0 [12:55:57]action value=print_text [12:55:57]process_action print_text [12:55:57]cmd_print_text [12:55:57]ExternCall_PrintAddStr [12:55:57]wPrintStart [12:55:57]Write to MH i2c: 01 00 00 0D 17 24 [12:55:57]Write i2c OK [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: 01 [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: 01 07 00 [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: 01 07 00 0D 17 00 00 00 00 00 FF 0F 39 [12:55:57]RasterBufferAndPrint [12:55:57]line *****ТОВАРНЫЙ ЧЕК***** [12:55:57]line АЗС 108 [12:55:57]line Партнер нефть [12:55:57]line 02508201610067 [12:55:57]line Кассир : Шадыканова Ж. [12:55:57]line Счет N : (1)348331 [12:55:57]line 16.04.2024 12:37 [12:55:57]line ПРОДАЖА [12:55:57]line ТРК (МРК, ГНК): 32 [12:55:57]line Вид ГСМ : 2710124130 [12:55:57]line Аи-92-К-5 [12:55:57]line 15.430 x 64.80 [12:55:57]line ИТОГ: 999.86 [12:55:57]line Тип оплаты: Талоны: Топливная Карта [12:55:57]line 81666 [12:55:57]line ______________________ [12:55:57]line (подпись) [12:55:57]written 0, free lines is 4095 [12:55:57]Write to MH i2c: 01 00 00 22 17 39 [12:55:57]Write i2c OK [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: 01 [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: 01 07 00 [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: 01 07 00 22 17 00 00 00 00 00 F5 0D 42 [12:55:57]RasterBufferAndPrint [12:55:57]line [12:55:57]line [12:55:57]line [12:55:57]line [12:55:57]line [12:55:57]written 0, free lines is 3575 [12:55:57]MH_Cut [12:55:57]Write to MH i2c: D1 01 00 29 17 01 12 [12:55:57]Write i2c OK [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: D1 [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: D1 01 00 [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: D1 01 00 29 17 00 11 [12:55:57]Write to MH i2c: 01 00 00 2A 17 41 [12:55:57]Write i2c OK [12:55:57]MH_I2C_Read... [12:55:58]*** Cut start [12:55:58]*** Partial cut [12:55:58]*** CUTSNS_PIN = 1 [12:55:58]*** CUTSNS_PIN = 0 [12:55:58]*** Brake cut motor [12:55:59]Read from MH i2c: 01 [12:55:59]MH_I2C_Read... [12:55:59]Read from MH i2c: 01 07 00 [12:55:59]MH_I2C_Read... [12:55:59]*** Stop cut motor [12:55:59]*** Cut end [12:55:59]Read from MH i2c: 01 07 00 2A 17 00 00 00 00 00 FF 0F 56 [12:55:59]process_action print_text done [12:55:59]requested_data is exist [12:55:59]produce_requested_data [12:55:59]requested_item fm.sn is exist - process it [12:55:59]wFMCommunicate request_size=4 [12:55:59]MH_SAM_APDU [12:55:59]CAPDU: 80 11 00 00 [12:55:59]Write to MH i2c: E2 08 00 2B 17 80 11 00 00 00 00 00 00 BC [12:55:59]Write i2c OK [12:55:59]MH_I2C_Read... [12:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:59]Read from MH i2c: E2 [12:55:59]MH_I2C_Read... [12:55:59]Read from MH i2c: E2 17 00 [12:55:59]MH_I2C_Read... [12:55:59]Read from MH i2c: E2 17 00 2B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0B [12:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:55:59]wFMCommunicate OK [12:55:59]requested_item fd.num is exist - process it [12:55:59]SAM_PROTO_GetFieldsCounters [12:55:59]wFMCommunicate request_size=4 [12:55:59]MH_SAM_APDU [12:55:59]CAPDU: 80 13 00 00 [12:55:59]Write to MH i2c: E2 08 00 2C 17 80 13 00 00 00 00 00 00 BF [12:55:59]Write i2c OK [12:55:59]MH_I2C_Read... [12:55:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:59]Read from MH i2c: E2 [12:55:59]MH_I2C_Read... [12:55:59]Read from MH i2c: E2 62 00 [12:55:59]MH_I2C_Read... [12:55:59]Read from MH i2c: E2 62 00 2C 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 82 74 00 00 0E 04 04 00 76 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 95 [12:55:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 82 74 00 00 0E 04 04 00 76 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 [12:55:59]wFMCommunicate OK [12:55:59]SAM_PROTO_GetFieldsCounters done [12:55:59]requested_item shift.num is exist - process it [12:55:59]requested_item shift.opened is exist - process it [12:55:59]req_shift_opened [12:55:59]FM_GetShiftState [12:55:59]SAM_PROTO_GetShiftState [12:55:59]wFMCommunicate request_size=4 [12:55:59]MH_SAM_APDU [12:55:59]CAPDU: 80 13 01 00 [12:55:59]Write to MH i2c: E2 08 00 2D 17 80 13 01 00 00 00 00 00 C1 [12:55:59]Write i2c OK [12:55:59]MH_I2C_Read... [12:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:59]Read from MH i2c: E2 [12:55:59]MH_I2C_Read... [12:55:59]Read from MH i2c: E2 0E 00 [12:55:59]MH_I2C_Read... [12:55:59]Read from MH i2c: E2 0E 00 2D 17 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 6F [12:55:59]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:55:59]wFMCommunicate OK [12:55:59]SAM_PROTO_GetShiftState done [12:55:59]FM_GetShiftState done [12:55:59]req_shift_opened done [12:55:59]requested_item shift.open_date is exist - process it [12:55:59]req_shift_open_date [12:55:59]req_shift_open_date done [12:55:59]produce_requested_data done [12:55:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29826,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [12:55:59]process_action_free print_text [12:55:59]json_value_free [12:55:59]json_value_free done [12:55:59]process_json_proto returns [12:55:59]Send response to host [12:55:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29826,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [12:55:59]free response buf [12:55:59]execute_script done [12:55:59]execute_script returns [12:55:59]free content buf [12:55:59]Sock 9.Close socket [12:55:59]Sock 9.Thread stoped [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:09]accept exits with 7 [12:57:09]New connection [12:57:09]New thread 3067133284 created [12:57:09]Thread 3067276644 joined [12:57:09]Waiting for new connection... [12:57:09] Sock 7.Parse request [12:57:09]Sock 7.Check first char [12:57:09]Sock 7.First char is OK [12:57:09]request: POST /json_proto HTTP/1.0 [12:57:09]Method: POST [12:57:09]URL: /json_proto [12:57:09]Method is POST - this is cgi request [12:57:09]url: /json_proto [12:57:09]query_string will be loaded in cgi processing [12:57:09]execute_cgi json_proto POST (null) [12:57:09]execute_cgi path=json_proto method=POST [12:57:09]POST find Content-Length [12:57:09]Host: 172.17.33.3:8080 [12:57:09]Content-Length: 1213 [12:57:09]Content-Type: application/json [12:57:09] [12:57:09]POST finish read [12:57:09]Found Content-Length = 1213 [12:57:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348332\u000A16.04.2024 12:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1944.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3859240;3859241;3859242\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:09]execute_script... [12:57:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348332\u000A16.04.2024 12:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.80\u000A\u0418\u0422\u041E\u0413: 1944.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3859240;3859241;3859242\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:09]POST & json_proto [12:57:09]process_json_proto [12:57:09]json parsed OK: [12:57:09]protocol is kg_v1.0 [12:57:09]action value=print_text [12:57:09]process_action print_text [12:57:09]cmd_print_text [12:57:09]ExternCall_PrintAddStr [12:57:09]wPrintStart [12:57:09]Write to MH i2c: 01 00 00 2E 17 45 [12:57:09]Write i2c OK [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: 01 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: 01 07 00 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: 01 07 00 2E 17 00 00 00 00 00 FF 0F 5A [12:57:09]RasterBufferAndPrint [12:57:09]line *****ТОВАРНЫЙ ЧЕК***** [12:57:09]line АЗС 108 [12:57:09]line Партнер нефть [12:57:09]line 02508201610067 [12:57:09]line Кассир : Шадыканова Ж. [12:57:09]line Счет N : (1)348332 [12:57:09]line 16.04.2024 12:38 [12:57:09]line ПРОДАЖА [12:57:09]line ТРК (МРК, ГНК): 13 [12:57:09]line Вид ГСМ : 2710124130 [12:57:09]line Аи-92-К-5 [12:57:09]line 30.000 x 64.80 [12:57:09]line ИТОГ: 1944.00 [12:57:09]line Тип оплаты: Талоны: Партнер нефть [12:57:09]line 3859240;3859241;3859242 [12:57:09]line ______________________ [12:57:09]line (подпись) [12:57:09]written 0, free lines is 4095 [12:57:09]Write to MH i2c: 01 00 00 43 17 5A [12:57:09]Write i2c OK [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: 01 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: 01 07 00 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: 01 07 00 43 17 00 00 00 00 00 01 0E 70 [12:57:09]RasterBufferAndPrint [12:57:09]line [12:57:09]line [12:57:09]line [12:57:09]line [12:57:09]line [12:57:09]written 0, free lines is 3587 [12:57:09]MH_Cut [12:57:09]Write to MH i2c: D1 01 00 4A 17 01 33 [12:57:09]Write i2c OK [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: D1 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: D1 01 00 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: D1 01 00 4A 17 00 32 [12:57:09]Write to MH i2c: 01 00 00 4B 17 62 [12:57:09]Write i2c OK [12:57:09]MH_I2C_Read... [12:57:10]*** Cut start [12:57:10]*** Partial cut [12:57:10]*** CUTSNS_PIN = 1 [12:57:10]*** CUTSNS_PIN = 0 [12:57:10]*** Brake cut motor [12:57:10]Read from MH i2c: 01 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: 01 07 00 [12:57:11]MH_I2C_Read... [12:57:11]*** Stop cut motor [12:57:11]*** Cut end [12:57:11]Read from MH i2c: 01 07 00 4B 17 00 00 00 00 00 FF 0F 77 [12:57:11]process_action print_text done [12:57:11]requested_data is exist [12:57:11]produce_requested_data [12:57:11]requested_item fm.sn is exist - process it [12:57:11]wFMCommunicate request_size=4 [12:57:11]MH_SAM_APDU [12:57:11]CAPDU: 80 11 00 00 [12:57:11]Write to MH i2c: E2 08 00 4C 17 80 11 00 00 00 00 00 00 DD [12:57:11]Write i2c OK [12:57:11]MH_I2C_Read... [12:57:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:11]Read from MH i2c: E2 [12:57:11]MH_I2C_Read... [12:57:11]Read from MH i2c: E2 17 00 [12:57:11]MH_I2C_Read... [12:57:11]Read from MH i2c: E2 17 00 4C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2C [12:57:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:57:11]wFMCommunicate OK [12:57:11]requested_item fd.num is exist - process it [12:57:11]SAM_PROTO_GetFieldsCounters [12:57:11]wFMCommunicate request_size=4 [12:57:11]MH_SAM_APDU [12:57:11]CAPDU: 80 13 00 00 [12:57:11]Write to MH i2c: E2 08 00 4D 17 80 13 00 00 00 00 00 00 E0 [12:57:11]Write i2c OK [12:57:11]MH_I2C_Read... [12:57:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:11]Read from MH i2c: E2 [12:57:11]MH_I2C_Read... [12:57:11]Read from MH i2c: E2 62 00 [12:57:11]MH_I2C_Read... [12:57:11]Read from MH i2c: E2 62 00 4D 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 82 74 00 00 0E 04 04 00 76 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 B6 [12:57:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 82 74 00 00 0E 04 04 00 76 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 [12:57:11]wFMCommunicate OK [12:57:11]SAM_PROTO_GetFieldsCounters done [12:57:11]requested_item shift.num is exist - process it [12:57:11]requested_item shift.opened is exist - process it [12:57:11]req_shift_opened [12:57:11]FM_GetShiftState [12:57:11]SAM_PROTO_GetShiftState [12:57:11]wFMCommunicate request_size=4 [12:57:11]MH_SAM_APDU [12:57:11]CAPDU: 80 13 01 00 [12:57:11]Write to MH i2c: E2 08 00 4E 17 80 13 01 00 00 00 00 00 E2 [12:57:11]Write i2c OK [12:57:11]MH_I2C_Read... [12:57:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:11]Read from MH i2c: E2 [12:57:11]MH_I2C_Read... [12:57:11]Read from MH i2c: E2 0E 00 [12:57:11]MH_I2C_Read... [12:57:11]Read from MH i2c: E2 0E 00 4E 17 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 90 [12:57:11]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [12:57:11]wFMCommunicate OK [12:57:11]SAM_PROTO_GetShiftState done [12:57:11]FM_GetShiftState done [12:57:11]req_shift_opened done [12:57:11]requested_item shift.open_date is exist - process it [12:57:11]req_shift_open_date [12:57:11]req_shift_open_date done [12:57:11]produce_requested_data done [12:57:11]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29826,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [12:57:11]process_action_free print_text [12:57:11]json_value_free [12:57:11]json_value_free done [12:57:11]process_json_proto returns [12:57:11]Send response to host [12:57:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29826,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [12:57:11]free response buf [12:57:11]execute_script done [12:57:11]execute_script returns [12:57:11]free content buf [12:57:11]Sock 7.Close socket [12:57:11]Sock 7.Thread stoped [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:01:01]OFD Sender: No OFD packet to send [13:01:06]OFD Sender: No OFD packet to send [13:01:11]OFD Sender: No OFD packet to send [13:01:16]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:35]accept exits with 9 [13:03:35]New connection [13:03:35]New thread 3067276644 created [13:03:35]Thread 3067133284 joined [13:03:35]Waiting for new connection... [13:03:35] Sock 9.Parse request [13:03:35]Sock 9.Check first char [13:03:35]Sock 9.First char is OK [13:03:35]request: POST /json_proto HTTP/1.0 [13:03:35]Method: POST [13:03:35]URL: /json_proto [13:03:35]Method is POST - this is cgi request [13:03:35]url: /json_proto [13:03:35]query_string will be loaded in cgi processing [13:03:35]execute_cgi json_proto POST (null) [13:03:35]execute_cgi path=json_proto method=POST [13:03:35]POST find Content-Length [13:03:35]Host: 172.17.33.3:8080 [13:03:35]Content-Length: 670 [13:03:35]Content-Type: application/json [13:03:35] [13:03:35]POST finish read [13:03:35]Found Content-Length = 670 [13:03:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 6.690, "sum" : 440.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:35]execute_script... [13:03:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 6.690, "sum" : 440.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:35]POST & json_proto [13:03:35]process_json_proto [13:03:35]json parsed OK: [13:03:35]protocol is kg_v1.0 [13:03:35]action value=close_receipt [13:03:35]process_action close_receipt [13:03:35]cmd_close_receipt [13:03:35]MH_GetDate [13:03:35]Write to MH i2c: F0 00 00 4F 17 55 [13:03:35]Write i2c OK [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: F0 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: F0 09 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: F0 09 00 4F 17 00 29 77 1E 66 23 5B 8F 65 F4 [13:03:35]GetLastDocTimeStamp 1713271600 [13:03:35]current date 1713272617 [13:03:35]FM_GetShiftState [13:03:35]SAM_PROTO_GetShiftState [13:03:35]wFMCommunicate request_size=4 [13:03:35]MH_SAM_APDU [13:03:35]CAPDU: 80 13 01 00 [13:03:35]Write to MH i2c: E2 08 00 50 17 80 13 01 00 00 00 00 00 E4 [13:03:35]Write i2c OK [13:03:35]MH_I2C_Read... [13:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:35]Read from MH i2c: E2 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 0E 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 0E 00 50 17 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 92 [13:03:35]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:03:35]wFMCommunicate OK [13:03:35]SAM_PROTO_GetShiftState done [13:03:35]FM_GetShiftState done [13:03:35]opened in 1713226843 [13:03:35]opened+sec_in_day 1713313243 [13:03:35]quantity*price = 44020 [13:03:35]sum+1 = 44021 [13:03:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 440.00 Внесено: 440.00 СДАЧА: 0.00 НСП 1% : 3.90 НДС 12% : 46.75 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 101 16.04.2024 13:03 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29827 ФПД: 126299431882944 1/tax-web-control/client/api/v1/ticket?date=20240416T130337&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29827&fm=126299431882944&tin=02508201610067®Number=0000138879044617&sum=44000 [13:03:36]StoreToDocumentArchive [13:03:36]shift 118 fd 29827 [13:03:36]save to /storage/0118/doc_00029827 [13:03:36]save last doc name /storage/0118/doc_00029827 to /storage/kkm_last_doc_name [13:03:36]save OK [13:03:36]Clear old archive folders... [13:03:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:03:36]tlvbuf is 00170780 [13:03:36]SAM_PROTO_ClearQueue [13:03:36]wFMCommunicate request_size=4 [13:03:36]MH_SAM_APDU [13:03:36]CAPDU: 80 09 00 00 [13:03:36]Write to MH i2c: E2 08 00 5D 17 80 09 00 00 00 00 00 00 E6 [13:03:36]Write i2c OK [13:03:36]MH_I2C_Read... [13:03:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:36]Read from MH i2c: E2 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: E2 03 00 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: E2 03 00 5D 17 00 90 00 E8 [13:03:36]RAPDU: 90 00 [13:03:36]wFMCommunicate OK [13:03:36]SAM_PROTO_ClearQueue done [13:03:36]KKMCreateOFDPacket [13:03:36]OFDProtocolAddRootSTLVToBuf [13:03:36]FM_MakeSignedData [13:03:36]FM_MakeSignedData [13:03:36]SAM_PROTO_SignData [13:03:36]wFMCommunicate request_size=4 [13:03:36]MH_SAM_APDU [13:03:36]CAPDU: 80 0D 01 02 [13:03:36]Write to MH i2c: E2 08 00 5E 17 80 0D 01 02 00 00 00 00 EE [13:03:36]Write i2c OK [13:03:36]MH_I2C_Read... [13:03:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:36]OFD Sender: No OFD packet to send [13:03:36]Read from MH i2c: E2 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: E2 03 00 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: E2 03 00 5E 17 00 90 00 E9 [13:03:36]RAPDU: 90 00 [13:03:36]wFMCommunicate OK [13:03:36]wFMCommunicate request_size=255 [13:03:36]MH_SAM_APDU [13:03:36]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 29 77 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 74 00 00 35 04 06 00 [13:03:36]Write to MH i2c: E2 02 01 5F 17 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 29 77 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 74 00 00 35 04 06 00 00 00 4F [13:03:36]Write i2c OK [13:03:36]MH_I2C_Read... [13:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:37]Read from MH i2c: E2 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 03 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 03 00 5F 17 00 90 00 EA [13:03:37]RAPDU: 90 00 [13:03:37]wFMCommunicate OK [13:03:37]wFMCommunicate request_size=11 [13:03:37]MH_SAM_APDU [13:03:37]CAPDU: 80 0D 02 02 06 72 DE 60 C5 D0 C0 [13:03:37]Write to MH i2c: E2 0E 00 60 17 80 0D 02 02 06 00 72 DE 60 C5 D0 C0 00 00 02 [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:37]Read from MH i2c: E2 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 03 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 03 00 60 17 00 90 00 EB [13:03:37]RAPDU: 90 00 [13:03:37]wFMCommunicate OK [13:03:37]wFMCommunicate request_size=4 [13:03:37]MH_SAM_APDU [13:03:37]CAPDU: 80 0D 03 02 [13:03:37]Write to MH i2c: E2 08 00 61 17 80 0D 03 02 00 00 00 00 F3 [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:37]Read from MH i2c: E2 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 0B 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 0B 00 61 17 00 EE D6 6E B2 66 D4 5F A9 90 00 1A [13:03:37]RAPDU: EE D6 6E B2 66 D4 5F A9 90 00 [13:03:37]wFMCommunicate OK [13:03:37]SAM_PROTO_SignData done [13:03:37]FM_MakeSignedData done [13:03:37]CreateOFDProtocolMessage [13:03:37]wFMCommunicate request_size=4 [13:03:37]MH_SAM_APDU [13:03:37]CAPDU: 80 11 00 00 [13:03:37]Write to MH i2c: E2 08 00 62 17 80 11 00 00 00 00 00 00 F3 [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:37]Read from MH i2c: E2 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 17 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: E2 17 00 62 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 42 [13:03:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:03:37]wFMCommunicate OK [13:03:37]CreateOFDProtocolMessage done [13:03:37]OFDSenderStorePacket 29827 [13:03:37]StoreOFDPacket docnum=29827 [13:03:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 CE 87 08 01 9B 4B 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 29 77 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 74 00 00 35 04 06 00 72 DE 60 C5 D0 C0 EE D6 6E B2 66 D4 5F A9 [13:03:37]CheckFolder [13:03:37]dirname=/storage/ofd_packets [13:03:37]CheckFolder done [13:03:37]ProducePacketName [13:03:37]name=ofd_packets/00029827 [13:03:37]NVStorageSaveData ofd_packets/00029827 [13:03:37]File name is /storage/ofd_packets/00029827 [13:03:37]Write 302 bytes [13:03:37]NVStorageSaveData done [13:03:37]OFDSenderStorePacket done [13:03:37]KKMCreateOFDPacket done [13:03:37]NVStorageSaveData kkm_last_timestamp [13:03:37]File name is /storage/kkm_last_timestamp [13:03:37]Write 4 bytes [13:03:37]NVStorageSaveData done [13:03:37]ExternCall_PrintAddStr [13:03:37]wPrintStart [13:03:37]Write to MH i2c: 01 00 00 63 17 7A [13:03:37]Write i2c OK [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: 01 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: 01 07 00 [13:03:37]MH_I2C_Read... [13:03:37]Read from MH i2c: 01 07 00 63 17 00 00 00 00 00 FF 0F 8F [13:03:37]RasterBufferAndPrint [13:03:37]line Счет N : (1)348333 [13:03:37]line ИНН: 02508201610067 [13:03:37]line Контрольно-Кассовый Чек [13:03:37]line ПРОДАЖА [13:03:37]line ТРК (МРК, ГНК) : 12 [13:03:37]line Товар: 2710124130 [13:03:37]line SUPER-92-К-5 [13:03:37]line 6.690 * 65.80 [13:03:37]line = 440.20 [13:03:37]line НДС 12% НСП 1% [13:03:37]line > о реализуемом товаре [13:03:37]line ОКРУГЛЕНИЕ: -0.20 [13:03:37]line ИТОГО: 440.00 [13:03:37]line Внесено: 440.00 [13:03:37]line СДАЧА: 0.00 [13:03:37]line НСП 1% : 3.90 [13:03:37]line НДС 12% : 46.75 [13:03:37]line Наличными: 440.00 [13:03:37]line Безнал.: 0.00 [13:03:37]line Место: АЗС № 108 "Партнер Нефть" [13:03:37]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:03:37]line СНО: Общий режим [13:03:37]line Чек 101 16.04.2024 13:03 [13:03:37]line Смена: 118 ФФД: 1.0 [13:03:37]line ЗНМ: 0300000027 [13:03:37]line РНМ: 0000138879044617 [13:03:37]line Версия ККМ: 001 [13:03:37]line ФМ: 0000000000963154 [13:03:37]line ФД: 29827 [13:03:37]line ФПД: 126299431882944 [13:03:37]line 1/tax-web-control/client/api/v1/ticket?date=20240416T130337&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29827&fm=126299431882944&tin=02508201610067®Number=0000138879044617&sum=44000 [13:03:37]OFD Sender: Processing packet 29827 [packets to send 8, broken 7] [13:03:37]ProducePacketName [13:03:37]name=ofd_packets/00029827 [13:03:37]OFD Sender: To server: pG, [13:03:37]CommunicateWithHost lk.salyk.kg:30040 [13:03:37]ConnectInit lk.salyk.kg [13:03:37]written 0, free lines is 4095 [13:03:37]Connected sock=10 [13:03:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 CE 87 08 01 9B 4B 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 29 77 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 74 00 00 35 04 06 00 72 DE 60 C5 D0 C0 EE D6 6E B2 66 D4 5F A9 [13:03:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BE 82 47 00 FC C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 74 00 00 F4 03 04 00 C7 21 1E 66 B6 04 01 00 00 C4 80 2A 87 DD EA EF AC [13:03:37]CommunicateWithHost err = 0 [13:03:37]CheckOFDResponse [13:03:37]1017 (14) - 77093643461234 [13:03:37]1041 (16) - 0000000000963154 [13:03:37]1040 (4) - 29827 [13:03:37]1012 (4) - 16.04.2024 06:59 [13:03:37]1206 (1) - 0 [13:03:37]OFD Sender: Remove packet 29827 [13:03:37]ProducePacketName [13:03:37]name=ofd_packets/00029827 [13:03:37]NVStorageDeleteData [13:03:38]Write to MH i2c: 01 00 00 8D 17 A4 [13:03:38]Write i2c OK [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: 01 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: 01 07 00 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: 01 07 00 8D 17 00 00 00 00 00 DA 0C 91 [13:03:38]RasterBufferAndPrint [13:03:38]line [13:03:38]line [13:03:38]line [13:03:38]line [13:03:38]line [13:03:38]written 0, free lines is 3295 [13:03:38]MH_Cut [13:03:38]Write to MH i2c: D1 01 00 94 17 01 7D [13:03:38]Write i2c OK [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: D1 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: D1 01 00 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: D1 01 00 94 17 00 7C [13:03:38]Write to MH i2c: 01 00 00 95 17 AC [13:03:38]Write i2c OK [13:03:38]MH_I2C_Read... [13:03:38]OFD Sender: No OFD packet to send [13:03:38]*** Cut start [13:03:38]*** Partial cut [13:03:38]*** CUTSNS_PIN = 1 [13:03:38]*** CUTSNS_PIN = 0 [13:03:39]*** Brake cut motor [13:03:39]Read from MH i2c: 01 [13:03:39]MH_I2C_Read... [13:03:39]*** Stop cut motor [13:03:39]*** Cut end [13:03:39]Read from MH i2c: 01 07 00 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: 01 07 00 95 17 00 00 00 00 00 FF 0F C1 [13:03:39]process_action close_receipt done [13:03:39]requested_data is exist [13:03:39]produce_requested_data [13:03:39]requested_item fm.sn is exist - process it [13:03:39]wFMCommunicate request_size=4 [13:03:39]MH_SAM_APDU [13:03:39]CAPDU: 80 11 00 00 [13:03:39]Write to MH i2c: E2 08 00 96 17 80 11 00 00 00 00 00 00 27 [13:03:39]Write i2c OK [13:03:39]MH_I2C_Read... [13:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:39]Read from MH i2c: E2 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 17 00 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 17 00 96 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 76 [13:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:03:39]wFMCommunicate OK [13:03:39]requested_item fd.num is exist - process it [13:03:39]SAM_PROTO_GetFieldsCounters [13:03:39]wFMCommunicate request_size=4 [13:03:39]MH_SAM_APDU [13:03:39]CAPDU: 80 13 00 00 [13:03:39]Write to MH i2c: E2 08 00 97 17 80 13 00 00 00 00 00 00 2A [13:03:39]Write i2c OK [13:03:39]MH_I2C_Read... [13:03:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:39]Read from MH i2c: E2 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 62 00 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 62 00 97 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 83 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [13:03:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 83 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:39]wFMCommunicate OK [13:03:39]SAM_PROTO_GetFieldsCounters done [13:03:39]requested_item shift.num is exist - process it [13:03:39]requested_item shift.opened is exist - process it [13:03:39]req_shift_opened [13:03:39]FM_GetShiftState [13:03:39]SAM_PROTO_GetShiftState [13:03:39]wFMCommunicate request_size=4 [13:03:39]MH_SAM_APDU [13:03:39]CAPDU: 80 13 01 00 [13:03:39]Write to MH i2c: E2 08 00 98 17 80 13 01 00 00 00 00 00 2C [13:03:39]Write i2c OK [13:03:39]MH_I2C_Read... [13:03:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:39]Read from MH i2c: E2 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 0E 00 [13:03:39]MH_I2C_Read... [13:03:39]Read from MH i2c: E2 0E 00 98 17 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 DA [13:03:39]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:03:39]wFMCommunicate OK [13:03:39]SAM_PROTO_GetShiftState done [13:03:39]FM_GetShiftState done [13:03:39]req_shift_opened done [13:03:39]requested_item shift.open_date is exist - process it [13:03:39]req_shift_open_date [13:03:39]req_shift_open_date done [13:03:39]produce_requested_data done [13:03:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29827,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [13:03:39]process_action_free close_receipt [13:03:39]json_value_free [13:03:39]json_value_free done [13:03:39]process_json_proto returns [13:03:39]Send response to host [13:03:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29827,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [13:03:39]free response buf [13:03:39]execute_script done [13:03:39]execute_script returns [13:03:39]free content buf [13:03:39]Sock 9.Close socket [13:03:39]Sock 9.Thread stoped [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:07:59]accept exits with 7 [13:07:59]New connection [13:07:59]New thread 3067133284 created [13:07:59]Thread 3067276644 joined [13:07:59]Waiting for new connection... [13:07:59] Sock 7.Parse request [13:07:59]Sock 7.Check first char [13:07:59]Sock 7.First char is OK [13:07:59]request: POST /json_proto HTTP/1.0 [13:07:59]Method: POST [13:07:59]URL: /json_proto [13:07:59]Method is POST - this is cgi request [13:07:59]url: /json_proto [13:07:59]query_string will be loaded in cgi processing [13:07:59]execute_cgi json_proto POST (null) [13:07:59]execute_cgi path=json_proto method=POST [13:07:59]POST find Content-Length [13:07:59]Host: 172.17.33.3:8080 [13:07:59]Content-Length: 805 [13:07:59]Content-Type: application/json [13:07:59] [13:07:59]POST finish read [13:07:59]Found Content-Length = 805 [13:07:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:59]execute_script... [13:07:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:59]POST & json_proto [13:07:59]process_json_proto [13:07:59]json parsed OK: [13:07:59]protocol is kg_v1.0 [13:07:59]action value=close_receipt [13:07:59]process_action close_receipt [13:07:59]cmd_close_receipt [13:07:59]MH_GetDate [13:07:59]Write to MH i2c: F0 00 00 99 17 9F [13:07:59]Write i2c OK [13:07:59]MH_I2C_Read... [13:07:59]Read from MH i2c: F0 [13:07:59]MH_I2C_Read... [13:07:59]Read from MH i2c: F0 09 00 [13:07:59]MH_I2C_Read... [13:07:59]Read from MH i2c: F0 09 00 99 17 00 31 78 1E 66 23 5B 8F 65 47 [13:07:59]GetLastDocTimeStamp 1713272617 [13:07:59]current date 1713272881 [13:07:59]FM_GetShiftState [13:07:59]SAM_PROTO_GetShiftState [13:07:59]wFMCommunicate request_size=4 [13:07:59]MH_SAM_APDU [13:07:59]CAPDU: 80 13 01 00 [13:07:59]Write to MH i2c: E2 08 00 9A 17 80 13 01 00 00 00 00 00 2E [13:07:59]Write i2c OK [13:07:59]MH_I2C_Read... [13:07:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:59]Read from MH i2c: E2 [13:07:59]MH_I2C_Read... [13:07:59]Read from MH i2c: E2 0E 00 [13:07:59]MH_I2C_Read... [13:07:59]Read from MH i2c: E2 0E 00 9A 17 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 DC [13:07:59]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:07:59]wFMCommunicate OK [13:07:59]SAM_PROTO_GetShiftState done [13:07:59]FM_GetShiftState done [13:07:59]opened in 1713226843 [13:07:59]opened+sec_in_day 1713313243 [13:07:59]quantity*price = 100018 [13:07:59]sum+1 = 100020 [13:07:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 102 16.04.2024 13:08 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29828 ФПД: 81747734175625 1/tax-web-control/client/api/v1/ticket?date=20240416T130801&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29828&fm=81747734175625&tin=02508201610067®Number=0000138879044617&sum=100019 [13:08:00]StoreToDocumentArchive [13:08:00]shift 118 fd 29828 [13:08:00]save to /storage/0118/doc_00029828 [13:08:00]save last doc name /storage/0118/doc_00029828 to /storage/kkm_last_doc_name [13:08:00]save OK [13:08:00]Clear old archive folders... [13:08:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:08:00]tlvbuf is 001B6700 [13:08:00]SAM_PROTO_ClearQueue [13:08:00]wFMCommunicate request_size=4 [13:08:00]MH_SAM_APDU [13:08:00]CAPDU: 80 09 00 00 [13:08:00]Write to MH i2c: E2 08 00 A7 17 80 09 00 00 00 00 00 00 30 [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:00]Read from MH i2c: E2 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 03 00 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 03 00 A7 17 00 90 00 32 [13:08:00]RAPDU: 90 00 [13:08:00]wFMCommunicate OK [13:08:00]SAM_PROTO_ClearQueue done [13:08:00]KKMCreateOFDPacket [13:08:00]OFDProtocolAddRootSTLVToBuf [13:08:00]FM_MakeSignedData [13:08:00]FM_MakeSignedData [13:08:00]SAM_PROTO_SignData [13:08:00]wFMCommunicate request_size=4 [13:08:00]MH_SAM_APDU [13:08:00]CAPDU: 80 0D 01 02 [13:08:00]Write to MH i2c: E2 08 00 A8 17 80 0D 01 02 00 00 00 00 38 [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:00]Read from MH i2c: E2 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 03 00 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 03 00 A8 17 00 90 00 33 [13:08:00]RAPDU: 90 00 [13:08:00]wFMCommunicate OK [13:08:00]wFMCommunicate request_size=255 [13:08:00]MH_SAM_APDU [13:08:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 31 78 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 74 00 00 35 04 06 00 4A 59 60 A8 [13:08:00]Write to MH i2c: E2 02 01 A9 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 31 78 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 74 00 00 35 04 06 00 4A 59 60 A8 00 00 8D [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:01]Read from MH i2c: E2 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 A9 17 00 90 00 34 [13:08:01]RAPDU: 90 00 [13:08:01]wFMCommunicate OK [13:08:01]wFMCommunicate request_size=7 [13:08:01]MH_SAM_APDU [13:08:01]CAPDU: 80 0D 02 02 02 1F 89 [13:08:01]Write to MH i2c: E2 0A 00 AA 17 80 0D 02 02 02 00 1F 89 00 00 E7 [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:01]Read from MH i2c: E2 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 03 00 AA 17 00 90 00 35 [13:08:01]RAPDU: 90 00 [13:08:01]wFMCommunicate OK [13:08:01]wFMCommunicate request_size=4 [13:08:01]MH_SAM_APDU [13:08:01]CAPDU: 80 0D 03 02 [13:08:01]Write to MH i2c: E2 08 00 AB 17 80 0D 03 02 00 00 00 00 3D [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:01]Read from MH i2c: E2 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 0B 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 0B 00 AB 17 00 75 3C 55 59 C3 0B 39 8C 90 00 30 [13:08:01]RAPDU: 75 3C 55 59 C3 0B 39 8C 90 00 [13:08:01]wFMCommunicate OK [13:08:01]SAM_PROTO_SignData done [13:08:01]FM_MakeSignedData done [13:08:01]CreateOFDProtocolMessage [13:08:01]wFMCommunicate request_size=4 [13:08:01]MH_SAM_APDU [13:08:01]CAPDU: 80 11 00 00 [13:08:01]Write to MH i2c: E2 08 00 AC 17 80 11 00 00 00 00 00 00 3D [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:01]Read from MH i2c: E2 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 17 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: E2 17 00 AC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8C [13:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:08:01]wFMCommunicate OK [13:08:01]CreateOFDProtocolMessage done [13:08:01]OFDSenderStorePacket 29828 [13:08:01]StoreOFDPacket docnum=29828 [13:08:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 3B 23 04 01 49 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 31 78 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 74 00 00 35 04 06 00 4A 59 60 A8 1F 89 75 3C 55 59 C3 0B 39 8C [13:08:01]CheckFolder [13:08:01]dirname=/storage/ofd_packets [13:08:01]CheckFolder done [13:08:01]ProducePacketName [13:08:01]name=ofd_packets/00029828 [13:08:01]NVStorageSaveData ofd_packets/00029828 [13:08:01]File name is /storage/ofd_packets/00029828 [13:08:01]Write 298 bytes [13:08:01]NVStorageSaveData done [13:08:01]OFDSenderStorePacket done [13:08:01]KKMCreateOFDPacket done [13:08:01]NVStorageSaveData kkm_last_timestamp [13:08:01]File name is /storage/kkm_last_timestamp [13:08:01]Write 4 bytes [13:08:01]NVStorageSaveData done [13:08:01]ExternCall_PrintAddStr [13:08:01]wPrintStart [13:08:01]Write to MH i2c: 01 00 00 AD 17 C4 [13:08:01]Write i2c OK [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: 01 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: 01 07 00 [13:08:01]MH_I2C_Read... [13:08:01]Read from MH i2c: 01 07 00 AD 17 00 00 00 00 00 FF 0F D9 [13:08:01]RasterBufferAndPrint [13:08:01]line Счет N : (1)348334 [13:08:01]line ИНН: 02508201610067 [13:08:01]line Контрольно-Кассовый Чек [13:08:01]line ПРОДАЖА [13:08:01]line ТРК (МРК, ГНК) : 21 [13:08:01]line Товар: 2710194210 [13:08:01]line ДТ-К-5 [13:08:01]line 13.720 * 72.90 [13:08:01]line = 1000.19 [13:08:01]line НДС 12% НСП 1% [13:08:01]line > о реализуемом товаре [13:08:01]line ИТОГО: 1000.19 [13:08:01]line НСП 1% : 8.85 [13:08:01]line НДС 12% : 106.21 [13:08:01]line Наличными: 0.00 [13:08:01]line Безнал.: 1000.19 [13:08:01]line Место: АЗС № 108 "Партнер Нефть" [13:08:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:08:01]line СНО: Общий режим [13:08:01]line Чек 102 16.04.2024 13:08 [13:08:01]line Смена: 118 ФФД: 1.0 [13:08:01]line ЗНМ: 0300000027 [13:08:01]line РНМ: 0000138879044617 [13:08:01]line Версия ККМ: 001 [13:08:01]line Платежная система: О! деньги [13:08:01]line ФМ: 0000000000963154 [13:08:01]line ФД: 29828 [13:08:01]line ФПД: 81747734175625 [13:08:01]line 1/tax-web-control/client/api/v1/ticket?date=20240416T130801&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29828&fm=81747734175625&tin=02508201610067®Number=0000138879044617&sum=100019 [13:08:01]OFD Sender: Processing packet 29828 [packets to send 8, broken 7] [13:08:01]ProducePacketName [13:08:01]name=ofd_packets/00029828 [13:08:01]OFD Sender: To server: pG, [13:08:01]CommunicateWithHost lk.salyk.kg:30040 [13:08:01]ConnectInit lk.salyk.kg [13:08:01]written 0, free lines is 4095 [13:08:01]Connected sock=10 [13:08:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 3B 23 04 01 49 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 31 78 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 74 00 00 35 04 06 00 4A 59 60 A8 1F 89 75 3C 55 59 C3 0B 39 8C [13:08:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 14 5A 47 00 65 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 74 00 00 F4 03 04 00 CF 22 1E 66 B6 04 01 00 00 00 FD EF 41 D3 23 2E 2F [13:08:01]CommunicateWithHost err = 0 [13:08:01]CheckOFDResponse [13:08:01]1017 (14) - 77093643461234 [13:08:01]1041 (16) - 0000000000963154 [13:08:01]1040 (4) - 29828 [13:08:01]1012 (4) - 16.04.2024 07:03 [13:08:01]1206 (1) - 0 [13:08:01]OFD Sender: Remove packet 29828 [13:08:01]ProducePacketName [13:08:01]name=ofd_packets/00029828 [13:08:01]NVStorageDeleteData [13:08:02]Write to MH i2c: 01 00 00 D6 17 ED [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 07 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 07 00 D6 17 00 00 00 00 00 D0 0C D0 [13:08:02]RasterBufferAndPrint [13:08:02]line [13:08:02]line [13:08:02]line [13:08:02]line [13:08:02]line [13:08:02]written 0, free lines is 3286 [13:08:02]MH_Cut [13:08:02]Write to MH i2c: D1 01 00 DD 17 01 C6 [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: D1 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: D1 01 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: D1 01 00 DD 17 00 C5 [13:08:02]Write to MH i2c: 01 00 00 DE 17 F5 [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]OFD Sender: No OFD packet to send [13:08:02]*** Cut start [13:08:02]*** Partial cut [13:08:02]*** CUTSNS_PIN = 1 [13:08:02]*** CUTSNS_PIN = 0 [13:08:03]*** Brake cut motor [13:08:03]Read from MH i2c: 01 [13:08:03]MH_I2C_Read... [13:08:03]*** Stop cut motor [13:08:03]*** Cut end [13:08:03]Read from MH i2c: 01 07 00 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: 01 07 00 DE 17 00 00 00 00 00 FF 0F 0A [13:08:03]process_action close_receipt done [13:08:03]requested_data is exist [13:08:03]produce_requested_data [13:08:03]requested_item fm.sn is exist - process it [13:08:03]wFMCommunicate request_size=4 [13:08:03]MH_SAM_APDU [13:08:03]CAPDU: 80 11 00 00 [13:08:03]Write to MH i2c: E2 08 00 DF 17 80 11 00 00 00 00 00 00 70 [13:08:03]Write i2c OK [13:08:03]MH_I2C_Read... [13:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:03]Read from MH i2c: E2 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 17 00 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 17 00 DF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BF [13:08:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:08:03]wFMCommunicate OK [13:08:03]requested_item fd.num is exist - process it [13:08:03]SAM_PROTO_GetFieldsCounters [13:08:03]wFMCommunicate request_size=4 [13:08:03]MH_SAM_APDU [13:08:03]CAPDU: 80 13 00 00 [13:08:03]Write to MH i2c: E2 08 00 E0 17 80 13 00 00 00 00 00 00 73 [13:08:03]Write i2c OK [13:08:03]MH_I2C_Read... [13:08:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:03]Read from MH i2c: E2 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 62 00 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 62 00 E0 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 84 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [13:08:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 84 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:03]wFMCommunicate OK [13:08:03]SAM_PROTO_GetFieldsCounters done [13:08:03]requested_item shift.num is exist - process it [13:08:03]requested_item shift.opened is exist - process it [13:08:03]req_shift_opened [13:08:03]FM_GetShiftState [13:08:03]SAM_PROTO_GetShiftState [13:08:03]wFMCommunicate request_size=4 [13:08:03]MH_SAM_APDU [13:08:03]CAPDU: 80 13 01 00 [13:08:03]Write to MH i2c: E2 08 00 E1 17 80 13 01 00 00 00 00 00 75 [13:08:03]Write i2c OK [13:08:03]MH_I2C_Read... [13:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:03]Read from MH i2c: E2 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 0E 00 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 0E 00 E1 17 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 23 [13:08:03]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:08:03]wFMCommunicate OK [13:08:03]SAM_PROTO_GetShiftState done [13:08:03]FM_GetShiftState done [13:08:03]req_shift_opened done [13:08:03]requested_item shift.open_date is exist - process it [13:08:03]req_shift_open_date [13:08:03]req_shift_open_date done [13:08:03]produce_requested_data done [13:08:03]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29828,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [13:08:03]process_action_free close_receipt [13:08:03]json_value_free [13:08:03]json_value_free done [13:08:03]process_json_proto returns [13:08:03]Send response to host [13:08:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29828,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [13:08:03]free response buf [13:08:03]execute_script done [13:08:03]execute_script returns [13:08:03]free content buf [13:08:03]Sock 7.Close socket [13:08:03]Sock 7.Thread stoped [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]accept exits with 9 [13:10:37]New connection [13:10:37]New thread 3067276644 created [13:10:37]Thread 3067133284 joined [13:10:37]Waiting for new connection... [13:10:37] Sock 9.Parse request [13:10:37]Sock 9.Check first char [13:10:37]Sock 9.First char is OK [13:10:37]request: POST /json_proto HTTP/1.0 [13:10:37]Method: POST [13:10:37]URL: /json_proto [13:10:37]Method is POST - this is cgi request [13:10:37]url: /json_proto [13:10:37]query_string will be loaded in cgi processing [13:10:37]execute_cgi json_proto POST (null) [13:10:37]execute_cgi path=json_proto method=POST [13:10:37]POST find Content-Length [13:10:37]Host: 172.17.33.3:8080 [13:10:37]Content-Length: 808 [13:10:37]Content-Type: application/json [13:10:37] [13:10:37]POST finish read [13:10:37]Found Content-Length = 808 [13:10:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 18.520, "sum" : 1200.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:37]execute_script... [13:10:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 18.520, "sum" : 1200.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:37]POST & json_proto [13:10:37]process_json_proto [13:10:37]json parsed OK: [13:10:37]protocol is kg_v1.0 [13:10:37]action value=close_receipt [13:10:37]process_action close_receipt [13:10:37]cmd_close_receipt [13:10:37]MH_GetDate [13:10:37]Write to MH i2c: F0 00 00 E2 17 E8 [13:10:37]Write i2c OK [13:10:37]MH_I2C_Read... [13:10:37]Read from MH i2c: F0 [13:10:37]MH_I2C_Read... [13:10:37]Read from MH i2c: F0 09 00 [13:10:37]MH_I2C_Read... [13:10:37]Read from MH i2c: F0 09 00 E2 17 00 CF 78 1E 66 23 5B 8F 65 2E [13:10:37]GetLastDocTimeStamp 1713272881 [13:10:37]current date 1713273039 [13:10:37]FM_GetShiftState [13:10:37]SAM_PROTO_GetShiftState [13:10:37]wFMCommunicate request_size=4 [13:10:37]MH_SAM_APDU [13:10:37]CAPDU: 80 13 01 00 [13:10:37]Write to MH i2c: E2 08 00 E3 17 80 13 01 00 00 00 00 00 77 [13:10:37]Write i2c OK [13:10:37]MH_I2C_Read... [13:10:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:37]Read from MH i2c: E2 [13:10:37]MH_I2C_Read... [13:10:37]Read from MH i2c: E2 0E 00 [13:10:37]MH_I2C_Read... [13:10:37]Read from MH i2c: E2 0E 00 E3 17 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 25 [13:10:37]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:10:37]wFMCommunicate OK [13:10:37]SAM_PROTO_GetShiftState done [13:10:37]FM_GetShiftState done [13:10:37]opened in 1713226843 [13:10:37]opened+sec_in_day 1713313243 [13:10:37]quantity*price = 120009 [13:10:37]sum+1 = 120011 [13:10:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.10 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 0.00 Безнал.: 1200.10 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 103 16.04.2024 13:10 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29829 ФПД: 185522989481110 1/tax-web-control/client/api/v1/ticket?date=20240416T131039&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29829&fm=185522989481110&tin=02508201610067®Number=0000138879044617&sum=120010 [13:10:38]StoreToDocumentArchive [13:10:38]shift 118 fd 29829 [13:10:38]save to /storage/0118/doc_00029829 [13:10:38]save last doc name /storage/0118/doc_00029829 to /storage/kkm_last_doc_name [13:10:38]save OK [13:10:38]Clear old archive folders... [13:10:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:38]tlvbuf is 001C7C40 [13:10:38]SAM_PROTO_ClearQueue [13:10:38]wFMCommunicate request_size=4 [13:10:38]MH_SAM_APDU [13:10:38]CAPDU: 80 09 00 00 [13:10:38]Write to MH i2c: E2 08 00 F0 17 80 09 00 00 00 00 00 00 79 [13:10:38]Write i2c OK [13:10:38]MH_I2C_Read... [13:10:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:38]Read from MH i2c: E2 [13:10:38]MH_I2C_Read... [13:10:38]Read from MH i2c: E2 03 00 [13:10:38]MH_I2C_Read... [13:10:38]Read from MH i2c: E2 03 00 F0 17 00 90 00 7B [13:10:38]RAPDU: 90 00 [13:10:38]wFMCommunicate OK [13:10:38]SAM_PROTO_ClearQueue done [13:10:38]KKMCreateOFDPacket [13:10:38]OFDProtocolAddRootSTLVToBuf [13:10:38]FM_MakeSignedData [13:10:38]FM_MakeSignedData [13:10:38]SAM_PROTO_SignData [13:10:38]wFMCommunicate request_size=4 [13:10:38]MH_SAM_APDU [13:10:38]CAPDU: 80 0D 01 02 [13:10:38]Write to MH i2c: E2 08 00 F1 17 80 0D 01 02 00 00 00 00 81 [13:10:38]Write i2c OK [13:10:38]MH_I2C_Read... [13:10:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:38]Read from MH i2c: E2 [13:10:38]MH_I2C_Read... [13:10:38]Read from MH i2c: E2 03 00 [13:10:38]MH_I2C_Read... [13:10:38]Read from MH i2c: E2 03 00 F1 17 00 90 00 7C [13:10:38]RAPDU: 90 00 [13:10:38]wFMCommunicate OK [13:10:38]wFMCommunicate request_size=255 [13:10:38]MH_SAM_APDU [13:10:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CF 78 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 74 00 00 35 04 06 00 A8 [13:10:38]Write to MH i2c: E2 02 01 F2 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CF 78 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 74 00 00 35 04 06 00 A8 00 00 FA [13:10:38]Write i2c OK [13:10:38]MH_I2C_Read... [13:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:38]Read from MH i2c: E2 [13:10:38]MH_I2C_Read... [13:10:38]Read from MH i2c: E2 03 00 [13:10:38]MH_I2C_Read... [13:10:38]Read from MH i2c: E2 03 00 F2 17 00 90 00 7D [13:10:38]RAPDU: 90 00 [13:10:38]wFMCommunicate OK [13:10:38]wFMCommunicate request_size=10 [13:10:38]MH_SAM_APDU [13:10:38]CAPDU: 80 0D 02 02 05 BB 6F E2 BC 96 [13:10:38]Write to MH i2c: E2 0D 00 F3 17 80 0D 02 02 05 00 BB 6F E2 BC 96 00 00 EC [13:10:38]Write i2c OK [13:10:38]MH_I2C_Read... [13:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:38]Read from MH i2c: E2 [13:10:38]MH_I2C_Read... [13:10:38]Read from MH i2c: E2 03 00 [13:10:38]MH_I2C_Read... [13:10:38]Read from MH i2c: E2 03 00 F3 17 00 90 00 7E [13:10:38]RAPDU: 90 00 [13:10:38]wFMCommunicate OK [13:10:38]wFMCommunicate request_size=4 [13:10:38]MH_SAM_APDU [13:10:38]CAPDU: 80 0D 03 02 [13:10:38]Write to MH i2c: E2 08 00 F4 17 80 0D 03 02 00 00 00 00 86 [13:10:38]Write i2c OK [13:10:38]MH_I2C_Read... [13:10:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:39]Read from MH i2c: E2 [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: E2 0B 00 [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: E2 0B 00 F4 17 00 33 57 CD C2 F6 70 80 7D 90 00 03 [13:10:39]RAPDU: 33 57 CD C2 F6 70 80 7D 90 00 [13:10:39]wFMCommunicate OK [13:10:39]SAM_PROTO_SignData done [13:10:39]FM_MakeSignedData done [13:10:39]CreateOFDProtocolMessage [13:10:39]wFMCommunicate request_size=4 [13:10:39]MH_SAM_APDU [13:10:39]CAPDU: 80 11 00 00 [13:10:39]Write to MH i2c: E2 08 00 F5 17 80 11 00 00 00 00 00 00 86 [13:10:39]Write i2c OK [13:10:39]MH_I2C_Read... [13:10:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:39]Read from MH i2c: E2 [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: E2 17 00 [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: E2 17 00 F5 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D5 [13:10:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:10:39]wFMCommunicate OK [13:10:39]CreateOFDProtocolMessage done [13:10:39]OFDSenderStorePacket 29829 [13:10:39]StoreOFDPacket docnum=29829 [13:10:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E4 06 07 01 94 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CF 78 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 74 00 00 35 04 06 00 A8 BB 6F E2 BC 96 33 57 CD C2 F6 70 80 7D [13:10:39]CheckFolder [13:10:39]dirname=/storage/ofd_packets [13:10:39]CheckFolder done [13:10:39]ProducePacketName [13:10:39]name=ofd_packets/00029829 [13:10:39]NVStorageSaveData ofd_packets/00029829 [13:10:39]File name is /storage/ofd_packets/00029829 [13:10:39]Write 301 bytes [13:10:39]NVStorageSaveData done [13:10:39]OFDSenderStorePacket done [13:10:39]KKMCreateOFDPacket done [13:10:39]NVStorageSaveData kkm_last_timestamp [13:10:39]File name is /storage/kkm_last_timestamp [13:10:39]Write 4 bytes [13:10:39]NVStorageSaveData done [13:10:39]ExternCall_PrintAddStr [13:10:39]wPrintStart [13:10:39]Write to MH i2c: 01 00 00 F6 17 0D [13:10:39]Write i2c OK [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: 01 [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: 01 07 00 [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: 01 07 00 F6 17 00 00 00 00 00 FF 0F 22 [13:10:39]RasterBufferAndPrint [13:10:39]line Счет N : (1)348335 [13:10:39]line ИНН: 02508201610067 [13:10:39]line Контрольно-Кассовый Чек [13:10:39]line ПРОДАЖА [13:10:39]line ТРК (МРК, ГНК) : 13 [13:10:39]line Товар: 2710124130 [13:10:39]line Аи-92-К-5 [13:10:39]line 18.520 * 64.80 [13:10:39]line = 1200.10 [13:10:39]line НДС 12% НСП 1% [13:10:39]line > о реализуемом товаре [13:10:39]line ИТОГО: 1200.10 [13:10:39]line НСП 1% : 10.62 [13:10:39]line НДС 12% : 127.44 [13:10:39]line Наличными: 0.00 [13:10:39]line Безнал.: 1200.10 [13:10:39]line Место: АЗС № 108 "Партнер Нефть" [13:10:39]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:10:39]line СНО: Общий режим [13:10:39]line Чек 103 16.04.2024 13:10 [13:10:39]line Смена: 118 ФФД: 1.0 [13:10:39]line ЗНМ: 0300000027 [13:10:39]line РНМ: 0000138879044617 [13:10:39]line Версия ККМ: 001 [13:10:39]line Платежная система: О! деньги [13:10:39]line ФМ: 0000000000963154 [13:10:39]line ФД: 29829 [13:10:39]line ФПД: 185522989481110 [13:10:39]line 1/tax-web-control/client/api/v1/ticket?date=20240416T131039&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29829&fm=185522989481110&tin=02508201610067®Number=0000138879044617&sum=120010 [13:10:39]OFD Sender: Processing packet 29829 [packets to send 8, broken 7] [13:10:39]ProducePacketName [13:10:39]name=ofd_packets/00029829 [13:10:39]OFD Sender: To server: pG, [13:10:39]CommunicateWithHost lk.salyk.kg:30040 [13:10:39]ConnectInit lk.salyk.kg [13:10:39]written 0, free lines is 4095 [13:10:39]Connected sock=10 [13:10:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E4 06 07 01 94 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 48 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 CA D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CA D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CA D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CF 78 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 74 00 00 35 04 06 00 A8 BB 6F E2 BC 96 33 57 CD C2 F6 70 80 7D [13:10:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 56 09 47 00 F6 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 36 33 31 35 34 10 04 04 00 85 74 00 00 F4 03 04 00 6D 23 1E 66 B6 04 01 00 00 07 31 1E 0E 04 35 E6 D6 [13:10:39]CommunicateWithHost err = 0 [13:10:39]CheckOFDResponse [13:10:39]1017 (14) - 77093643461234 [13:10:39]1041 (16) - 0000000000963154 [13:10:39]1040 (4) - 29829 [13:10:39]1012 (4) - 16.04.2024 07:06 [13:10:39]1206 (1) - 0 [13:10:39]OFD Sender: Remove packet 29829 [13:10:39]ProducePacketName [13:10:39]name=ofd_packets/00029829 [13:10:39]NVStorageDeleteData [13:10:39]Write to MH i2c: 01 00 00 1F 18 37 [13:10:39]Write i2c OK [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: 01 [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: 01 07 00 [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: 01 07 00 1F 18 00 00 00 00 00 D9 0C 23 [13:10:39]RasterBufferAndPrint [13:10:39]line [13:10:39]line [13:10:39]line [13:10:39]line [13:10:39]line [13:10:39]written 0, free lines is 3295 [13:10:39]MH_Cut [13:10:39]Write to MH i2c: D1 01 00 26 18 01 10 [13:10:39]Write i2c OK [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: D1 [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: D1 01 00 [13:10:39]MH_I2C_Read... [13:10:39]Read from MH i2c: D1 01 00 26 18 00 0F [13:10:39]Write to MH i2c: 01 00 00 27 18 3F [13:10:39]Write i2c OK [13:10:39]MH_I2C_Read... [13:10:40]OFD Sender: No OFD packet to send [13:10:40]*** Cut start [13:10:40]*** Partial cut [13:10:40]*** CUTSNS_PIN = 1 [13:10:40]*** CUTSNS_PIN = 0 [13:10:40]*** Brake cut motor [13:10:41]Read from MH i2c: 01 [13:10:41]MH_I2C_Read... [13:10:41]*** Stop cut motor [13:10:41]*** Cut end [13:10:41]Read from MH i2c: 01 07 00 [13:10:41]MH_I2C_Read... [13:10:41]Read from MH i2c: 01 07 00 27 18 00 00 00 00 00 FF 0F 54 [13:10:41]process_action close_receipt done [13:10:41]requested_data is exist [13:10:41]produce_requested_data [13:10:41]requested_item fm.sn is exist - process it [13:10:41]wFMCommunicate request_size=4 [13:10:41]MH_SAM_APDU [13:10:41]CAPDU: 80 11 00 00 [13:10:41]Write to MH i2c: E2 08 00 28 18 80 11 00 00 00 00 00 00 BA [13:10:41]Write i2c OK [13:10:41]MH_I2C_Read... [13:10:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:41]Read from MH i2c: E2 [13:10:41]MH_I2C_Read... [13:10:41]Read from MH i2c: E2 17 00 [13:10:41]MH_I2C_Read... [13:10:41]Read from MH i2c: E2 17 00 28 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 09 [13:10:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:10:41]wFMCommunicate OK [13:10:41]requested_item fd.num is exist - process it [13:10:41]SAM_PROTO_GetFieldsCounters [13:10:41]wFMCommunicate request_size=4 [13:10:41]MH_SAM_APDU [13:10:41]CAPDU: 80 13 00 00 [13:10:41]Write to MH i2c: E2 08 00 29 18 80 13 00 00 00 00 00 00 BD [13:10:41]Write i2c OK [13:10:41]MH_I2C_Read... [13:10:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:41]Read from MH i2c: E2 [13:10:41]MH_I2C_Read... [13:10:41]Read from MH i2c: E2 62 00 [13:10:41]MH_I2C_Read... [13:10:41]Read from MH i2c: E2 62 00 29 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 85 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [13:10:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 85 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:41]wFMCommunicate OK [13:10:41]SAM_PROTO_GetFieldsCounters done [13:10:41]requested_item shift.num is exist - process it [13:10:41]requested_item shift.opened is exist - process it [13:10:41]req_shift_opened [13:10:41]FM_GetShiftState [13:10:41]SAM_PROTO_GetShiftState [13:10:41]wFMCommunicate request_size=4 [13:10:41]MH_SAM_APDU [13:10:41]CAPDU: 80 13 01 00 [13:10:41]Write to MH i2c: E2 08 00 2A 18 80 13 01 00 00 00 00 00 BF [13:10:41]Write i2c OK [13:10:41]MH_I2C_Read... [13:10:41]Read from MH i2c: E2 [13:10:41]MH_I2C_Read... [13:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:41]Read from MH i2c: E2 0E 00 [13:10:41]MH_I2C_Read... [13:10:41]Read from MH i2c: E2 0E 00 2A 18 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 6D [13:10:41]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:10:41]wFMCommunicate OK [13:10:41]SAM_PROTO_GetShiftState done [13:10:41]FM_GetShiftState done [13:10:41]req_shift_opened done [13:10:41]requested_item shift.open_date is exist - process it [13:10:41]req_shift_open_date [13:10:41]req_shift_open_date done [13:10:41]produce_requested_data done [13:10:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29829,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [13:10:41]process_action_free close_receipt [13:10:41]json_value_free [13:10:41]json_value_free done [13:10:41]process_json_proto returns [13:10:41]Send response to host [13:10:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29829,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [13:10:41]free response buf [13:10:41]execute_script done [13:10:41]execute_script returns [13:10:41]free content buf [13:10:41]Sock 9.Close socket [13:10:41]Sock 9.Thread stoped [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:11:00]OFD Sender: No OFD packet to send [13:11:05]OFD Sender: No OFD packet to send [13:11:10]OFD Sender: No OFD packet to send [13:11:15]OFD Sender: No OFD packet to send [13:11:20]OFD Sender: No OFD packet to send [13:11:25]OFD Sender: No OFD packet to send [13:11:30]OFD Sender: No OFD packet to send [13:11:35]OFD Sender: No OFD packet to send [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:55]OFD Sender: No OFD packet to send [13:12:00]OFD Sender: No OFD packet to send [13:12:05]OFD Sender: No OFD packet to send [13:12:10]OFD Sender: No OFD packet to send [13:12:15]OFD Sender: No OFD packet to send [13:12:20]OFD Sender: No OFD packet to send [13:12:25]OFD Sender: No OFD packet to send [13:12:30]OFD Sender: No OFD packet to send [13:12:35]OFD Sender: No OFD packet to send [13:12:40]OFD Sender: No OFD packet to send [13:12:45]OFD Sender: No OFD packet to send [13:12:50]OFD Sender: No OFD packet to send [13:12:55]OFD Sender: No OFD packet to send [13:13:00]OFD Sender: No OFD packet to send [13:13:05]OFD Sender: No OFD packet to send [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:19]accept exits with 7 [13:13:19]New connection [13:13:19]New thread 3067133284 created [13:13:19]Thread 3067276644 joined [13:13:19]Waiting for new connection... [13:13:19] Sock 7.Parse request [13:13:19]Sock 7.Check first char [13:13:19]Sock 7.First char is OK [13:13:19]request: POST /json_proto HTTP/1.0 [13:13:19]Method: POST [13:13:19]URL: /json_proto [13:13:19]Method is POST - this is cgi request [13:13:19]url: /json_proto [13:13:19]query_string will be loaded in cgi processing [13:13:19]execute_cgi json_proto POST (null) [13:13:19]execute_cgi path=json_proto method=POST [13:13:19]POST find Content-Length [13:13:19]Host: 172.17.33.3:8080 [13:13:19]Content-Length: 1207 [13:13:19]Content-Type: application/json [13:13:19] [13:13:19]POST finish read [13:13:19]Found Content-Length = 1207 [13:13:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348336\u000A16.04.2024 12:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 42.920 x 72.90\u000A\u0418\u0422\u041E\u0413: 3128.87\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53416\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:19]execute_script... [13:13:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348336\u000A16.04.2024 12:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 42.920 x 72.90\u000A\u0418\u0422\u041E\u0413: 3128.87\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53416\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:19]POST & json_proto [13:13:19]process_json_proto [13:13:19]json parsed OK: [13:13:19]protocol is kg_v1.0 [13:13:19]action value=print_text [13:13:19]process_action print_text [13:13:19]cmd_print_text [13:13:19]ExternCall_PrintAddStr [13:13:19]wPrintStart [13:13:19]Write to MH i2c: 01 00 00 2B 18 43 [13:13:19]Write i2c OK [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: 01 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: 01 07 00 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: 01 07 00 2B 18 00 00 00 00 00 FF 0F 58 [13:13:19]RasterBufferAndPrint [13:13:19]line *****ТОВАРНЫЙ ЧЕК***** [13:13:19]line АЗС 108 [13:13:19]line Партнер нефть [13:13:19]line 02508201610067 [13:13:19]line Кассир : Шадыканова Ж. [13:13:19]line Счет N : (1)348336 [13:13:19]line 16.04.2024 12:54 [13:13:19]line ПРОДАЖА [13:13:19]line ТРК (МРК, ГНК): 43 [13:13:19]line Вид ГСМ : 2710124500 [13:13:19]line Аи-95-К-5 [13:13:19]line 42.920 x 72.90 [13:13:19]line ИТОГ: 3128.87 [13:13:19]line Тип оплаты: Талоны: Топливная Карта [13:13:19]line 53416 [13:13:19]line ______________________ [13:13:19]line (подпись) [13:13:19]written 0, free lines is 4095 [13:13:19]Write to MH i2c: 01 00 00 40 18 58 [13:13:19]Write i2c OK [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: 01 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: 01 07 00 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: 01 07 00 40 18 00 00 00 00 00 F6 0D 62 [13:13:19]RasterBufferAndPrint [13:13:19]line [13:13:19]line [13:13:19]line [13:13:19]line [13:13:19]line [13:13:19]written 0, free lines is 3576 [13:13:19]MH_Cut [13:13:19]Write to MH i2c: D1 01 00 47 18 01 31 [13:13:19]Write i2c OK [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: D1 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: D1 01 00 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: D1 01 00 47 18 00 30 [13:13:19]Write to MH i2c: 01 00 00 48 18 60 [13:13:19]Write i2c OK [13:13:19]MH_I2C_Read... [13:13:20]*** Cut start [13:13:20]*** Partial cut [13:13:20]*** CUTSNS_PIN = 1 [13:13:20]*** CUTSNS_PIN = 0 [13:13:20]OFD Sender: No OFD packet to send [13:13:20]*** Brake cut motor [13:13:20]Read from MH i2c: 01 [13:13:20]MH_I2C_Read... [13:13:20]*** Stop cut motor [13:13:20]*** Cut end [13:13:20]Read from MH i2c: 01 07 00 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: 01 07 00 48 18 00 00 00 00 00 FF 0F 75 [13:13:20]process_action print_text done [13:13:20]requested_data is exist [13:13:20]produce_requested_data [13:13:20]requested_item fm.sn is exist - process it [13:13:20]wFMCommunicate request_size=4 [13:13:20]MH_SAM_APDU [13:13:20]CAPDU: 80 11 00 00 [13:13:20]Write to MH i2c: E2 08 00 49 18 80 11 00 00 00 00 00 00 DB [13:13:20]Write i2c OK [13:13:20]MH_I2C_Read... [13:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:20]Read from MH i2c: E2 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 17 00 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 17 00 49 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2A [13:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:13:20]wFMCommunicate OK [13:13:20]requested_item fd.num is exist - process it [13:13:20]SAM_PROTO_GetFieldsCounters [13:13:20]wFMCommunicate request_size=4 [13:13:20]MH_SAM_APDU [13:13:20]CAPDU: 80 13 00 00 [13:13:20]Write to MH i2c: E2 08 00 4A 18 80 13 00 00 00 00 00 00 DE [13:13:20]Write i2c OK [13:13:20]MH_I2C_Read... [13:13:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:20]Read from MH i2c: E2 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 62 00 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 62 00 4A 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 85 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [13:13:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 85 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:20]wFMCommunicate OK [13:13:20]SAM_PROTO_GetFieldsCounters done [13:13:20]requested_item shift.num is exist - process it [13:13:20]requested_item shift.opened is exist - process it [13:13:20]req_shift_opened [13:13:20]FM_GetShiftState [13:13:20]SAM_PROTO_GetShiftState [13:13:20]wFMCommunicate request_size=4 [13:13:20]MH_SAM_APDU [13:13:20]CAPDU: 80 13 01 00 [13:13:20]Write to MH i2c: E2 08 00 4B 18 80 13 01 00 00 00 00 00 E0 [13:13:20]Write i2c OK [13:13:20]MH_I2C_Read... [13:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:20]Read from MH i2c: E2 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 0E 00 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 0E 00 4B 18 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 8E [13:13:20]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:13:20]wFMCommunicate OK [13:13:20]SAM_PROTO_GetShiftState done [13:13:20]FM_GetShiftState done [13:13:20]req_shift_opened done [13:13:20]requested_item shift.open_date is exist - process it [13:13:20]req_shift_open_date [13:13:20]req_shift_open_date done [13:13:20]produce_requested_data done [13:13:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29829,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [13:13:20]process_action_free print_text [13:13:20]json_value_free [13:13:20]json_value_free done [13:13:20]process_json_proto returns [13:13:20]Send response to host [13:13:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29829,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [13:13:20]free response buf [13:13:20]execute_script done [13:13:20]execute_script returns [13:13:20]free content buf [13:13:20]Sock 7.Close socket [13:13:20]Sock 7.Thread stoped [13:13:25]OFD Sender: No OFD packet to send [13:13:30]OFD Sender: No OFD packet to send [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:45]OFD Sender: No OFD packet to send [13:13:50]OFD Sender: No OFD packet to send [13:13:55]OFD Sender: No OFD packet to send [13:14:00]OFD Sender: No OFD packet to send [13:14:05]OFD Sender: No OFD packet to send [13:14:10]OFD Sender: No OFD packet to send [13:14:15]OFD Sender: No OFD packet to send [13:14:20]OFD Sender: No OFD packet to send [13:14:25]OFD Sender: No OFD packet to send [13:14:30]OFD Sender: No OFD packet to send [13:14:35]OFD Sender: No OFD packet to send [13:14:40]OFD Sender: No OFD packet to send [13:14:45]OFD Sender: No OFD packet to send [13:14:50]OFD Sender: No OFD packet to send [13:14:55]OFD Sender: No OFD packet to send [13:15:00]OFD Sender: No OFD packet to send [13:15:05]OFD Sender: No OFD packet to send [13:15:10]OFD Sender: No OFD packet to send [13:15:15]OFD Sender: No OFD packet to send [13:15:20]OFD Sender: No OFD packet to send [13:15:25]OFD Sender: No OFD packet to send [13:15:30]OFD Sender: No OFD packet to send [13:15:35]OFD Sender: No OFD packet to send [13:15:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:29:57]accept exits with 9 [13:29:57]New connection [13:29:57]New thread 3067276644 created [13:29:57]Thread 3067133284 joined [13:29:57]Waiting for new connection... [13:29:57] Sock 9.Parse request [13:29:57]Sock 9.Check first char [13:29:57]Sock 9.First char is OK [13:29:57]request: POST /json_proto HTTP/1.0 [13:29:57]Method: POST [13:29:57]URL: /json_proto [13:29:57]Method is POST - this is cgi request [13:29:57]url: /json_proto [13:29:57]query_string will be loaded in cgi processing [13:29:57]execute_cgi json_proto POST (null) [13:29:57]execute_cgi path=json_proto method=POST [13:29:57]POST find Content-Length [13:29:57]Host: 172.17.33.3:8080 [13:29:57]Content-Length: 677 [13:29:57]Content-Type: application/json [13:29:57] [13:29:57]POST finish read [13:29:57]Found Content-Length = 677 [13:29:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 8.340, "sum" : 540.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:57]execute_script... [13:29:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 8.340, "sum" : 540.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:57]POST & json_proto [13:29:57]process_json_proto [13:29:57]json parsed OK: [13:29:57]protocol is kg_v1.0 [13:29:57]action value=close_receipt [13:29:57]process_action close_receipt [13:29:57]cmd_close_receipt [13:29:57]MH_GetDate [13:29:57]Write to MH i2c: F0 00 00 4C 18 53 [13:29:57]Write i2c OK [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: F0 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: F0 09 00 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: F0 09 00 4C 18 00 57 7D 1E 66 23 5B 8F 65 26 [13:29:57]GetLastDocTimeStamp 1713273039 [13:29:57]current date 1713274199 [13:29:57]FM_GetShiftState [13:29:57]SAM_PROTO_GetShiftState [13:29:57]wFMCommunicate request_size=4 [13:29:57]MH_SAM_APDU [13:29:57]CAPDU: 80 13 01 00 [13:29:57]Write to MH i2c: E2 08 00 4D 18 80 13 01 00 00 00 00 00 E2 [13:29:57]Write i2c OK [13:29:57]MH_I2C_Read... [13:29:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:57]Read from MH i2c: E2 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: E2 0E 00 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: E2 0E 00 4D 18 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 90 [13:29:57]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:29:57]wFMCommunicate OK [13:29:57]SAM_PROTO_GetShiftState done [13:29:57]FM_GetShiftState done [13:29:57]opened in 1713226843 [13:29:57]opened+sec_in_day 1713313243 [13:29:57]quantity*price = 54043 [13:29:57]sum+1 = 54044 [13:29:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.39 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 104 16.04.2024 13:29 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29830 ФПД: 76624279884439 1/tax-web-control/client/api/v1/ticket?date=20240416T132959&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29830&fm=76624279884439&tin=02508201610067®Number=0000138879044617&sum=54000 [13:29:58]StoreToDocumentArchive [13:29:58]shift 118 fd 29830 [13:29:58]save to /storage/0118/doc_00029830 [13:29:58]save last doc name /storage/0118/doc_00029830 to /storage/kkm_last_doc_name [13:29:58]save OK [13:29:58]Clear old archive folders... [13:29:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:58]tlvbuf is 0019CAD0 [13:29:58]SAM_PROTO_ClearQueue [13:29:58]wFMCommunicate request_size=4 [13:29:58]MH_SAM_APDU [13:29:58]CAPDU: 80 09 00 00 [13:29:58]Write to MH i2c: E2 08 00 5A 18 80 09 00 00 00 00 00 00 E4 [13:29:58]Write i2c OK [13:29:58]MH_I2C_Read... [13:29:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:58]Read from MH i2c: E2 [13:29:58]MH_I2C_Read... [13:29:58]Read from MH i2c: E2 03 00 [13:29:58]MH_I2C_Read... [13:29:58]Read from MH i2c: E2 03 00 5A 18 00 90 00 E6 [13:29:58]RAPDU: 90 00 [13:29:58]wFMCommunicate OK [13:29:58]SAM_PROTO_ClearQueue done [13:29:58]KKMCreateOFDPacket [13:29:58]OFDProtocolAddRootSTLVToBuf [13:29:58]FM_MakeSignedData [13:29:58]FM_MakeSignedData [13:29:58]SAM_PROTO_SignData [13:29:58]wFMCommunicate request_size=4 [13:29:58]MH_SAM_APDU [13:29:58]CAPDU: 80 0D 01 02 [13:29:58]Write to MH i2c: E2 08 00 5B 18 80 0D 01 02 00 00 00 00 EC [13:29:58]Write i2c OK [13:29:58]MH_I2C_Read... [13:29:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:58]Read from MH i2c: E2 [13:29:58]MH_I2C_Read... [13:29:58]Read from MH i2c: E2 03 00 [13:29:58]MH_I2C_Read... [13:29:58]Read from MH i2c: E2 03 00 5B 18 00 90 00 E7 [13:29:58]RAPDU: 90 00 [13:29:58]wFMCommunicate OK [13:29:58]wFMCommunicate request_size=255 [13:29:58]MH_SAM_APDU [13:29:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 20 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 1B D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 57 7D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 74 00 00 35 04 06 00 45 [13:29:58]Write to MH i2c: E2 02 01 5C 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 20 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 1B D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 57 7D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 74 00 00 35 04 06 00 45 00 00 77 [13:29:58]Write i2c OK [13:29:58]MH_I2C_Read... [13:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:59]Read from MH i2c: E2 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: E2 03 00 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: E2 03 00 5C 18 00 90 00 E8 [13:29:59]RAPDU: 90 00 [13:29:59]wFMCommunicate OK [13:29:59]wFMCommunicate request_size=10 [13:29:59]MH_SAM_APDU [13:29:59]CAPDU: 80 0D 02 02 05 B0 7A FB D2 97 [13:29:59]Write to MH i2c: E2 0D 00 5D 18 80 0D 02 02 05 00 B0 7A FB D2 97 00 00 87 [13:29:59]Write i2c OK [13:29:59]MH_I2C_Read... [13:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:59]Read from MH i2c: E2 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: E2 03 00 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: E2 03 00 5D 18 00 90 00 E9 [13:29:59]RAPDU: 90 00 [13:29:59]wFMCommunicate OK [13:29:59]wFMCommunicate request_size=4 [13:29:59]MH_SAM_APDU [13:29:59]CAPDU: 80 0D 03 02 [13:29:59]Write to MH i2c: E2 08 00 5E 18 80 0D 03 02 00 00 00 00 F1 [13:29:59]Write i2c OK [13:29:59]MH_I2C_Read... [13:29:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:59]Read from MH i2c: E2 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: E2 0B 00 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: E2 0B 00 5E 18 00 DA C5 87 C5 12 6A B2 24 90 00 2F [13:29:59]RAPDU: DA C5 87 C5 12 6A B2 24 90 00 [13:29:59]wFMCommunicate OK [13:29:59]SAM_PROTO_SignData done [13:29:59]FM_MakeSignedData done [13:29:59]CreateOFDProtocolMessage [13:29:59]wFMCommunicate request_size=4 [13:29:59]MH_SAM_APDU [13:29:59]CAPDU: 80 11 00 00 [13:29:59]Write to MH i2c: E2 08 00 5F 18 80 11 00 00 00 00 00 00 F1 [13:29:59]Write i2c OK [13:29:59]MH_I2C_Read... [13:29:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:59]Read from MH i2c: E2 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: E2 17 00 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: E2 17 00 5F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 40 [13:29:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:29:59]wFMCommunicate OK [13:29:59]CreateOFDProtocolMessage done [13:29:59]OFDSenderStorePacket 29830 [13:29:59]StoreOFDPacket docnum=29830 [13:29:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D6 DC 07 01 10 CF 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 94 20 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 1B D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 57 7D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 74 00 00 35 04 06 00 45 B0 7A FB D2 97 DA C5 87 C5 12 6A B2 24 [13:29:59]CheckFolder [13:29:59]dirname=/storage/ofd_packets [13:29:59]CheckFolder done [13:29:59]ProducePacketName [13:29:59]name=ofd_packets/00029830 [13:29:59]NVStorageSaveData ofd_packets/00029830 [13:29:59]File name is /storage/ofd_packets/00029830 [13:29:59]Write 301 bytes [13:29:59]NVStorageSaveData done [13:29:59]OFDSenderStorePacket done [13:29:59]KKMCreateOFDPacket done [13:29:59]NVStorageSaveData kkm_last_timestamp [13:29:59]File name is /storage/kkm_last_timestamp [13:29:59]Write 4 bytes [13:29:59]NVStorageSaveData done [13:29:59]ExternCall_PrintAddStr [13:29:59]wPrintStart [13:29:59]Write to MH i2c: 01 00 00 60 18 78 [13:29:59]Write i2c OK [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: 01 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: 01 07 00 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: 01 07 00 60 18 00 00 00 00 00 FF 0F 8D [13:29:59]RasterBufferAndPrint [13:29:59]line Счет N : (1)348338 [13:29:59]line ИНН: 02508201610067 [13:29:59]line Контрольно-Кассовый Чек [13:29:59]line ПРОДАЖА [13:29:59]line ТРК (МРК, ГНК) : 13 [13:29:59]line Товар: 2710124130 [13:29:59]line Аи-92-К-5 [13:29:59]line 8.340 * 64.80 [13:29:59]line = 540.43 [13:29:59]line НДС 12% НСП 1% [13:29:59]line > о реализуемом товаре [13:29:59]line ОКРУГЛЕНИЕ: -0.43 [13:29:59]line ИТОГО: 540.00 [13:29:59]line Внесено: 540.00 [13:29:59]line СДАЧА: 0.00 [13:29:59]line НСП 1% : 4.78 [13:29:59]line НДС 12% : 57.39 [13:29:59]line Наличными: 540.00 [13:29:59]line Безнал.: 0.00 [13:29:59]line Место: АЗС № 108 "Партнер Нефть" [13:29:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:29:59]line СНО: Общий режим [13:29:59]line Чек 104 16.04.2024 13:29 [13:29:59]line Смена: 118 ФФД: 1.0 [13:29:59]line ЗНМ: 0300000027 [13:29:59]line РНМ: 0000138879044617 [13:29:59]line Версия ККМ: 001 [13:29:59]line ФМ: 0000000000963154 [13:29:59]line ФД: 29830 [13:29:59]line ФПД: 76624279884439 [13:29:59]line 1/tax-web-control/client/api/v1/ticket?date=20240416T132959&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29830&fm=76624279884439&tin=02508201610067®Number=0000138879044617&sum=54000 [13:29:59]OFD Sender: Processing packet 29830 [packets to send 8, broken 7] [13:29:59]ProducePacketName [13:29:59]name=ofd_packets/00029830 [13:29:59]OFD Sender: To server: pG, [13:29:59]CommunicateWithHost lk.salyk.kg:30040 [13:29:59]ConnectInit lk.salyk.kg [13:29:59]written 0, free lines is 4095 [13:29:59]Connected sock=10 [13:29:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D6 DC 07 01 10 CF 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 94 20 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 1B D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 57 7D 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 74 00 00 35 04 06 00 45 B0 7A FB D2 97 DA C5 87 C5 12 6A B2 24 [13:29:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C8 26 47 00 D9 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 86 74 00 00 F4 03 04 00 F5 27 1E 66 B6 04 01 00 00 17 60 39 2E 15 C6 66 14 [13:29:59]CommunicateWithHost err = 0 [13:29:59]CheckOFDResponse [13:29:59]1017 (14) - 77093643461234 [13:29:59]1041 (16) - 0000000000963154 [13:29:59]1040 (4) - 29830 [13:29:59]1012 (4) - 16.04.2024 07:25 [13:29:59]1206 (1) - 0 [13:29:59]OFD Sender: Remove packet 29830 [13:29:59]ProducePacketName [13:29:59]name=ofd_packets/00029830 [13:29:59]NVStorageDeleteData [13:29:59]Write to MH i2c: 01 00 00 8A 18 A2 [13:29:59]Write i2c OK [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: 01 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: 01 07 00 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: 01 07 00 8A 18 00 00 00 00 00 C5 0C 7A [13:29:59]RasterBufferAndPrint [13:29:59]line [13:29:59]line [13:29:59]line [13:29:59]line [13:29:59]line [13:30:00]written 0, free lines is 3275 [13:30:00]MH_Cut [13:30:00]Write to MH i2c: D1 01 00 91 18 01 7B [13:30:00]Write i2c OK [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: D1 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: D1 01 00 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: D1 01 00 91 18 00 7A [13:30:00]Write to MH i2c: 01 00 00 92 18 AA [13:30:00]Write i2c OK [13:30:00]MH_I2C_Read... [13:30:00]OFD Sender: No OFD packet to send [13:30:00]*** Cut start [13:30:00]*** Partial cut [13:30:00]*** CUTSNS_PIN = 1 [13:30:00]*** CUTSNS_PIN = 0 [13:30:01]*** Brake cut motor [13:30:01]Read from MH i2c: 01 [13:30:01]MH_I2C_Read... [13:30:01]*** Stop cut motor [13:30:01]*** Cut end [13:30:01]Read from MH i2c: 01 07 00 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: 01 07 00 92 18 00 00 00 00 00 FF 0F BF [13:30:01]process_action close_receipt done [13:30:01]requested_data is exist [13:30:01]produce_requested_data [13:30:01]requested_item fm.sn is exist - process it [13:30:01]wFMCommunicate request_size=4 [13:30:01]MH_SAM_APDU [13:30:01]CAPDU: 80 11 00 00 [13:30:01]Write to MH i2c: E2 08 00 93 18 80 11 00 00 00 00 00 00 25 [13:30:01]Write i2c OK [13:30:01]MH_I2C_Read... [13:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:01]Read from MH i2c: E2 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: E2 17 00 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: E2 17 00 93 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 74 [13:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:30:01]wFMCommunicate OK [13:30:01]requested_item fd.num is exist - process it [13:30:01]SAM_PROTO_GetFieldsCounters [13:30:01]wFMCommunicate request_size=4 [13:30:01]MH_SAM_APDU [13:30:01]CAPDU: 80 13 00 00 [13:30:01]Write to MH i2c: E2 08 00 94 18 80 13 00 00 00 00 00 00 28 [13:30:01]Write i2c OK [13:30:01]MH_I2C_Read... [13:30:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:01]Read from MH i2c: E2 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: E2 62 00 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: E2 62 00 94 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 86 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [13:30:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 86 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:01]wFMCommunicate OK [13:30:01]SAM_PROTO_GetFieldsCounters done [13:30:01]requested_item shift.num is exist - process it [13:30:01]requested_item shift.opened is exist - process it [13:30:01]req_shift_opened [13:30:01]FM_GetShiftState [13:30:01]SAM_PROTO_GetShiftState [13:30:01]wFMCommunicate request_size=4 [13:30:01]MH_SAM_APDU [13:30:01]CAPDU: 80 13 01 00 [13:30:01]Write to MH i2c: E2 08 00 95 18 80 13 01 00 00 00 00 00 2A [13:30:01]Write i2c OK [13:30:01]MH_I2C_Read... [13:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:01]Read from MH i2c: E2 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: E2 0E 00 [13:30:01]MH_I2C_Read... [13:30:01]Read from MH i2c: E2 0E 00 95 18 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 D8 [13:30:01]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:30:01]wFMCommunicate OK [13:30:01]SAM_PROTO_GetShiftState done [13:30:01]FM_GetShiftState done [13:30:01]req_shift_opened done [13:30:01]requested_item shift.open_date is exist - process it [13:30:01]req_shift_open_date [13:30:01]req_shift_open_date done [13:30:01]produce_requested_data done [13:30:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29830,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [13:30:01]process_action_free close_receipt [13:30:01]json_value_free [13:30:01]json_value_free done [13:30:01]process_json_proto returns [13:30:01]Send response to host [13:30:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29830,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [13:30:01]free response buf [13:30:01]execute_script done [13:30:01]execute_script returns [13:30:01]free content buf [13:30:01]Sock 9.Close socket [13:30:01]Sock 9.Thread stoped [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]accept exits with 7 [13:36:25]New connection [13:36:25]New thread 3067133284 created [13:36:25]Thread 3067276644 joined [13:36:25]Waiting for new connection... [13:36:25] Sock 7.Parse request [13:36:25]Sock 7.Check first char [13:36:25]Sock 7.First char is OK [13:36:25]request: POST /json_proto HTTP/1.0 [13:36:25]Method: POST [13:36:25]URL: /json_proto [13:36:25]Method is POST - this is cgi request [13:36:25]url: /json_proto [13:36:25]query_string will be loaded in cgi processing [13:36:25]execute_cgi json_proto POST (null) [13:36:25]execute_cgi path=json_proto method=POST [13:36:25]POST find Content-Length [13:36:25]Host: 172.17.33.3:8080 [13:36:25]Content-Length: 1204 [13:36:25]Content-Type: application/json [13:36:25] [13:36:25]POST finish read [13:36:25]Found Content-Length = 1204 [13:36:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348340\u000A16.04.2024 13:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1093.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43342\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:25]execute_script... [13:36:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348340\u000A16.04.2024 13:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1093.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43342\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:25]POST & json_proto [13:36:25]process_json_proto [13:36:25]json parsed OK: [13:36:25]protocol is kg_v1.0 [13:36:25]action value=print_text [13:36:25]process_action print_text [13:36:25]cmd_print_text [13:36:25]ExternCall_PrintAddStr [13:36:25]wPrintStart [13:36:25]Write to MH i2c: 01 00 00 96 18 AE [13:36:25]Write i2c OK [13:36:25]MH_I2C_Read... [13:36:25]Read from MH i2c: 01 [13:36:25]MH_I2C_Read... [13:36:25]Read from MH i2c: 01 07 00 [13:36:25]MH_I2C_Read... [13:36:25]Read from MH i2c: 01 07 00 96 18 00 00 00 00 00 FF 0F C3 [13:36:25]RasterBufferAndPrint [13:36:25]line *****ТОВАРНЫЙ ЧЕК***** [13:36:25]line АЗС 108 [13:36:25]line Партнер нефть [13:36:25]line 02508201610067 [13:36:25]line Кассир : Шадыканова Ж. [13:36:25]line Счет N : (1)348340 [13:36:25]line 16.04.2024 13:17 [13:36:25]line ПРОДАЖА [13:36:25]line ТРК (МРК, ГНК): 11 [13:36:25]line Вид ГСМ : 2710194210 [13:36:25]line ДТ-К-5 [13:36:25]line 15.000 x 72.90 [13:36:25]line ИТОГ: 1093.50 [13:36:25]line Тип оплаты: Талоны: Топливная Карта [13:36:25]line 43342 [13:36:25]line ______________________ [13:36:25]line (подпись) [13:36:25]written 0, free lines is 4095 [13:36:25]Write to MH i2c: 01 00 00 AB 18 C3 [13:36:25]Write i2c OK [13:36:25]MH_I2C_Read... [13:36:25]Read from MH i2c: 01 [13:36:25]MH_I2C_Read... [13:36:25]Read from MH i2c: 01 07 00 [13:36:25]MH_I2C_Read... [13:36:25]Read from MH i2c: 01 07 00 AB 18 00 00 00 00 00 F2 0D C9 [13:36:25]RasterBufferAndPrint [13:36:25]line [13:36:25]line [13:36:25]line [13:36:25]line [13:36:25]line [13:36:25]written 0, free lines is 3572 [13:36:25]MH_Cut [13:36:25]Write to MH i2c: D1 01 00 B2 18 01 9C [13:36:25]Write i2c OK [13:36:25]MH_I2C_Read... [13:36:25]Read from MH i2c: D1 [13:36:25]MH_I2C_Read... [13:36:25]Read from MH i2c: D1 01 00 [13:36:25]MH_I2C_Read... [13:36:25]Read from MH i2c: D1 01 00 B2 18 00 9B [13:36:25]Write to MH i2c: 01 00 00 B3 18 CB [13:36:25]Write i2c OK [13:36:25]MH_I2C_Read... [13:36:25]OFD Sender: No OFD packet to send [13:36:25]*** Cut start [13:36:25]*** Partial cut [13:36:25]*** CUTSNS_PIN = 1 [13:36:25]*** CUTSNS_PIN = 0 [13:36:26]*** Brake cut motor [13:36:26]Read from MH i2c: 01 [13:36:26]MH_I2C_Read... [13:36:26]*** Stop cut motor [13:36:26]*** Cut end [13:36:26]Read from MH i2c: 01 07 00 [13:36:26]MH_I2C_Read... [13:36:26]Read from MH i2c: 01 07 00 B3 18 00 00 00 00 00 FF 0F E0 [13:36:26]process_action print_text done [13:36:26]requested_data is exist [13:36:26]produce_requested_data [13:36:26]requested_item fm.sn is exist - process it [13:36:26]wFMCommunicate request_size=4 [13:36:26]MH_SAM_APDU [13:36:26]CAPDU: 80 11 00 00 [13:36:26]Write to MH i2c: E2 08 00 B4 18 80 11 00 00 00 00 00 00 46 [13:36:26]Write i2c OK [13:36:26]MH_I2C_Read... [13:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:26]Read from MH i2c: E2 [13:36:26]MH_I2C_Read... [13:36:26]Read from MH i2c: E2 17 00 [13:36:26]MH_I2C_Read... [13:36:26]Read from MH i2c: E2 17 00 B4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 95 [13:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:36:26]wFMCommunicate OK [13:36:26]requested_item fd.num is exist - process it [13:36:26]SAM_PROTO_GetFieldsCounters [13:36:26]wFMCommunicate request_size=4 [13:36:26]MH_SAM_APDU [13:36:26]CAPDU: 80 13 00 00 [13:36:26]Write to MH i2c: E2 08 00 B5 18 80 13 00 00 00 00 00 00 49 [13:36:26]Write i2c OK [13:36:26]MH_I2C_Read... [13:36:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:26]Read from MH i2c: E2 [13:36:26]MH_I2C_Read... [13:36:26]Read from MH i2c: E2 62 00 [13:36:26]MH_I2C_Read... [13:36:26]Read from MH i2c: E2 62 00 B5 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 86 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [13:36:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 86 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:36:26]wFMCommunicate OK [13:36:26]SAM_PROTO_GetFieldsCounters done [13:36:26]requested_item shift.num is exist - process it [13:36:26]requested_item shift.opened is exist - process it [13:36:26]req_shift_opened [13:36:26]FM_GetShiftState [13:36:26]SAM_PROTO_GetShiftState [13:36:26]wFMCommunicate request_size=4 [13:36:26]MH_SAM_APDU [13:36:26]CAPDU: 80 13 01 00 [13:36:26]Write to MH i2c: E2 08 00 B6 18 80 13 01 00 00 00 00 00 4B [13:36:26]Write i2c OK [13:36:26]MH_I2C_Read... [13:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:26]Read from MH i2c: E2 [13:36:26]MH_I2C_Read... [13:36:26]Read from MH i2c: E2 0E 00 [13:36:26]MH_I2C_Read... [13:36:26]Read from MH i2c: E2 0E 00 B6 18 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 F9 [13:36:26]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:36:26]wFMCommunicate OK [13:36:26]SAM_PROTO_GetShiftState done [13:36:26]FM_GetShiftState done [13:36:26]req_shift_opened done [13:36:26]requested_item shift.open_date is exist - process it [13:36:26]req_shift_open_date [13:36:26]req_shift_open_date done [13:36:26]produce_requested_data done [13:36:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29830,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [13:36:26]process_action_free print_text [13:36:26]json_value_free [13:36:26]json_value_free done [13:36:26]process_json_proto returns [13:36:26]Send response to host [13:36:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29830,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [13:36:26]free response buf [13:36:26]execute_script done [13:36:26]execute_script returns [13:36:26]free content buf [13:36:26]Sock 7.Close socket [13:36:26]Sock 7.Thread stoped [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]accept exits with 10 [13:38:30]New connection [13:38:30]New thread 3067276644 created [13:38:30]Thread 3067133284 joined [13:38:30]Waiting for new connection... [13:38:30] Sock 10.Parse request [13:38:30]Sock 10.Check first char [13:38:30]Sock 10.First char is OK [13:38:30]request: POST /json_proto HTTP/1.0 [13:38:30]Method: POST [13:38:30]URL: /json_proto [13:38:30]Method is POST - this is cgi request [13:38:30]url: /json_proto [13:38:30]query_string will be loaded in cgi processing [13:38:30]execute_cgi json_proto POST (null) [13:38:30]execute_cgi path=json_proto method=POST [13:38:30]POST find Content-Length [13:38:30]Host: 172.17.33.3:8080 [13:38:30]Content-Length: 682 [13:38:30]Content-Type: application/json [13:38:30] [13:38:30]POST finish read [13:38:30]Found Content-Length = 682 [13:38:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:30]execute_script... [13:38:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:30]POST & json_proto [13:38:30]process_json_proto [13:38:30]json parsed OK: [13:38:30]protocol is kg_v1.0 [13:38:30]action value=close_receipt [13:38:30]process_action close_receipt [13:38:30]cmd_close_receipt [13:38:30]MH_GetDate [13:38:30]Write to MH i2c: F0 00 00 B7 18 BE [13:38:30]Write i2c OK [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: F0 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: F0 09 00 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: F0 09 00 B7 18 00 58 7F 1E 66 23 5B 8F 65 94 [13:38:30]GetLastDocTimeStamp 1713274199 [13:38:30]current date 1713274712 [13:38:30]FM_GetShiftState [13:38:30]SAM_PROTO_GetShiftState [13:38:30]wFMCommunicate request_size=4 [13:38:30]MH_SAM_APDU [13:38:30]CAPDU: 80 13 01 00 [13:38:30]Write to MH i2c: E2 08 00 B8 18 80 13 01 00 00 00 00 00 4D [13:38:30]Write i2c OK [13:38:30]MH_I2C_Read... [13:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:30]Read from MH i2c: E2 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: E2 0E 00 [13:38:30]MH_I2C_Read... [13:38:30]Read from MH i2c: E2 0E 00 B8 18 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 FB [13:38:30]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:38:30]wFMCommunicate OK [13:38:30]SAM_PROTO_GetShiftState done [13:38:30]FM_GetShiftState done [13:38:30]opened in 1713226843 [13:38:30]opened+sec_in_day 1713313243 [13:38:30]quantity*price = 100051 [13:38:30]sum+1 = 100052 [13:38:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 105 16.04.2024 13:38 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29831 ФПД: 31301003725122 1/tax-web-control/client/api/v1/ticket?date=20240416T133832&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29831&fm=31301003725122&tin=02508201610067®Number=0000138879044617&sum=100000 [13:38:31]StoreToDocumentArchive [13:38:31]shift 118 fd 29831 [13:38:31]save to /storage/0118/doc_00029831 [13:38:31]save last doc name /storage/0118/doc_00029831 to /storage/kkm_last_doc_name [13:38:31]save OK [13:38:31]Clear old archive folders... [13:38:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:31]tlvbuf is 00200C70 [13:38:31]SAM_PROTO_ClearQueue [13:38:31]wFMCommunicate request_size=4 [13:38:31]MH_SAM_APDU [13:38:31]CAPDU: 80 09 00 00 [13:38:31]Write to MH i2c: E2 08 00 C5 18 80 09 00 00 00 00 00 00 4F [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:31]Read from MH i2c: E2 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 03 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 03 00 C5 18 00 90 00 51 [13:38:31]RAPDU: 90 00 [13:38:31]wFMCommunicate OK [13:38:31]SAM_PROTO_ClearQueue done [13:38:31]KKMCreateOFDPacket [13:38:31]OFDProtocolAddRootSTLVToBuf [13:38:31]FM_MakeSignedData [13:38:31]FM_MakeSignedData [13:38:31]SAM_PROTO_SignData [13:38:31]wFMCommunicate request_size=4 [13:38:31]MH_SAM_APDU [13:38:31]CAPDU: 80 0D 01 02 [13:38:31]Write to MH i2c: E2 08 00 C6 18 80 0D 01 02 00 00 00 00 57 [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:31]Read from MH i2c: E2 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 03 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 03 00 C6 18 00 90 00 52 [13:38:31]RAPDU: 90 00 [13:38:31]wFMCommunicate OK [13:38:31]wFMCommunicate request_size=255 [13:38:31]MH_SAM_APDU [13:38:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 58 7F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 74 00 00 35 04 06 00 1C [13:38:31]Write to MH i2c: E2 02 01 C7 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 58 7F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 74 00 00 35 04 06 00 1C 00 00 8E [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:31]Read from MH i2c: E2 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 03 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 03 00 C7 18 00 90 00 53 [13:38:31]RAPDU: 90 00 [13:38:31]wFMCommunicate OK [13:38:31]wFMCommunicate request_size=10 [13:38:31]MH_SAM_APDU [13:38:31]CAPDU: 80 0D 02 02 05 77 D5 35 49 42 [13:38:31]Write to MH i2c: E2 0D 00 C8 18 80 0D 02 02 05 00 77 D5 35 49 42 00 00 70 [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:31]Read from MH i2c: E2 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 03 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 03 00 C8 18 00 90 00 54 [13:38:31]RAPDU: 90 00 [13:38:31]wFMCommunicate OK [13:38:31]wFMCommunicate request_size=4 [13:38:31]MH_SAM_APDU [13:38:31]CAPDU: 80 0D 03 02 [13:38:31]Write to MH i2c: E2 08 00 C9 18 80 0D 03 02 00 00 00 00 5C [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:31]Read from MH i2c: E2 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 0B 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 0B 00 C9 18 00 BE C8 08 1B 6D D9 7E 47 90 00 11 [13:38:31]RAPDU: BE C8 08 1B 6D D9 7E 47 90 00 [13:38:31]wFMCommunicate OK [13:38:31]SAM_PROTO_SignData done [13:38:31]FM_MakeSignedData done [13:38:31]CreateOFDProtocolMessage [13:38:31]wFMCommunicate request_size=4 [13:38:31]MH_SAM_APDU [13:38:31]CAPDU: 80 11 00 00 [13:38:31]Write to MH i2c: E2 08 00 CA 18 80 11 00 00 00 00 00 00 5C [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:31]Read from MH i2c: E2 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 17 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 17 00 CA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AB [13:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:38:31]wFMCommunicate OK [13:38:31]CreateOFDProtocolMessage done [13:38:31]OFDSenderStorePacket 29831 [13:38:31]StoreOFDPacket docnum=29831 [13:38:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 50 8B 07 01 61 3E 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 58 7F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 74 00 00 35 04 06 00 1C 77 D5 35 49 42 BE C8 08 1B 6D D9 7E 47 [13:38:31]CheckFolder [13:38:31]dirname=/storage/ofd_packets [13:38:31]CheckFolder done [13:38:31]ProducePacketName [13:38:31]name=ofd_packets/00029831 [13:38:31]NVStorageSaveData ofd_packets/00029831 [13:38:31]File name is /storage/ofd_packets/00029831 [13:38:31]Write 301 bytes [13:38:31]NVStorageSaveData done [13:38:31]OFDSenderStorePacket done [13:38:31]KKMCreateOFDPacket done [13:38:31]NVStorageSaveData kkm_last_timestamp [13:38:31]File name is /storage/kkm_last_timestamp [13:38:31]Write 4 bytes [13:38:31]NVStorageSaveData done [13:38:31]ExternCall_PrintAddStr [13:38:31]wPrintStart [13:38:31]Write to MH i2c: 01 00 00 CB 18 E3 [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: 01 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: 01 07 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: 01 07 00 CB 18 00 00 00 00 00 FF 0F F8 [13:38:31]RasterBufferAndPrint [13:38:31]line Счет N : (1)348341 [13:38:31]line ИНН: 02508201610067 [13:38:31]line Контрольно-Кассовый Чек [13:38:31]line ПРОДАЖА [13:38:31]line ТРК (МРК, ГНК) : 42 [13:38:31]line Товар: 2710124130 [13:38:31]line Аи-92-К-5 [13:38:31]line 15.440 * 64.80 [13:38:31]line = 1000.51 [13:38:31]line НДС 12% НСП 1% [13:38:31]line > о реализуемом товаре [13:38:31]line ОКРУГЛЕНИЕ: -0.51 [13:38:31]line ИТОГО: 1000.00 [13:38:31]line Внесено: 1000.00 [13:38:31]line СДАЧА: 0.00 [13:38:31]line НСП 1% : 8.85 [13:38:31]line НДС 12% : 106.25 [13:38:31]line Наличными: 1000.00 [13:38:31]line Безнал.: 0.00 [13:38:31]line Место: АЗС № 108 "Партнер Нефть" [13:38:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:38:31]line СНО: Общий режим [13:38:31]line Чек 105 16.04.2024 13:38 [13:38:31]line Смена: 118 ФФД: 1.0 [13:38:32]line ЗНМ: 0300000027 [13:38:32]line РНМ: 0000138879044617 [13:38:32]line Версия ККМ: 001 [13:38:32]line ФМ: 0000000000963154 [13:38:32]line ФД: 29831 [13:38:32]line ФПД: 31301003725122 [13:38:32]line 1/tax-web-control/client/api/v1/ticket?date=20240416T133832&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29831&fm=31301003725122&tin=02508201610067®Number=0000138879044617&sum=100000 [13:38:32]OFD Sender: Processing packet 29831 [packets to send 8, broken 7] [13:38:32]ProducePacketName [13:38:32]name=ofd_packets/00029831 [13:38:32]OFD Sender: To server: pG, [13:38:32]CommunicateWithHost lk.salyk.kg:30040 [13:38:32]ConnectInit lk.salyk.kg [13:38:32]written 0, free lines is 4095 [13:38:32]Connected sock=9 [13:38:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 50 8B 07 01 61 3E 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 58 7F 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 74 00 00 35 04 06 00 1C 77 D5 35 49 42 BE C8 08 1B 6D D9 7E 47 [13:38:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 72 12 47 00 31 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 74 00 00 F4 03 04 00 F5 29 1E 66 B6 04 01 00 00 30 AF 88 49 24 45 FF 1A [13:38:32]CommunicateWithHost err = 0 [13:38:32]CheckOFDResponse [13:38:32]1017 (14) - 77093643461234 [13:38:32]1041 (16) - 0000000000963154 [13:38:32]1040 (4) - 29831 [13:38:32]1012 (4) - 16.04.2024 07:34 [13:38:32]1206 (1) - 0 [13:38:32]OFD Sender: Remove packet 29831 [13:38:32]ProducePacketName [13:38:32]name=ofd_packets/00029831 [13:38:32]NVStorageDeleteData [13:38:32]Write to MH i2c: 01 00 00 F5 18 0D [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: 01 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: 01 07 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: 01 07 00 F5 18 00 00 00 00 00 C0 0C E0 [13:38:32]RasterBufferAndPrint [13:38:32]line [13:38:32]line [13:38:32]line [13:38:32]line [13:38:32]line [13:38:32]written 0, free lines is 3267 [13:38:32]MH_Cut [13:38:32]Write to MH i2c: D1 01 00 FC 18 01 E6 [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: D1 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: D1 01 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: D1 01 00 FC 18 00 E5 [13:38:32]Write to MH i2c: 01 00 00 FD 18 15 [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]OFD Sender: No OFD packet to send [13:38:33]*** Cut start [13:38:33]*** Partial cut [13:38:33]*** CUTSNS_PIN = 1 [13:38:33]*** CUTSNS_PIN = 0 [13:38:33]*** Brake cut motor [13:38:33]Read from MH i2c: 01 [13:38:33]MH_I2C_Read... [13:38:33]*** Stop cut motor [13:38:33]*** Cut end [13:38:33]Read from MH i2c: 01 07 00 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: 01 07 00 FD 18 00 00 00 00 00 FF 0F 2A [13:38:33]process_action close_receipt done [13:38:33]requested_data is exist [13:38:33]produce_requested_data [13:38:33]requested_item fm.sn is exist - process it [13:38:33]wFMCommunicate request_size=4 [13:38:33]MH_SAM_APDU [13:38:33]CAPDU: 80 11 00 00 [13:38:33]Write to MH i2c: E2 08 00 FE 18 80 11 00 00 00 00 00 00 90 [13:38:33]Write i2c OK [13:38:33]MH_I2C_Read... [13:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:33]Read from MH i2c: E2 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: E2 17 00 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: E2 17 00 FE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DF [13:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:38:33]wFMCommunicate OK [13:38:33]requested_item fd.num is exist - process it [13:38:33]SAM_PROTO_GetFieldsCounters [13:38:33]wFMCommunicate request_size=4 [13:38:33]MH_SAM_APDU [13:38:33]CAPDU: 80 13 00 00 [13:38:33]Write to MH i2c: E2 08 00 FF 18 80 13 00 00 00 00 00 00 93 [13:38:34]Write i2c OK [13:38:34]MH_I2C_Read... [13:38:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:34]Read from MH i2c: E2 [13:38:34]MH_I2C_Read... [13:38:34]Read from MH i2c: E2 62 00 [13:38:34]MH_I2C_Read... [13:38:34]Read from MH i2c: E2 62 00 FF 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 87 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [13:38:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 87 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:34]wFMCommunicate OK [13:38:34]SAM_PROTO_GetFieldsCounters done [13:38:34]requested_item shift.num is exist - process it [13:38:34]requested_item shift.opened is exist - process it [13:38:34]req_shift_opened [13:38:34]FM_GetShiftState [13:38:34]SAM_PROTO_GetShiftState [13:38:34]wFMCommunicate request_size=4 [13:38:34]MH_SAM_APDU [13:38:34]CAPDU: 80 13 01 00 [13:38:34]Write to MH i2c: E2 08 00 00 19 80 13 01 00 00 00 00 00 96 [13:38:34]Write i2c OK [13:38:34]MH_I2C_Read... [13:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:34]Read from MH i2c: E2 [13:38:34]MH_I2C_Read... [13:38:34]Read from MH i2c: E2 0E 00 [13:38:34]MH_I2C_Read... [13:38:34]Read from MH i2c: E2 0E 00 00 19 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 44 [13:38:34]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:38:34]wFMCommunicate OK [13:38:34]SAM_PROTO_GetShiftState done [13:38:34]FM_GetShiftState done [13:38:34]req_shift_opened done [13:38:34]requested_item shift.open_date is exist - process it [13:38:34]req_shift_open_date [13:38:34]req_shift_open_date done [13:38:34]produce_requested_data done [13:38:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29831,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [13:38:34]process_action_free close_receipt [13:38:34]json_value_free [13:38:34]json_value_free done [13:38:34]process_json_proto returns [13:38:34]Send response to host [13:38:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29831,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [13:38:34]free response buf [13:38:34]execute_script done [13:38:34]execute_script returns [13:38:34]free content buf [13:38:34]Sock 10.Close socket [13:38:34]Sock 10.Thread stoped [13:38:37]OFD Sender: No OFD packet to send [13:38:42]accept exits with 7 [13:38:42]New connection [13:38:42]New thread 3067133284 created [13:38:42]Thread 3067276644 joined [13:38:42]Waiting for new connection... [13:38:42] Sock 7.Parse request [13:38:42]Sock 7.Check first char [13:38:42]Sock 7.First char is OK [13:38:42]request: POST /json_proto HTTP/1.0 [13:38:42]Method: POST [13:38:42]URL: /json_proto [13:38:42]Method is POST - this is cgi request [13:38:42]url: /json_proto [13:38:42]query_string will be loaded in cgi processing [13:38:42]execute_cgi json_proto POST (null) [13:38:42]execute_cgi path=json_proto method=POST [13:38:42]POST find Content-Length [13:38:42]Host: 172.17.33.3:8080 [13:38:42]Content-Length: 1167 [13:38:42]Content-Type: application/json [13:38:42] [13:38:42]POST finish read [13:38:42]Found Content-Length = 1167 [13:38:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348339\u000A16.04.2024 13:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087342\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:42]execute_script... [13:38:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348339\u000A16.04.2024 13:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087342\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:42]POST & json_proto [13:38:42]process_json_proto [13:38:42]json parsed OK: [13:38:42]protocol is kg_v1.0 [13:38:42]action value=print_text [13:38:42]process_action print_text [13:38:42]cmd_print_text [13:38:42]ExternCall_PrintAddStr [13:38:42]wPrintStart [13:38:42]Write to MH i2c: 01 00 00 01 19 1A [13:38:42]Write i2c OK [13:38:42]MH_I2C_Read... [13:38:42]Read from MH i2c: 01 [13:38:42]MH_I2C_Read... [13:38:42]Read from MH i2c: 01 07 00 [13:38:42]MH_I2C_Read... [13:38:42]Read from MH i2c: 01 07 00 01 19 00 00 00 00 00 FF 0F 2F [13:38:42]RasterBufferAndPrint [13:38:42]line *****ТОВАРНЫЙ ЧЕК***** [13:38:42]line АЗС 108 [13:38:42]line Партнер нефть [13:38:42]line 02508201610067 [13:38:42]line Кассир : Шадыканова Ж. [13:38:42]line Счет N : (1)348339 [13:38:42]line 16.04.2024 13:20 [13:38:42]line ПРОДАЖА [13:38:42]line ТРК (МРК, ГНК): 21 [13:38:42]line Вид ГСМ : 2710194210 [13:38:42]line ДТ-К-5 [13:38:42]line 100.000 x 72.90 [13:38:42]line ИТОГ: 7290.00 [13:38:42]line Тип оплаты: Талоны: ТК ГПНА Online [13:38:42]line 30087342 [13:38:42]line ______________________ [13:38:42]line (подпись) [13:38:42]written 0, free lines is 4095 [13:38:42]OFD Sender: No OFD packet to send [13:38:42]Write to MH i2c: 01 00 00 16 19 2F [13:38:42]Write i2c OK [13:38:42]MH_I2C_Read... [13:38:42]Read from MH i2c: 01 [13:38:42]MH_I2C_Read... [13:38:42]Read from MH i2c: 01 07 00 [13:38:42]MH_I2C_Read... [13:38:42]Read from MH i2c: 01 07 00 16 19 00 00 00 00 00 F4 0D 37 [13:38:42]RasterBufferAndPrint [13:38:42]line [13:38:42]line [13:38:42]line [13:38:42]line [13:38:42]line [13:38:42]written 0, free lines is 3573 [13:38:42]MH_Cut [13:38:42]Write to MH i2c: D1 01 00 1D 19 01 08 [13:38:42]Write i2c OK [13:38:42]MH_I2C_Read... [13:38:42]Read from MH i2c: D1 [13:38:42]MH_I2C_Read... [13:38:42]Read from MH i2c: D1 01 00 [13:38:42]MH_I2C_Read... [13:38:42]Read from MH i2c: D1 01 00 1D 19 00 07 [13:38:42]Write to MH i2c: 01 00 00 1E 19 37 [13:38:42]Write i2c OK [13:38:42]MH_I2C_Read... [13:38:43]*** Cut start [13:38:43]*** Partial cut [13:38:43]*** CUTSNS_PIN = 1 [13:38:43]*** CUTSNS_PIN = 0 [13:38:43]*** Brake cut motor [13:38:44]Read from MH i2c: 01 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: 01 07 00 [13:38:44]MH_I2C_Read... [13:38:44]*** Stop cut motor [13:38:44]*** Cut end [13:38:44]Read from MH i2c: 01 07 00 1E 19 00 00 00 00 00 FF 0F 4C [13:38:44]process_action print_text done [13:38:44]requested_data is exist [13:38:44]produce_requested_data [13:38:44]requested_item fm.sn is exist - process it [13:38:44]wFMCommunicate request_size=4 [13:38:44]MH_SAM_APDU [13:38:44]CAPDU: 80 11 00 00 [13:38:44]Write to MH i2c: E2 08 00 1F 19 80 11 00 00 00 00 00 00 B2 [13:38:44]Write i2c OK [13:38:44]MH_I2C_Read... [13:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:44]Read from MH i2c: E2 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: E2 17 00 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: E2 17 00 1F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 01 [13:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:38:44]wFMCommunicate OK [13:38:44]requested_item fd.num is exist - process it [13:38:44]SAM_PROTO_GetFieldsCounters [13:38:44]wFMCommunicate request_size=4 [13:38:44]MH_SAM_APDU [13:38:44]CAPDU: 80 13 00 00 [13:38:44]Write to MH i2c: E2 08 00 20 19 80 13 00 00 00 00 00 00 B5 [13:38:44]Write i2c OK [13:38:44]MH_I2C_Read... [13:38:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:44]Read from MH i2c: E2 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: E2 62 00 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: E2 62 00 20 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 87 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [13:38:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 87 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:44]wFMCommunicate OK [13:38:44]SAM_PROTO_GetFieldsCounters done [13:38:44]requested_item shift.num is exist - process it [13:38:44]requested_item shift.opened is exist - process it [13:38:44]req_shift_opened [13:38:44]FM_GetShiftState [13:38:44]SAM_PROTO_GetShiftState [13:38:44]wFMCommunicate request_size=4 [13:38:44]MH_SAM_APDU [13:38:44]CAPDU: 80 13 01 00 [13:38:44]Write to MH i2c: E2 08 00 21 19 80 13 01 00 00 00 00 00 B7 [13:38:44]Write i2c OK [13:38:44]MH_I2C_Read... [13:38:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:44]Read from MH i2c: E2 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: E2 0E 00 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: E2 0E 00 21 19 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 65 [13:38:44]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:38:44]wFMCommunicate OK [13:38:44]SAM_PROTO_GetShiftState done [13:38:44]FM_GetShiftState done [13:38:44]req_shift_opened done [13:38:44]requested_item shift.open_date is exist - process it [13:38:44]req_shift_open_date [13:38:44]req_shift_open_date done [13:38:44]produce_requested_data done [13:38:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29831,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [13:38:44]process_action_free print_text [13:38:44]json_value_free [13:38:44]json_value_free done [13:38:44]process_json_proto returns [13:38:44]Send response to host [13:38:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29831,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [13:38:44]free response buf [13:38:44]execute_script done [13:38:44]execute_script returns [13:38:44]free content buf [13:38:44]Sock 7.Close socket [13:38:44]Sock 7.Thread stoped [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:55]accept exits with 9 [13:42:55]New connection [13:42:55]New thread 3067276644 created [13:42:55]Thread 3067133284 joined [13:42:55]Waiting for new connection... [13:42:55] Sock 9.Parse request [13:42:55]Sock 9.Check first char [13:42:55]Sock 9.First char is OK [13:42:55]request: POST /json_proto HTTP/1.0 [13:42:55]Method: POST [13:42:55]URL: /json_proto [13:42:55]Method is POST - this is cgi request [13:42:55]url: /json_proto [13:42:55]query_string will be loaded in cgi processing [13:42:55]execute_cgi json_proto POST (null) [13:42:55]execute_cgi path=json_proto method=POST [13:42:55]POST find Content-Length [13:42:55]Host: 172.17.33.3:8080 [13:42:55]Content-Length: 677 [13:42:55]Content-Type: application/json [13:42:55] [13:42:55]POST finish read [13:42:55]Found Content-Length = 677 [13:42:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:55]execute_script... [13:42:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:55]POST & json_proto [13:42:55]process_json_proto [13:42:55]json parsed OK: [13:42:55]protocol is kg_v1.0 [13:42:55]action value=close_receipt [13:42:55]process_action close_receipt [13:42:55]cmd_close_receipt [13:42:55]MH_GetDate [13:42:55]Write to MH i2c: F0 00 00 22 19 2A [13:42:55]Write i2c OK [13:42:55]MH_I2C_Read... [13:42:55]Read from MH i2c: F0 [13:42:55]MH_I2C_Read... [13:42:55]Read from MH i2c: F0 09 00 [13:42:55]MH_I2C_Read... [13:42:55]Read from MH i2c: F0 09 00 22 19 00 61 80 1E 66 23 5B 8F 65 0A [13:42:55]GetLastDocTimeStamp 1713274712 [13:42:55]current date 1713274977 [13:42:55]FM_GetShiftState [13:42:55]SAM_PROTO_GetShiftState [13:42:55]wFMCommunicate request_size=4 [13:42:55]MH_SAM_APDU [13:42:55]CAPDU: 80 13 01 00 [13:42:55]Write to MH i2c: E2 08 00 23 19 80 13 01 00 00 00 00 00 B9 [13:42:55]Write i2c OK [13:42:55]MH_I2C_Read... [13:42:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:55]Read from MH i2c: E2 [13:42:55]MH_I2C_Read... [13:42:55]Read from MH i2c: E2 0E 00 [13:42:55]MH_I2C_Read... [13:42:55]Read from MH i2c: E2 0E 00 23 19 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 67 [13:42:55]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:42:55]wFMCommunicate OK [13:42:55]SAM_PROTO_GetShiftState done [13:42:55]FM_GetShiftState done [13:42:55]opened in 1713226843 [13:42:55]opened+sec_in_day 1713313243 [13:42:55]quantity*price = 50025 [13:42:55]sum+1 = 50027 [13:42:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 106 16.04.2024 13:42 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29832 ФПД: 278181403012910 1/tax-web-control/client/api/v1/ticket?date=20240416T134257&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29832&fm=278181403012910&tin=02508201610067®Number=0000138879044617&sum=50000 [13:42:56]StoreToDocumentArchive [13:42:56]shift 118 fd 29832 [13:42:56]save to /storage/0118/doc_00029832 [13:42:56]save last doc name /storage/0118/doc_00029832 to /storage/kkm_last_doc_name [13:42:56]save OK [13:42:56]Clear old archive folders... [13:42:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:56]tlvbuf is 0016C430 [13:42:56]SAM_PROTO_ClearQueue [13:42:56]wFMCommunicate request_size=4 [13:42:56]MH_SAM_APDU [13:42:56]CAPDU: 80 09 00 00 [13:42:56]Write to MH i2c: E2 08 00 30 19 80 09 00 00 00 00 00 00 BB [13:42:56]Write i2c OK [13:42:56]MH_I2C_Read... [13:42:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:56]Read from MH i2c: E2 [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: E2 03 00 [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: E2 03 00 30 19 00 90 00 BD [13:42:56]RAPDU: 90 00 [13:42:56]wFMCommunicate OK [13:42:56]SAM_PROTO_ClearQueue done [13:42:56]KKMCreateOFDPacket [13:42:56]OFDProtocolAddRootSTLVToBuf [13:42:56]FM_MakeSignedData [13:42:56]FM_MakeSignedData [13:42:56]SAM_PROTO_SignData [13:42:56]wFMCommunicate request_size=4 [13:42:56]MH_SAM_APDU [13:42:56]CAPDU: 80 0D 01 02 [13:42:56]Write to MH i2c: E2 08 00 31 19 80 0D 01 02 00 00 00 00 C3 [13:42:56]Write i2c OK [13:42:56]MH_I2C_Read... [13:42:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:56]Read from MH i2c: E2 [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: E2 03 00 [13:42:56]MH_I2C_Read... [13:42:56]Read from MH i2c: E2 03 00 31 19 00 90 00 BE [13:42:56]RAPDU: 90 00 [13:42:56]wFMCommunicate OK [13:42:56]wFMCommunicate request_size=255 [13:42:56]MH_SAM_APDU [13:42:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 61 80 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 74 00 00 35 04 06 00 FD [13:42:56]Write to MH i2c: E2 02 01 32 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 61 80 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 74 00 00 35 04 06 00 FD 00 00 BA [13:42:57]Write i2c OK [13:42:57]MH_I2C_Read... [13:42:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:57]Read from MH i2c: E2 [13:42:57]MH_I2C_Read... [13:42:57]Read from MH i2c: E2 03 00 [13:42:57]MH_I2C_Read... [13:42:57]Read from MH i2c: E2 03 00 32 19 00 90 00 BF [13:42:57]RAPDU: 90 00 [13:42:57]wFMCommunicate OK [13:42:57]wFMCommunicate request_size=10 [13:42:57]MH_SAM_APDU [13:42:57]CAPDU: 80 0D 02 02 05 01 27 B5 AF 2E [13:42:57]Write to MH i2c: E2 0D 00 33 19 80 0D 02 02 05 00 01 27 B5 AF 2E 00 00 8A [13:42:57]Write i2c OK [13:42:57]MH_I2C_Read... [13:42:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:57]Read from MH i2c: E2 [13:42:57]MH_I2C_Read... [13:42:57]Read from MH i2c: E2 03 00 [13:42:57]MH_I2C_Read... [13:42:57]Read from MH i2c: E2 03 00 33 19 00 90 00 C0 [13:42:57]RAPDU: 90 00 [13:42:57]wFMCommunicate OK [13:42:57]wFMCommunicate request_size=4 [13:42:57]MH_SAM_APDU [13:42:57]CAPDU: 80 0D 03 02 [13:42:57]Write to MH i2c: E2 08 00 34 19 80 0D 03 02 00 00 00 00 C8 [13:42:57]Write i2c OK [13:42:57]MH_I2C_Read... [13:42:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:57]Read from MH i2c: E2 [13:42:57]MH_I2C_Read... [13:42:57]Read from MH i2c: E2 0B 00 [13:42:57]MH_I2C_Read... [13:42:57]Read from MH i2c: E2 0B 00 34 19 00 9E AF C3 C2 8E 40 3A E8 90 00 8B [13:42:57]RAPDU: 9E AF C3 C2 8E 40 3A E8 90 00 [13:42:57]wFMCommunicate OK [13:42:57]SAM_PROTO_SignData done [13:42:57]FM_MakeSignedData done [13:42:57]CreateOFDProtocolMessage [13:42:57]wFMCommunicate request_size=4 [13:42:57]MH_SAM_APDU [13:42:57]CAPDU: 80 11 00 00 [13:42:57]Write to MH i2c: E2 08 00 35 19 80 11 00 00 00 00 00 00 C8 [13:42:57]Write i2c OK [13:42:57]MH_I2C_Read... [13:42:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:57]Read from MH i2c: E2 [13:42:57]MH_I2C_Read... [13:42:57]Read from MH i2c: E2 17 00 [13:42:57]MH_I2C_Read... [13:42:57]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 36 33 31 35 34 90 00 17 [13:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:42:57]wFMCommunicate OK [13:42:57]CreateOFDProtocolMessage done [13:42:57]OFDSenderStorePacket 29832 [13:42:57]StoreOFDPacket docnum=29832 [13:42:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 06 2B 07 01 8B DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 61 80 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 74 00 00 35 04 06 00 FD 01 27 B5 AF 2E 9E AF C3 C2 8E 40 3A E8 [13:42:57]CheckFolder [13:42:57]dirname=/storage/ofd_packets [13:42:57]CheckFolder done [13:42:57]ProducePacketName [13:42:57]name=ofd_packets/00029832 [13:42:57]NVStorageSaveData ofd_packets/00029832 [13:42:57]File name is /storage/ofd_packets/00029832 [13:42:57]Write 301 bytes [13:42:57]NVStorageSaveData done [13:42:57]OFDSenderStorePacket done [13:42:57]KKMCreateOFDPacket done [13:42:57]NVStorageSaveData kkm_last_timestamp [13:42:57]File name is /storage/kkm_last_timestamp [13:42:57]Write 4 bytes [13:42:57]NVStorageSaveData done [13:42:57]ExternCall_PrintAddStr [13:42:57]wPrintStart [13:42:57]Write to MH i2c: 01 00 00 36 19 4F [13:42:57]Write i2c OK [13:42:57]MH_I2C_Read... [13:42:57]Read from MH i2c: 01 [13:42:57]MH_I2C_Read... [13:42:57]Read from MH i2c: 01 07 00 [13:42:57]MH_I2C_Read... [13:42:57]Read from MH i2c: 01 07 00 36 19 00 00 00 00 00 FF 0F 64 [13:42:57]RasterBufferAndPrint [13:42:57]line Счет N : (1)348343 [13:42:57]line ИНН: 02508201610067 [13:42:57]line Контрольно-Кассовый Чек [13:42:57]line ПРОДАЖА [13:42:57]line ТРК (МРК, ГНК) : 23 [13:42:57]line Товар: 2710124130 [13:42:57]line Аи-92-К-5 [13:42:57]line 7.720 * 64.80 [13:42:57]line = 500.26 [13:42:57]line НДС 12% НСП 1% [13:42:57]line > о реализуемом товаре [13:42:57]line ОКРУГЛЕНИЕ: -0.26 [13:42:57]line ИТОГО: 500.00 [13:42:57]line Внесено: 500.00 [13:42:57]line СДАЧА: 0.00 [13:42:57]line НСП 1% : 4.43 [13:42:57]line НДС 12% : 53.12 [13:42:57]line Наличными: 500.00 [13:42:57]line Безнал.: 0.00 [13:42:57]line Место: АЗС № 108 "Партнер Нефть" [13:42:57]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:42:57]line СНО: Общий режим [13:42:57]line Чек 106 16.04.2024 13:42 [13:42:57]line Смена: 118 ФФД: 1.0 [13:42:57]line ЗНМ: 0300000027 [13:42:57]line РНМ: 0000138879044617 [13:42:57]line Версия ККМ: 001 [13:42:57]line ФМ: 0000000000963154 [13:42:57]line ФД: 29832 [13:42:57]line ФПД: 278181403012910 [13:42:57]line 1/tax-web-control/client/api/v1/ticket?date=20240416T134257&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29832&fm=278181403012910&tin=02508201610067®Number=0000138879044617&sum=50000 [13:42:57]OFD Sender: Processing packet 29832 [packets to send 8, broken 7] [13:42:57]ProducePacketName [13:42:57]name=ofd_packets/00029832 [13:42:57]OFD Sender: To server: pG, [13:42:57]CommunicateWithHost lk.salyk.kg:30040 [13:42:57]ConnectInit lk.salyk.kg [13:42:57]written 0, free lines is 4095 [13:42:57]Connected sock=10 [13:42:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 06 2B 07 01 8B DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 61 80 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 74 00 00 35 04 06 00 FD 01 27 B5 AF 2E 9E AF C3 C2 8E 40 3A E8 [13:42:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5B 0D 47 00 4B A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 74 00 00 F4 03 04 00 FF 2A 1E 66 B6 04 01 00 00 EE 19 08 3C 2A 32 9F 83 [13:42:58]CommunicateWithHost err = 0 [13:42:58]CheckOFDResponse [13:42:58]1017 (14) - 77093643461234 [13:42:58]1041 (16) - 0000000000963154 [13:42:58]1040 (4) - 29832 [13:42:58]1012 (4) - 16.04.2024 07:38 [13:42:58]1206 (1) - 0 [13:42:58]OFD Sender: Remove packet 29832 [13:42:58]ProducePacketName [13:42:58]name=ofd_packets/00029832 [13:42:58]NVStorageDeleteData [13:42:58]Write to MH i2c: 01 00 00 60 19 79 [13:42:58]Write i2c OK [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: 01 [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: 01 07 00 [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: 01 07 00 60 19 00 00 00 00 00 C2 0C 4E [13:42:58]RasterBufferAndPrint [13:42:58]line [13:42:58]line [13:42:58]line [13:42:58]line [13:42:58]line [13:42:58]written 0, free lines is 3270 [13:42:58]MH_Cut [13:42:58]Write to MH i2c: D1 01 00 67 19 01 52 [13:42:58]Write i2c OK [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: D1 [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: D1 01 00 [13:42:58]MH_I2C_Read... [13:42:58]Read from MH i2c: D1 01 00 67 19 00 51 [13:42:58]Write to MH i2c: 01 00 00 68 19 81 [13:42:58]Write i2c OK [13:42:58]MH_I2C_Read... [13:42:58]OFD Sender: No OFD packet to send [13:42:59]*** Cut start [13:42:59]*** Partial cut [13:42:59]*** CUTSNS_PIN = 1 [13:42:59]*** CUTSNS_PIN = 0 [13:42:59]*** Brake cut motor [13:42:59]Read from MH i2c: 01 [13:42:59]MH_I2C_Read... [13:42:59]*** Stop cut motor [13:42:59]*** Cut end [13:42:59]Read from MH i2c: 01 07 00 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: 01 07 00 68 19 00 00 00 00 00 FF 0F 96 [13:42:59]process_action close_receipt done [13:42:59]requested_data is exist [13:42:59]produce_requested_data [13:42:59]requested_item fm.sn is exist - process it [13:42:59]wFMCommunicate request_size=4 [13:42:59]MH_SAM_APDU [13:42:59]CAPDU: 80 11 00 00 [13:42:59]Write to MH i2c: E2 08 00 69 19 80 11 00 00 00 00 00 00 FC [13:42:59]Write i2c OK [13:42:59]MH_I2C_Read... [13:42:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:59]Read from MH i2c: E2 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 17 00 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 17 00 69 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4B [13:42:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:42:59]wFMCommunicate OK [13:42:59]requested_item fd.num is exist - process it [13:42:59]SAM_PROTO_GetFieldsCounters [13:42:59]wFMCommunicate request_size=4 [13:42:59]MH_SAM_APDU [13:42:59]CAPDU: 80 13 00 00 [13:42:59]Write to MH i2c: E2 08 00 6A 19 80 13 00 00 00 00 00 00 FF [13:42:59]Write i2c OK [13:42:59]MH_I2C_Read... [13:42:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:59]Read from MH i2c: E2 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 62 00 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 62 00 6A 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 88 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [13:42:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 88 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:42:59]wFMCommunicate OK [13:42:59]SAM_PROTO_GetFieldsCounters done [13:42:59]requested_item shift.num is exist - process it [13:42:59]requested_item shift.opened is exist - process it [13:42:59]req_shift_opened [13:42:59]FM_GetShiftState [13:42:59]SAM_PROTO_GetShiftState [13:42:59]wFMCommunicate request_size=4 [13:42:59]MH_SAM_APDU [13:42:59]CAPDU: 80 13 01 00 [13:42:59]Write to MH i2c: E2 08 00 6B 19 80 13 01 00 00 00 00 00 01 [13:42:59]Write i2c OK [13:42:59]MH_I2C_Read... [13:42:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:59]Read from MH i2c: E2 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 0E 00 [13:42:59]MH_I2C_Read... [13:42:59]Read from MH i2c: E2 0E 00 6B 19 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 AF [13:42:59]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:42:59]wFMCommunicate OK [13:42:59]SAM_PROTO_GetShiftState done [13:42:59]FM_GetShiftState done [13:42:59]req_shift_opened done [13:42:59]requested_item shift.open_date is exist - process it [13:42:59]req_shift_open_date [13:42:59]req_shift_open_date done [13:42:59]produce_requested_data done [13:42:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29832,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [13:42:59]process_action_free close_receipt [13:42:59]json_value_free [13:42:59]json_value_free done [13:42:59]process_json_proto returns [13:42:59]Send response to host [13:42:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29832,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [13:42:59]free response buf [13:42:59]execute_script done [13:42:59]execute_script returns [13:42:59]free content buf [13:42:59]Sock 9.Close socket [13:42:59]Sock 9.Thread stoped [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:57]accept exits with 7 [13:47:57]New connection [13:47:57]New thread 3067133284 created [13:47:57]Thread 3067276644 joined [13:47:57]Waiting for new connection... [13:47:57] Sock 7.Parse request [13:47:57]Sock 7.Check first char [13:47:57]Sock 7.First char is OK [13:47:57]request: POST /json_proto HTTP/1.0 [13:47:57]Method: POST [13:47:57]URL: /json_proto [13:47:57]Method is POST - this is cgi request [13:47:57]url: /json_proto [13:47:57]query_string will be loaded in cgi processing [13:47:57]execute_cgi json_proto POST (null) [13:47:57]execute_cgi path=json_proto method=POST [13:47:57]POST find Content-Length [13:47:57]Host: 172.17.33.3:8080 [13:47:57]Content-Length: 837 [13:47:57]Content-Type: application/json [13:47:57] [13:47:57]POST finish read [13:47:57]Found Content-Length = 837 [13:47:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:57]execute_script... [13:47:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:57]POST & json_proto [13:47:57]process_json_proto [13:47:57]json parsed OK: [13:47:57]protocol is kg_v1.0 [13:47:57]action value=close_receipt [13:47:57]process_action close_receipt [13:47:57]cmd_close_receipt [13:47:57]MH_GetDate [13:47:57]Write to MH i2c: F0 00 00 6C 19 74 [13:47:57]Write i2c OK [13:47:57]MH_I2C_Read... [13:47:57]Read from MH i2c: F0 [13:47:57]MH_I2C_Read... [13:47:57]Read from MH i2c: F0 09 00 [13:47:57]MH_I2C_Read... [13:47:57]Read from MH i2c: F0 09 00 6C 19 00 8F 81 1E 66 23 5B 8F 65 83 [13:47:57]GetLastDocTimeStamp 1713274977 [13:47:57]current date 1713275279 [13:47:57]FM_GetShiftState [13:47:57]SAM_PROTO_GetShiftState [13:47:57]wFMCommunicate request_size=4 [13:47:57]MH_SAM_APDU [13:47:57]CAPDU: 80 13 01 00 [13:47:57]Write to MH i2c: E2 08 00 6D 19 80 13 01 00 00 00 00 00 03 [13:47:57]Write i2c OK [13:47:57]MH_I2C_Read... [13:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:57]Read from MH i2c: E2 [13:47:57]MH_I2C_Read... [13:47:57]Read from MH i2c: E2 0E 00 [13:47:57]MH_I2C_Read... [13:47:57]Read from MH i2c: E2 0E 00 6D 19 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 B1 [13:47:57]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:47:57]wFMCommunicate OK [13:47:57]SAM_PROTO_GetShiftState done [13:47:57]FM_GetShiftState done [13:47:57]opened in 1713226843 [13:47:57]opened+sec_in_day 1713313243 [13:47:57]quantity*price = 50009 [13:47:57]sum+1 = 50010 [13:47:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.09 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.09 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 107 16.04.2024 13:47 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29833 ФПД: 259002342131278 1/tax-web-control/client/api/v1/ticket?date=20240416T134759&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29833&fm=259002342131278&tin=02508201610067®Number=0000138879044617&sum=50009 [13:47:58]StoreToDocumentArchive [13:47:58]shift 118 fd 29833 [13:47:58]save to /storage/0118/doc_00029833 [13:47:58]save last doc name /storage/0118/doc_00029833 to /storage/kkm_last_doc_name [13:47:58]save OK [13:47:58]Clear old archive folders... [13:47:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:47:58]tlvbuf is 0018B390 [13:47:58]SAM_PROTO_ClearQueue [13:47:58]wFMCommunicate request_size=4 [13:47:58]MH_SAM_APDU [13:47:58]CAPDU: 80 09 00 00 [13:47:58]Write to MH i2c: E2 08 00 7A 19 80 09 00 00 00 00 00 00 05 [13:47:58]Write i2c OK [13:47:58]MH_I2C_Read... [13:47:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:58]Read from MH i2c: E2 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: E2 03 00 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: E2 03 00 7A 19 00 90 00 07 [13:47:58]RAPDU: 90 00 [13:47:58]wFMCommunicate OK [13:47:58]SAM_PROTO_ClearQueue done [13:47:58]KKMCreateOFDPacket [13:47:58]OFDProtocolAddRootSTLVToBuf [13:47:58]FM_MakeSignedData [13:47:58]FM_MakeSignedData [13:47:58]SAM_PROTO_SignData [13:47:58]wFMCommunicate request_size=4 [13:47:58]MH_SAM_APDU [13:47:58]CAPDU: 80 0D 01 02 [13:47:58]Write to MH i2c: E2 08 00 7B 19 80 0D 01 02 00 00 00 00 0D [13:47:58]Write i2c OK [13:47:58]MH_I2C_Read... [13:47:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:58]Read from MH i2c: E2 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: E2 03 00 [13:47:58]MH_I2C_Read... [13:47:58]Read from MH i2c: E2 03 00 7B 19 00 90 00 08 [13:47:58]RAPDU: 90 00 [13:47:58]wFMCommunicate OK [13:47:58]wFMCommunicate request_size=255 [13:47:58]MH_SAM_APDU [13:47:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 8F 81 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 74 00 00 35 04 06 00 EB 8F AE 99 [13:47:58]Write to MH i2c: E2 02 01 7C 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 8F 81 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 74 00 00 35 04 06 00 EB 8F AE 99 00 00 19 [13:47:58]Write i2c OK [13:47:58]MH_I2C_Read... [13:47:58]OFD Sender: No OFD packet to send [13:47:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:59]Read from MH i2c: E2 [13:47:59]MH_I2C_Read... [13:47:59]Read from MH i2c: E2 03 00 [13:47:59]MH_I2C_Read... [13:47:59]Read from MH i2c: E2 03 00 7C 19 00 90 00 09 [13:47:59]RAPDU: 90 00 [13:47:59]wFMCommunicate OK [13:47:59]wFMCommunicate request_size=7 [13:47:59]MH_SAM_APDU [13:47:59]CAPDU: 80 0D 02 02 02 46 4E [13:47:59]Write to MH i2c: E2 0A 00 7D 19 80 0D 02 02 02 00 46 4E 00 00 A8 [13:47:59]Write i2c OK [13:47:59]MH_I2C_Read... [13:47:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:59]Read from MH i2c: E2 [13:47:59]MH_I2C_Read... [13:47:59]Read from MH i2c: E2 03 00 [13:47:59]MH_I2C_Read... [13:47:59]Read from MH i2c: E2 03 00 7D 19 00 90 00 0A [13:47:59]RAPDU: 90 00 [13:47:59]wFMCommunicate OK [13:47:59]wFMCommunicate request_size=4 [13:47:59]MH_SAM_APDU [13:47:59]CAPDU: 80 0D 03 02 [13:47:59]Write to MH i2c: E2 08 00 7E 19 80 0D 03 02 00 00 00 00 12 [13:47:59]Write i2c OK [13:47:59]MH_I2C_Read... [13:47:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:59]Read from MH i2c: E2 [13:47:59]MH_I2C_Read... [13:47:59]Read from MH i2c: E2 0B 00 [13:47:59]MH_I2C_Read... [13:47:59]Read from MH i2c: E2 0B 00 7E 19 00 4C BF BE 5C 2A 0B 44 0A 90 00 BB [13:47:59]RAPDU: 4C BF BE 5C 2A 0B 44 0A 90 00 [13:47:59]wFMCommunicate OK [13:47:59]SAM_PROTO_SignData done [13:47:59]FM_MakeSignedData done [13:47:59]CreateOFDProtocolMessage [13:47:59]wFMCommunicate request_size=4 [13:47:59]MH_SAM_APDU [13:47:59]CAPDU: 80 11 00 00 [13:47:59]Write to MH i2c: E2 08 00 7F 19 80 11 00 00 00 00 00 00 12 [13:47:59]Write i2c OK [13:47:59]MH_I2C_Read... [13:47:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:59]Read from MH i2c: E2 [13:47:59]MH_I2C_Read... [13:47:59]Read from MH i2c: E2 17 00 [13:47:59]MH_I2C_Read... [13:47:59]Read from MH i2c: E2 17 00 7F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 61 [13:47:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:47:59]wFMCommunicate OK [13:47:59]CreateOFDProtocolMessage done [13:47:59]OFDSenderStorePacket 29833 [13:47:59]StoreOFDPacket docnum=29833 [13:47:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 9E 34 04 01 92 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 8F 81 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 74 00 00 35 04 06 00 EB 8F AE 99 46 4E 4C BF BE 5C 2A 0B 44 0A [13:47:59]CheckFolder [13:47:59]dirname=/storage/ofd_packets [13:47:59]CheckFolder done [13:47:59]ProducePacketName [13:47:59]name=ofd_packets/00029833 [13:47:59]NVStorageSaveData ofd_packets/00029833 [13:47:59]File name is /storage/ofd_packets/00029833 [13:47:59]Write 298 bytes [13:47:59]NVStorageSaveData done [13:47:59]OFDSenderStorePacket done [13:47:59]KKMCreateOFDPacket done [13:47:59]NVStorageSaveData kkm_last_timestamp [13:47:59]File name is /storage/kkm_last_timestamp [13:47:59]Write 4 bytes [13:47:59]NVStorageSaveData done [13:47:59]ExternCall_PrintAddStr [13:47:59]wPrintStart [13:47:59]Write to MH i2c: 01 00 00 80 19 99 [13:47:59]Write i2c OK [13:47:59]MH_I2C_Read... [13:47:59]Read from MH i2c: 01 [13:47:59]MH_I2C_Read... [13:47:59]Read from MH i2c: 01 07 00 [13:47:59]MH_I2C_Read... [13:47:59]Read from MH i2c: 01 07 00 80 19 00 00 00 00 00 FF 0F AE [13:47:59]RasterBufferAndPrint [13:47:59]line Счет N : (1)348344 [13:47:59]line ИНН: 02508201610067 [13:47:59]line Контрольно-Кассовый Чек [13:47:59]line ПРОДАЖА [13:47:59]line ТРК (МРК, ГНК) : 21 [13:47:59]line Товар: 2710194210 [13:47:59]line ДТ-К-5 [13:47:59]line 6.860 * 72.90 [13:47:59]line = 500.09 [13:47:59]line НДС 12% НСП 1% [13:47:59]line > о реализуемом товаре [13:47:59]line ИТОГО: 500.09 [13:47:59]line НСП 1% : 4.43 [13:47:59]line НДС 12% : 53.11 [13:47:59]line Наличными: 0.00 [13:47:59]line Безнал.: 500.09 [13:47:59]line Место: АЗС № 108 "Партнер Нефть" [13:47:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:47:59]line СНО: Общий режим [13:47:59]line Чек 107 16.04.2024 13:47 [13:47:59]line Смена: 118 ФФД: 1.0 [13:47:59]line ЗНМ: 0300000027 [13:47:59]line РНМ: 0000138879044617 [13:47:59]line Версия ККМ: 001 [13:47:59]line Платежная система: АКБ Кыргызстан [13:47:59]line ФМ: 0000000000963154 [13:47:59]line ФД: 29833 [13:47:59]line ФПД: 259002342131278 [13:47:59]line 1/tax-web-control/client/api/v1/ticket?date=20240416T134759&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29833&fm=259002342131278&tin=02508201610067®Number=0000138879044617&sum=50009 [13:47:59]OFD Sender: Processing packet 29833 [packets to send 8, broken 7] [13:47:59]ProducePacketName [13:47:59]name=ofd_packets/00029833 [13:47:59]OFD Sender: To server: pG, [13:47:59]CommunicateWithHost lk.salyk.kg:30040 [13:47:59]ConnectInit lk.salyk.kg [13:47:59]written 0, free lines is 4095 [13:47:59]Connected sock=10 [13:47:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 9E 34 04 01 92 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 8F 81 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 74 00 00 35 04 06 00 EB 8F AE 99 46 4E 4C BF BE 5C 2A 0B 44 0A [13:47:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 69 65 47 00 18 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 74 00 00 F4 03 04 00 2D 2C 1E 66 B6 04 01 00 00 6B EC 21 F1 C4 0E 34 60 [13:47:59]CommunicateWithHost err = 0 [13:47:59]CheckOFDResponse [13:47:59]1017 (14) - 77093643461234 [13:47:59]1041 (16) - 0000000000963154 [13:47:59]1040 (4) - 29833 [13:47:59]1012 (4) - 16.04.2024 07:43 [13:47:59]1206 (1) - 0 [13:47:59]OFD Sender: Remove packet 29833 [13:47:59]ProducePacketName [13:47:59]name=ofd_packets/00029833 [13:47:59]NVStorageDeleteData [13:47:59]Write to MH i2c: 01 00 00 A9 19 C2 [13:47:59]Write i2c OK [13:47:59]MH_I2C_Read... [13:47:59]Read from MH i2c: 01 [13:47:59]MH_I2C_Read... [13:47:59]Read from MH i2c: 01 07 00 [13:47:59]MH_I2C_Read... [13:47:59]Read from MH i2c: 01 07 00 A9 19 00 00 00 00 00 D7 0C AC [13:47:59]RasterBufferAndPrint [13:47:59]line [13:47:59]line [13:47:59]line [13:47:59]line [13:47:59]line [13:47:59]written 0, free lines is 3294 [13:47:59]MH_Cut [13:47:59]Write to MH i2c: D1 01 00 B0 19 01 9B [13:47:59]Write i2c OK [13:47:59]MH_I2C_Read... [13:47:59]Read from MH i2c: D1 [13:47:59]MH_I2C_Read... [13:47:59]Read from MH i2c: D1 01 00 [13:47:59]MH_I2C_Read... [13:47:59]Read from MH i2c: D1 01 00 B0 19 00 9A [13:47:59]Write to MH i2c: 01 00 00 B1 19 CA [13:47:59]Write i2c OK [13:47:59]MH_I2C_Read... [13:48:00]OFD Sender: No OFD packet to send [13:48:00]*** Cut start [13:48:00]*** Partial cut [13:48:00]*** CUTSNS_PIN = 1 [13:48:00]*** CUTSNS_PIN = 0 [13:48:01]*** Brake cut motor [13:48:01]Read from MH i2c: 01 [13:48:01]MH_I2C_Read... [13:48:01]*** Stop cut motor [13:48:01]*** Cut end [13:48:01]Read from MH i2c: 01 07 00 [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: 01 07 00 B1 19 00 00 00 00 00 FF 0F DF [13:48:01]process_action close_receipt done [13:48:01]requested_data is exist [13:48:01]produce_requested_data [13:48:01]requested_item fm.sn is exist - process it [13:48:01]wFMCommunicate request_size=4 [13:48:01]MH_SAM_APDU [13:48:01]CAPDU: 80 11 00 00 [13:48:01]Write to MH i2c: E2 08 00 B2 19 80 11 00 00 00 00 00 00 45 [13:48:01]Write i2c OK [13:48:01]MH_I2C_Read... [13:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:01]Read from MH i2c: E2 [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: E2 17 00 [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: E2 17 00 B2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 94 [13:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:48:01]wFMCommunicate OK [13:48:01]requested_item fd.num is exist - process it [13:48:01]SAM_PROTO_GetFieldsCounters [13:48:01]wFMCommunicate request_size=4 [13:48:01]MH_SAM_APDU [13:48:01]CAPDU: 80 13 00 00 [13:48:01]Write to MH i2c: E2 08 00 B3 19 80 13 00 00 00 00 00 00 48 [13:48:01]Write i2c OK [13:48:01]MH_I2C_Read... [13:48:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:01]Read from MH i2c: E2 [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: E2 62 00 [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: E2 62 00 B3 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 89 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [13:48:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 89 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:48:01]wFMCommunicate OK [13:48:01]SAM_PROTO_GetFieldsCounters done [13:48:01]requested_item shift.num is exist - process it [13:48:01]requested_item shift.opened is exist - process it [13:48:01]req_shift_opened [13:48:01]FM_GetShiftState [13:48:01]SAM_PROTO_GetShiftState [13:48:01]wFMCommunicate request_size=4 [13:48:01]MH_SAM_APDU [13:48:01]CAPDU: 80 13 01 00 [13:48:01]Write to MH i2c: E2 08 00 B4 19 80 13 01 00 00 00 00 00 4A [13:48:01]Write i2c OK [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: E2 [13:48:01]MH_I2C_Read... [13:48:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:01]Read from MH i2c: E2 0E 00 [13:48:01]MH_I2C_Read... [13:48:01]Read from MH i2c: E2 0E 00 B4 19 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 F8 [13:48:01]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:48:01]wFMCommunicate OK [13:48:01]SAM_PROTO_GetShiftState done [13:48:01]FM_GetShiftState done [13:48:01]req_shift_opened done [13:48:01]requested_item shift.open_date is exist - process it [13:48:01]req_shift_open_date [13:48:01]req_shift_open_date done [13:48:01]produce_requested_data done [13:48:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29833,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [13:48:01]process_action_free close_receipt [13:48:01]json_value_free [13:48:01]json_value_free done [13:48:01]process_json_proto returns [13:48:01]Send response to host [13:48:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29833,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [13:48:01]free response buf [13:48:01]execute_script done [13:48:01]execute_script returns [13:48:01]free content buf [13:48:01]Sock 7.Close socket [13:48:01]Sock 7.Thread stoped [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:48:56]accept exits with 9 [13:48:56]New connection [13:48:56]New thread 3067276644 created [13:48:56]Thread 3067133284 joined [13:48:56]Waiting for new connection... [13:48:56] Sock 9.Parse request [13:48:56]Sock 9.Check first char [13:48:56]Sock 9.First char is OK [13:48:56]request: POST /json_proto HTTP/1.0 [13:48:56]Method: POST [13:48:56]URL: /json_proto [13:48:56]Method is POST - this is cgi request [13:48:56]url: /json_proto [13:48:56]query_string will be loaded in cgi processing [13:48:56]execute_cgi json_proto POST (null) [13:48:56]execute_cgi path=json_proto method=POST [13:48:56]POST find Content-Length [13:48:56]Host: 172.17.33.3:8080 [13:48:56]Content-Length: 671 [13:48:56]Content-Type: application/json [13:48:56] [13:48:56]POST finish read [13:48:56]Found Content-Length = 671 [13:48:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:56]execute_script... [13:48:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:56]POST & json_proto [13:48:56]process_json_proto [13:48:56]json parsed OK: [13:48:56]protocol is kg_v1.0 [13:48:56]action value=close_receipt [13:48:56]process_action close_receipt [13:48:56]cmd_close_receipt [13:48:56]MH_GetDate [13:48:56]Write to MH i2c: F0 00 00 B5 19 BD [13:48:56]Write i2c OK [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: F0 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: F0 09 00 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: F0 09 00 B5 19 00 CA 81 1E 66 23 5B 8F 65 07 [13:48:56]GetLastDocTimeStamp 1713275279 [13:48:56]current date 1713275338 [13:48:56]FM_GetShiftState [13:48:56]SAM_PROTO_GetShiftState [13:48:56]wFMCommunicate request_size=4 [13:48:56]MH_SAM_APDU [13:48:56]CAPDU: 80 13 01 00 [13:48:56]Write to MH i2c: E2 08 00 B6 19 80 13 01 00 00 00 00 00 4C [13:48:56]Write i2c OK [13:48:56]MH_I2C_Read... [13:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:56]Read from MH i2c: E2 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: E2 0E 00 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: E2 0E 00 B6 19 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 FA [13:48:56]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:48:56]wFMCommunicate OK [13:48:56]SAM_PROTO_GetShiftState done [13:48:56]FM_GetShiftState done [13:48:56]opened in 1713226843 [13:48:56]opened+sec_in_day 1713313243 [13:48:56]quantity*price = 80012 [13:48:56]sum+1 = 80014 [13:48:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 108 16.04.2024 13:48 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29834 ФПД: 41692259842265 1/tax-web-control/client/api/v1/ticket?date=20240416T134858&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29834&fm=41692259842265&tin=02508201610067®Number=0000138879044617&sum=80000 [13:48:57]StoreToDocumentArchive [13:48:57]shift 118 fd 29834 [13:48:57]save to /storage/0118/doc_00029834 [13:48:57]save last doc name /storage/0118/doc_00029834 to /storage/kkm_last_doc_name [13:48:57]save OK [13:48:57]Clear old archive folders... [13:48:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:48:57]tlvbuf is 0018B5B0 [13:48:57]SAM_PROTO_ClearQueue [13:48:57]wFMCommunicate request_size=4 [13:48:57]MH_SAM_APDU [13:48:57]CAPDU: 80 09 00 00 [13:48:57]Write to MH i2c: E2 08 00 C3 19 80 09 00 00 00 00 00 00 4E [13:48:57]Write i2c OK [13:48:57]MH_I2C_Read... [13:48:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:57]Read from MH i2c: E2 [13:48:57]MH_I2C_Read... [13:48:57]Read from MH i2c: E2 03 00 [13:48:57]MH_I2C_Read... [13:48:57]Read from MH i2c: E2 03 00 C3 19 00 90 00 50 [13:48:57]RAPDU: 90 00 [13:48:57]wFMCommunicate OK [13:48:57]SAM_PROTO_ClearQueue done [13:48:57]KKMCreateOFDPacket [13:48:57]OFDProtocolAddRootSTLVToBuf [13:48:57]FM_MakeSignedData [13:48:57]FM_MakeSignedData [13:48:57]SAM_PROTO_SignData [13:48:57]wFMCommunicate request_size=4 [13:48:57]MH_SAM_APDU [13:48:57]CAPDU: 80 0D 01 02 [13:48:57]Write to MH i2c: E2 08 00 C4 19 80 0D 01 02 00 00 00 00 56 [13:48:57]Write i2c OK [13:48:57]MH_I2C_Read... [13:48:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:57]Read from MH i2c: E2 [13:48:57]MH_I2C_Read... [13:48:57]Read from MH i2c: E2 03 00 [13:48:57]MH_I2C_Read... [13:48:57]Read from MH i2c: E2 03 00 C4 19 00 90 00 51 [13:48:57]RAPDU: 90 00 [13:48:57]wFMCommunicate OK [13:48:57]wFMCommunicate request_size=255 [13:48:57]MH_SAM_APDU [13:48:57]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 CA 81 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 74 00 00 35 04 06 00 [13:48:57]Write to MH i2c: E2 02 01 C5 19 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 CA 81 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 74 00 00 35 04 06 00 00 00 A2 [13:48:57]Write i2c OK [13:48:57]MH_I2C_Read... [13:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:58]Read from MH i2c: E2 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: E2 03 00 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: E2 03 00 C5 19 00 90 00 52 [13:48:58]RAPDU: 90 00 [13:48:58]wFMCommunicate OK [13:48:58]wFMCommunicate request_size=11 [13:48:58]MH_SAM_APDU [13:48:58]CAPDU: 80 0D 02 02 06 25 EB 3C 56 78 D9 [13:48:58]Write to MH i2c: E2 0E 00 C6 19 80 0D 02 02 06 00 25 EB 3C 56 78 D9 00 00 58 [13:48:58]Write i2c OK [13:48:58]MH_I2C_Read... [13:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:58]Read from MH i2c: E2 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: E2 03 00 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: E2 03 00 C6 19 00 90 00 53 [13:48:58]RAPDU: 90 00 [13:48:58]wFMCommunicate OK [13:48:58]wFMCommunicate request_size=4 [13:48:58]MH_SAM_APDU [13:48:58]CAPDU: 80 0D 03 02 [13:48:58]Write to MH i2c: E2 08 00 C7 19 80 0D 03 02 00 00 00 00 5B [13:48:58]Write i2c OK [13:48:58]MH_I2C_Read... [13:48:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:58]Read from MH i2c: E2 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: E2 0B 00 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: E2 0B 00 C7 19 00 47 E0 1C E6 D5 A2 98 CD 90 00 61 [13:48:58]RAPDU: 47 E0 1C E6 D5 A2 98 CD 90 00 [13:48:58]wFMCommunicate OK [13:48:58]SAM_PROTO_SignData done [13:48:58]FM_MakeSignedData done [13:48:58]CreateOFDProtocolMessage [13:48:58]wFMCommunicate request_size=4 [13:48:58]MH_SAM_APDU [13:48:58]CAPDU: 80 11 00 00 [13:48:58]Write to MH i2c: E2 08 00 C8 19 80 11 00 00 00 00 00 00 5B [13:48:58]Write i2c OK [13:48:58]MH_I2C_Read... [13:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:58]Read from MH i2c: E2 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: E2 17 00 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: E2 17 00 C8 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AA [13:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:48:58]wFMCommunicate OK [13:48:58]CreateOFDProtocolMessage done [13:48:58]OFDSenderStorePacket 29834 [13:48:58]StoreOFDPacket docnum=29834 [13:48:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 FB 41 08 01 33 54 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 CA 81 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 74 00 00 35 04 06 00 25 EB 3C 56 78 D9 47 E0 1C E6 D5 A2 98 CD [13:48:58]CheckFolder [13:48:58]dirname=/storage/ofd_packets [13:48:58]CheckFolder done [13:48:58]ProducePacketName [13:48:58]name=ofd_packets/00029834 [13:48:58]NVStorageSaveData ofd_packets/00029834 [13:48:58]File name is /storage/ofd_packets/00029834 [13:48:58]Write 302 bytes [13:48:58]NVStorageSaveData done [13:48:58]OFDSenderStorePacket done [13:48:58]KKMCreateOFDPacket done [13:48:58]NVStorageSaveData kkm_last_timestamp [13:48:58]File name is /storage/kkm_last_timestamp [13:48:58]Write 4 bytes [13:48:58]NVStorageSaveData done [13:48:58]ExternCall_PrintAddStr [13:48:58]wPrintStart [13:48:58]Write to MH i2c: 01 00 00 C9 19 E2 [13:48:58]Write i2c OK [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: 01 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: 01 07 00 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: 01 07 00 C9 19 00 00 00 00 00 FF 0F F7 [13:48:58]RasterBufferAndPrint [13:48:58]line Счет N : (1)348345 [13:48:58]line ИНН: 02508201610067 [13:48:58]line Контрольно-Кассовый Чек [13:48:58]line ПРОДАЖА [13:48:58]line ТРК (МРК, ГНК) : 41 [13:48:58]line Товар: 2710124130 [13:48:58]line SUPER-92-К-5 [13:48:58]line 12.160 * 65.80 [13:48:58]line = 800.13 [13:48:58]line НДС 12% НСП 1% [13:48:58]line > о реализуемом товаре [13:48:58]line ОКРУГЛЕНИЕ: -0.13 [13:48:58]line ИТОГО: 800.00 [13:48:58]line Внесено: 800.00 [13:48:58]line СДАЧА: 0.00 [13:48:58]line НСП 1% : 7.08 [13:48:58]line НДС 12% : 84.97 [13:48:58]line Наличными: 800.00 [13:48:58]line Безнал.: 0.00 [13:48:58]line Место: АЗС № 108 "Партнер Нефть" [13:48:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:48:58]line СНО: Общий режим [13:48:58]line Чек 108 16.04.2024 13:48 [13:48:58]line Смена: 118 ФФД: 1.0 [13:48:58]line ЗНМ: 0300000027 [13:48:58]line РНМ: 0000138879044617 [13:48:58]line Версия ККМ: 001 [13:48:58]line ФМ: 0000000000963154 [13:48:58]line ФД: 29834 [13:48:58]line ФПД: 41692259842265 [13:48:58]line 1/tax-web-control/client/api/v1/ticket?date=20240416T134858&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29834&fm=41692259842265&tin=02508201610067®Number=0000138879044617&sum=80000 [13:48:58]written 0, free lines is 4095 [13:48:58]OFD Sender: Processing packet 29834 [packets to send 8, broken 7] [13:48:58]ProducePacketName [13:48:58]name=ofd_packets/00029834 [13:48:58]OFD Sender: To server: pG, [13:48:58]CommunicateWithHost lk.salyk.kg:30040 [13:48:58]ConnectInit lk.salyk.kg [13:48:58]Connected sock=10 [13:48:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 FB 41 08 01 33 54 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 CA 81 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 74 00 00 35 04 06 00 25 EB 3C 56 78 D9 47 E0 1C E6 D5 A2 98 CD [13:48:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6C 53 47 00 53 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 36 33 31 35 34 10 04 04 00 8A 74 00 00 F4 03 04 00 68 2C 1E 66 B6 04 01 00 00 6B DC D3 60 7A F2 09 04 [13:48:58]CommunicateWithHost err = 0 [13:48:58]CheckOFDResponse [13:48:58]1017 (14) - 77093643461234 [13:48:58]1041 (16) - 0000000000963154 [13:48:58]1040 (4) - 29834 [13:48:58]1012 (4) - 16.04.2024 07:44 [13:48:58]1206 (1) - 0 [13:48:58]OFD Sender: Remove packet 29834 [13:48:58]ProducePacketName [13:48:58]name=ofd_packets/00029834 [13:48:58]NVStorageDeleteData [13:48:58]Write to MH i2c: 01 00 00 F3 19 0C [13:48:58]Write i2c OK [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: 01 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: 01 07 00 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: 01 07 00 F3 19 00 00 00 00 00 CA 0C E9 [13:48:58]RasterBufferAndPrint [13:48:58]line [13:48:58]line [13:48:58]line [13:48:58]line [13:48:58]line [13:48:58]written 0, free lines is 3278 [13:48:58]MH_Cut [13:48:58]Write to MH i2c: D1 01 00 FA 19 01 E5 [13:48:58]Write i2c OK [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: D1 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: D1 01 00 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: D1 01 00 FA 19 00 E4 [13:48:58]Write to MH i2c: 01 00 00 FB 19 14 [13:48:58]Write i2c OK [13:48:58]MH_I2C_Read... [13:48:58]OFD Sender: No OFD packet to send [13:48:59]*** Cut start [13:48:59]*** Partial cut [13:48:59]*** CUTSNS_PIN = 1 [13:48:59]*** CUTSNS_PIN = 0 [13:48:59]*** Brake cut motor [13:49:00]Read from MH i2c: 01 [13:49:00]MH_I2C_Read... [13:49:00]*** Stop cut motor [13:49:00]*** Cut end [13:49:00]Read from MH i2c: 01 07 00 [13:49:00]MH_I2C_Read... [13:49:00]Read from MH i2c: 01 07 00 FB 19 00 00 00 00 00 FF 0F 29 [13:49:00]process_action close_receipt done [13:49:00]requested_data is exist [13:49:00]produce_requested_data [13:49:00]requested_item fm.sn is exist - process it [13:49:00]wFMCommunicate request_size=4 [13:49:00]MH_SAM_APDU [13:49:00]CAPDU: 80 11 00 00 [13:49:00]Write to MH i2c: E2 08 00 FC 19 80 11 00 00 00 00 00 00 8F [13:49:00]Write i2c OK [13:49:00]MH_I2C_Read... [13:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:00]Read from MH i2c: E2 [13:49:00]MH_I2C_Read... [13:49:00]Read from MH i2c: E2 17 00 [13:49:00]MH_I2C_Read... [13:49:00]Read from MH i2c: E2 17 00 FC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DE [13:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:49:00]wFMCommunicate OK [13:49:00]requested_item fd.num is exist - process it [13:49:00]SAM_PROTO_GetFieldsCounters [13:49:00]wFMCommunicate request_size=4 [13:49:00]MH_SAM_APDU [13:49:00]CAPDU: 80 13 00 00 [13:49:00]Write to MH i2c: E2 08 00 FD 19 80 13 00 00 00 00 00 00 92 [13:49:00]Write i2c OK [13:49:00]MH_I2C_Read... [13:49:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:00]Read from MH i2c: E2 [13:49:00]MH_I2C_Read... [13:49:00]Read from MH i2c: E2 62 00 [13:49:00]MH_I2C_Read... [13:49:00]Read from MH i2c: E2 62 00 FD 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8A 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [13:49:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8A 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:00]wFMCommunicate OK [13:49:00]SAM_PROTO_GetFieldsCounters done [13:49:00]requested_item shift.num is exist - process it [13:49:00]requested_item shift.opened is exist - process it [13:49:00]req_shift_opened [13:49:00]FM_GetShiftState [13:49:00]SAM_PROTO_GetShiftState [13:49:00]wFMCommunicate request_size=4 [13:49:00]MH_SAM_APDU [13:49:00]CAPDU: 80 13 01 00 [13:49:00]Write to MH i2c: E2 08 00 FE 19 80 13 01 00 00 00 00 00 94 [13:49:00]Write i2c OK [13:49:00]MH_I2C_Read... [13:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:00]Read from MH i2c: E2 [13:49:00]MH_I2C_Read... [13:49:00]Read from MH i2c: E2 0E 00 [13:49:00]MH_I2C_Read... [13:49:00]Read from MH i2c: E2 0E 00 FE 19 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 42 [13:49:00]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:49:00]wFMCommunicate OK [13:49:00]SAM_PROTO_GetShiftState done [13:49:00]FM_GetShiftState done [13:49:00]req_shift_opened done [13:49:00]requested_item shift.open_date is exist - process it [13:49:00]req_shift_open_date [13:49:00]req_shift_open_date done [13:49:00]produce_requested_data done [13:49:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29834,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [13:49:00]process_action_free close_receipt [13:49:00]json_value_free [13:49:00]json_value_free done [13:49:00]process_json_proto returns [13:49:00]Send response to host [13:49:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29834,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [13:49:00]free response buf [13:49:00]execute_script done [13:49:00]execute_script returns [13:49:00]free content buf [13:49:00]Sock 9.Close socket [13:49:00]Sock 9.Thread stoped [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:39]OFD Sender: No OFD packet to send [13:58:44]OFD Sender: No OFD packet to send [13:58:49]OFD Sender: No OFD packet to send [13:58:54]OFD Sender: No OFD packet to send [13:58:59]OFD Sender: No OFD packet to send [13:59:04]OFD Sender: No OFD packet to send [13:59:05]accept exits with 7 [13:59:05]New connection [13:59:05]New thread 3067133284 created [13:59:05]Thread 3067276644 joined [13:59:05]Waiting for new connection... [13:59:05] Sock 7.Parse request [13:59:05]Sock 7.Check first char [13:59:05]Sock 7.First char is OK [13:59:05]request: POST /json_proto HTTP/1.0 [13:59:05]Method: POST [13:59:05]URL: /json_proto [13:59:05]Method is POST - this is cgi request [13:59:05]url: /json_proto [13:59:05]query_string will be loaded in cgi processing [13:59:05]execute_cgi json_proto POST (null) [13:59:05]execute_cgi path=json_proto method=POST [13:59:05]POST find Content-Length [13:59:05]Host: 172.17.33.3:8080 [13:59:05]Content-Length: 817 [13:59:05]Content-Type: application/json [13:59:05] [13:59:05]POST finish read [13:59:05]Found Content-Length = 817 [13:59:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:05]execute_script... [13:59:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.810, "sum" : 700.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:05]POST & json_proto [13:59:05]process_json_proto [13:59:05]json parsed OK: [13:59:05]protocol is kg_v1.0 [13:59:05]action value=close_receipt [13:59:05]process_action close_receipt [13:59:05]cmd_close_receipt [13:59:05]MH_GetDate [13:59:05]Write to MH i2c: F0 00 00 FF 19 07 [13:59:05]Write i2c OK [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: F0 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: F0 09 00 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: F0 09 00 FF 19 00 2B 84 1E 66 23 5B 8F 65 B5 [13:59:05]GetLastDocTimeStamp 1713275338 [13:59:05]current date 1713275947 [13:59:05]FM_GetShiftState [13:59:05]SAM_PROTO_GetShiftState [13:59:05]wFMCommunicate request_size=4 [13:59:05]MH_SAM_APDU [13:59:05]CAPDU: 80 13 01 00 [13:59:05]Write to MH i2c: E2 08 00 00 1A 80 13 01 00 00 00 00 00 97 [13:59:05]Write i2c OK [13:59:05]MH_I2C_Read... [13:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:05]Read from MH i2c: E2 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: E2 0E 00 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: E2 0E 00 00 1A 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 45 [13:59:05]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:59:05]wFMCommunicate OK [13:59:05]SAM_PROTO_GetShiftState done [13:59:05]FM_GetShiftState done [13:59:05]opened in 1713226843 [13:59:05]opened+sec_in_day 1713313243 [13:59:05]quantity*price = 70048 [13:59:05]sum+1 = 70050 [13:59:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.49 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 0.00 Безнал.: 700.49 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 109 16.04.2024 13:59 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29835 ФПД: 2034859985501 1/tax-web-control/client/api/v1/ticket?date=20240416T135907&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29835&fm=2034859985501&tin=02508201610067®Number=0000138879044617&sum=70049 [13:59:06]StoreToDocumentArchive [13:59:06]shift 118 fd 29835 [13:59:06]save to /storage/0118/doc_00029835 [13:59:06]save last doc name /storage/0118/doc_00029835 to /storage/kkm_last_doc_name [13:59:06]save OK [13:59:06]Clear old archive folders... [13:59:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:06]tlvbuf is 0018B480 [13:59:06]SAM_PROTO_ClearQueue [13:59:06]wFMCommunicate request_size=4 [13:59:06]MH_SAM_APDU [13:59:06]CAPDU: 80 09 00 00 [13:59:06]Write to MH i2c: E2 08 00 0D 1A 80 09 00 00 00 00 00 00 99 [13:59:06]Write i2c OK [13:59:06]MH_I2C_Read... [13:59:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:06]Read from MH i2c: E2 [13:59:06]MH_I2C_Read... [13:59:06]Read from MH i2c: E2 03 00 [13:59:06]MH_I2C_Read... [13:59:06]Read from MH i2c: E2 03 00 0D 1A 00 90 00 9B [13:59:06]RAPDU: 90 00 [13:59:06]wFMCommunicate OK [13:59:06]SAM_PROTO_ClearQueue done [13:59:06]KKMCreateOFDPacket [13:59:06]OFDProtocolAddRootSTLVToBuf [13:59:06]FM_MakeSignedData [13:59:06]FM_MakeSignedData [13:59:06]SAM_PROTO_SignData [13:59:06]wFMCommunicate request_size=4 [13:59:06]MH_SAM_APDU [13:59:06]CAPDU: 80 0D 01 02 [13:59:06]Write to MH i2c: E2 08 00 0E 1A 80 0D 01 02 00 00 00 00 A1 [13:59:06]Write i2c OK [13:59:06]MH_I2C_Read... [13:59:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:06]Read from MH i2c: E2 [13:59:06]MH_I2C_Read... [13:59:06]Read from MH i2c: E2 03 00 [13:59:06]MH_I2C_Read... [13:59:06]Read from MH i2c: E2 03 00 0E 1A 00 90 00 9C [13:59:06]RAPDU: 90 00 [13:59:06]wFMCommunicate OK [13:59:06]wFMCommunicate request_size=255 [13:59:06]MH_SAM_APDU [13:59:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 2B 84 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 74 00 00 35 04 06 00 01 [13:59:06]Write to MH i2c: E2 02 01 0F 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 2B 84 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 74 00 00 35 04 06 00 01 00 00 5E [13:59:06]Write i2c OK [13:59:06]MH_I2C_Read... [13:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:07]Read from MH i2c: E2 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 03 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 03 00 0F 1A 00 90 00 9D [13:59:07]RAPDU: 90 00 [13:59:07]wFMCommunicate OK [13:59:07]wFMCommunicate request_size=10 [13:59:07]MH_SAM_APDU [13:59:07]CAPDU: 80 0D 02 02 05 D9 C7 1B 4A 5D [13:59:07]Write to MH i2c: E2 0D 00 10 1A 80 0D 02 02 05 00 D9 C7 1B 4A 5D 00 00 10 [13:59:07]Write i2c OK [13:59:07]MH_I2C_Read... [13:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:07]Read from MH i2c: E2 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 03 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 03 00 10 1A 00 90 00 9E [13:59:07]RAPDU: 90 00 [13:59:07]wFMCommunicate OK [13:59:07]wFMCommunicate request_size=4 [13:59:07]MH_SAM_APDU [13:59:07]CAPDU: 80 0D 03 02 [13:59:07]Write to MH i2c: E2 08 00 11 1A 80 0D 03 02 00 00 00 00 A6 [13:59:07]Write i2c OK [13:59:07]MH_I2C_Read... [13:59:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:07]Read from MH i2c: E2 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 0B 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 0B 00 11 1A 00 BB E2 E6 08 74 81 DA 8B 90 00 8C [13:59:07]RAPDU: BB E2 E6 08 74 81 DA 8B 90 00 [13:59:07]wFMCommunicate OK [13:59:07]SAM_PROTO_SignData done [13:59:07]FM_MakeSignedData done [13:59:07]CreateOFDProtocolMessage [13:59:07]wFMCommunicate request_size=4 [13:59:07]MH_SAM_APDU [13:59:07]CAPDU: 80 11 00 00 [13:59:07]Write to MH i2c: E2 08 00 12 1A 80 11 00 00 00 00 00 00 A6 [13:59:07]Write i2c OK [13:59:07]MH_I2C_Read... [13:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:07]Read from MH i2c: E2 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 17 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 17 00 12 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F5 [13:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:59:07]wFMCommunicate OK [13:59:07]CreateOFDProtocolMessage done [13:59:07]OFDSenderStorePacket 29835 [13:59:07]StoreOFDPacket docnum=29835 [13:59:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6D DF 07 01 7C 81 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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 2B 84 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 74 00 00 35 04 06 00 01 D9 C7 1B 4A 5D BB E2 E6 08 74 81 DA 8B [13:59:07]CheckFolder [13:59:07]dirname=/storage/ofd_packets [13:59:07]CheckFolder done [13:59:07]ProducePacketName [13:59:07]name=ofd_packets/00029835 [13:59:07]NVStorageSaveData ofd_packets/00029835 [13:59:07]File name is /storage/ofd_packets/00029835 [13:59:07]Write 301 bytes [13:59:07]NVStorageSaveData done [13:59:07]OFDSenderStorePacket done [13:59:07]KKMCreateOFDPacket done [13:59:07]NVStorageSaveData kkm_last_timestamp [13:59:07]File name is /storage/kkm_last_timestamp [13:59:07]Write 4 bytes [13:59:07]NVStorageSaveData done [13:59:07]ExternCall_PrintAddStr [13:59:07]wPrintStart [13:59:07]Write to MH i2c: 01 00 00 13 1A 2D [13:59:07]Write i2c OK [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: 01 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: 01 07 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: 01 07 00 13 1A 00 00 00 00 00 FF 0F 42 [13:59:07]RasterBufferAndPrint [13:59:07]line Счет N : (1)348346 [13:59:07]line ИНН: 02508201610067 [13:59:07]line Контрольно-Кассовый Чек [13:59:07]line ПРОДАЖА [13:59:07]line ТРК (МРК, ГНК) : 32 [13:59:07]line Товар: 2710124130 [13:59:07]line Аи-92-К-5 [13:59:07]line 10.810 * 64.80 [13:59:07]line = 700.49 [13:59:07]line НДС 12% НСП 1% [13:59:07]line > о реализуемом товаре [13:59:07]line ИТОГО: 700.49 [13:59:07]line НСП 1% : 6.20 [13:59:07]line НДС 12% : 74.39 [13:59:07]line Наличными: 0.00 [13:59:07]line Безнал.: 700.49 [13:59:07]line Место: АЗС № 108 "Партнер Нефть" [13:59:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:59:07]line СНО: Общий режим [13:59:07]line Чек 109 16.04.2024 13:59 [13:59:07]line Смена: 118 ФФД: 1.0 [13:59:07]line ЗНМ: 0300000027 [13:59:07]line РНМ: 0000138879044617 [13:59:07]line Версия ККМ: 001 [13:59:07]line Платежная система: Бакай Банк [13:59:07]line ФМ: 0000000000963154 [13:59:07]line ФД: 29835 [13:59:07]line ФПД: 2034859985501 [13:59:07]line 1/tax-web-control/client/api/v1/ticket?date=20240416T135907&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29835&fm=2034859985501&tin=02508201610067®Number=0000138879044617&sum=70049 [13:59:07]OFD Sender: Processing packet 29835 [packets to send 8, broken 7] [13:59:07]ProducePacketName [13:59:07]name=ofd_packets/00029835 [13:59:07]OFD Sender: To server: pG, [13:59:07]CommunicateWithHost lk.salyk.kg:30040 [13:59:07]ConnectInit lk.salyk.kg [13:59:07]written 0, free lines is 4095 [13:59:07]Connected sock=10 [13:59:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6D DF 07 01 7C 81 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 3A 2A 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 2B 84 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 74 00 00 35 04 06 00 01 D9 C7 1B 4A 5D BB E2 E6 08 74 81 DA 8B [13:59:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D2 03 47 00 A3 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 36 33 31 35 34 10 04 04 00 8B 74 00 00 F4 03 04 00 C9 2E 1E 66 B6 04 01 00 00 2D ED F0 A3 23 6F FB DE [13:59:07]CommunicateWithHost err = 0 [13:59:07]CheckOFDResponse [13:59:07]1017 (14) - 77093643461234 [13:59:07]1041 (16) - 0000000000963154 [13:59:07]1040 (4) - 29835 [13:59:07]1012 (4) - 16.04.2024 07:54 [13:59:07]1206 (1) - 0 [13:59:07]OFD Sender: Remove packet 29835 [13:59:07]ProducePacketName [13:59:07]name=ofd_packets/00029835 [13:59:07]NVStorageDeleteData [13:59:08]Write to MH i2c: 01 00 00 3C 1A 56 [13:59:08]Write i2c OK [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: 01 [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: 01 07 00 [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: 01 07 00 3C 1A 00 00 00 00 00 D1 0C 3A [13:59:08]RasterBufferAndPrint [13:59:08]line [13:59:08]line [13:59:08]line [13:59:08]line [13:59:08]line [13:59:08]written 0, free lines is 3288 [13:59:08]MH_Cut [13:59:08]Write to MH i2c: D1 01 00 43 1A 01 2F [13:59:08]Write i2c OK [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: D1 [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: D1 01 00 [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: D1 01 00 43 1A 00 2E [13:59:08]Write to MH i2c: 01 00 00 44 1A 5E [13:59:08]Write i2c OK [13:59:08]MH_I2C_Read... [13:59:08]OFD Sender: No OFD packet to send [13:59:08]*** Cut start [13:59:08]*** Partial cut [13:59:08]*** CUTSNS_PIN = 1 [13:59:08]*** CUTSNS_PIN = 0 [13:59:09]*** Brake cut motor [13:59:09]Read from MH i2c: 01 [13:59:09]MH_I2C_Read... [13:59:09]*** Stop cut motor [13:59:09]*** Cut end [13:59:09]Read from MH i2c: 01 07 00 [13:59:09]MH_I2C_Read... [13:59:09]Read from MH i2c: 01 07 00 44 1A 00 00 00 00 00 FF 0F 73 [13:59:09]process_action close_receipt done [13:59:09]requested_data is exist [13:59:09]produce_requested_data [13:59:09]requested_item fm.sn is exist - process it [13:59:09]wFMCommunicate request_size=4 [13:59:09]MH_SAM_APDU [13:59:09]CAPDU: 80 11 00 00 [13:59:09]Write to MH i2c: E2 08 00 45 1A 80 11 00 00 00 00 00 00 D9 [13:59:09]Write i2c OK [13:59:09]MH_I2C_Read... [13:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:09]Read from MH i2c: E2 [13:59:09]MH_I2C_Read... [13:59:09]Read from MH i2c: E2 17 00 [13:59:09]MH_I2C_Read... [13:59:09]Read from MH i2c: E2 17 00 45 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 28 [13:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:59:09]wFMCommunicate OK [13:59:09]requested_item fd.num is exist - process it [13:59:09]SAM_PROTO_GetFieldsCounters [13:59:09]wFMCommunicate request_size=4 [13:59:09]MH_SAM_APDU [13:59:09]CAPDU: 80 13 00 00 [13:59:09]Write to MH i2c: E2 08 00 46 1A 80 13 00 00 00 00 00 00 DC [13:59:09]Write i2c OK [13:59:09]MH_I2C_Read... [13:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:09]Read from MH i2c: E2 [13:59:09]MH_I2C_Read... [13:59:09]Read from MH i2c: E2 62 00 [13:59:09]MH_I2C_Read... [13:59:09]Read from MH i2c: E2 62 00 46 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8B 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [13: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 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8B 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:09]wFMCommunicate OK [13:59:09]SAM_PROTO_GetFieldsCounters done [13:59:09]requested_item shift.num is exist - process it [13:59:09]requested_item shift.opened is exist - process it [13:59:09]req_shift_opened [13:59:09]FM_GetShiftState [13:59:09]SAM_PROTO_GetShiftState [13:59:09]wFMCommunicate request_size=4 [13:59:09]MH_SAM_APDU [13:59:09]CAPDU: 80 13 01 00 [13:59:09]Write to MH i2c: E2 08 00 47 1A 80 13 01 00 00 00 00 00 DE [13:59:09]Write i2c OK [13:59:09]MH_I2C_Read... [13:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:09]Read from MH i2c: E2 [13:59:09]MH_I2C_Read... [13:59:09]Read from MH i2c: E2 0E 00 [13:59:09]MH_I2C_Read... [13:59:09]Read from MH i2c: E2 0E 00 47 1A 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 8C [13:59:09]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [13:59:09]wFMCommunicate OK [13:59:09]SAM_PROTO_GetShiftState done [13:59:09]FM_GetShiftState done [13:59:09]req_shift_opened done [13:59:09]requested_item shift.open_date is exist - process it [13:59:09]req_shift_open_date [13:59:09]req_shift_open_date done [13:59:09]produce_requested_data done [13:59:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29835,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [13:59:09]process_action_free close_receipt [13:59:09]json_value_free [13:59:09]json_value_free done [13:59:09]process_json_proto returns [13:59:09]Send response to host [13:59:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29835,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [13:59:09]free response buf [13:59:09]execute_script done [13:59:09]execute_script returns [13:59:09]free content buf [13:59:09]Sock 7.Close socket [13:59:09]Sock 7.Thread stoped [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]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:41]accept exits with 9 [14:13:41]New connection [14:13:41]New thread 3067276644 created [14:13:41]Thread 3067133284 joined [14:13:41]Waiting for new connection... [14:13:41] Sock 9.Parse request [14:13:41]Sock 9.Check first char [14:13:41]Sock 9.First char is OK [14:13:41]request: POST /json_proto HTTP/1.0 [14:13:41]Method: POST [14:13:41]URL: /json_proto [14:13:41]Method is POST - this is cgi request [14:13:41]url: /json_proto [14:13:41]query_string will be loaded in cgi processing [14:13:41]execute_cgi json_proto POST (null) [14:13:41]execute_cgi path=json_proto method=POST [14:13:41]POST find Content-Length [14:13:41]Host: 172.17.33.3:8080 [14:13:41]Content-Length: 677 [14:13:41]Content-Type: application/json [14:13:41] [14:13:41]POST finish read [14:13:41]Found Content-Length = 677 [14:13:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 3.340, "sum" : 216.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 216.00, "total" : 216.00, "payments": [ { "type": 0, "sum" : 216.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:41]execute_script... [14:13:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 3.340, "sum" : 216.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 216.00, "total" : 216.00, "payments": [ { "type": 0, "sum" : 216.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:41]POST & json_proto [14:13:41]process_json_proto [14:13:41]json parsed OK: [14:13:41]protocol is kg_v1.0 [14:13:41]action value=close_receipt [14:13:41]process_action close_receipt [14:13:41]cmd_close_receipt [14:13:41]MH_GetDate [14:13:41]Write to MH i2c: F0 00 00 48 1A 51 [14:13:41]Write i2c OK [14:13:41]MH_I2C_Read... [14:13:41]Read from MH i2c: F0 [14:13:41]MH_I2C_Read... [14:13:41]Read from MH i2c: F0 09 00 [14:13:41]MH_I2C_Read... [14:13:41]Read from MH i2c: F0 09 00 48 1A 00 97 87 1E 66 23 5B 8F 65 6E [14:13:41]GetLastDocTimeStamp 1713275947 [14:13:41]current date 1713276823 [14:13:41]FM_GetShiftState [14:13:41]SAM_PROTO_GetShiftState [14:13:41]wFMCommunicate request_size=4 [14:13:41]MH_SAM_APDU [14:13:41]CAPDU: 80 13 01 00 [14:13:41]Write to MH i2c: E2 08 00 49 1A 80 13 01 00 00 00 00 00 E0 [14:13:41]Write i2c OK [14:13:41]MH_I2C_Read... [14:13:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:41]Read from MH i2c: E2 [14:13:41]MH_I2C_Read... [14:13:41]Read from MH i2c: E2 0E 00 [14:13:41]MH_I2C_Read... [14:13:41]Read from MH i2c: E2 0E 00 49 1A 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 8E [14:13:41]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:13:41]wFMCommunicate OK [14:13:41]SAM_PROTO_GetShiftState done [14:13:41]FM_GetShiftState done [14:13:41]opened in 1713226843 [14:13:41]opened+sec_in_day 1713313243 [14:13:41]quantity*price = 21643 [14:13:41]sum+1 = 21644 [14:13:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 216.00 Внесено: 216.00 СДАЧА: 0.00 НСП 1% : 1.91 НДС 12% : 22.98 Наличными: 216.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 110 16.04.2024 14:13 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29836 ФПД: 75038783497973 1/tax-web-control/client/api/v1/ticket?date=20240416T141343&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29836&fm=75038783497973&tin=02508201610067®Number=0000138879044617&sum=21600 [14:13:42]StoreToDocumentArchive [14:13:42]shift 118 fd 29836 [14:13:42]save to /storage/0118/doc_00029836 [14:13:42]save last doc name /storage/0118/doc_00029836 to /storage/kkm_last_doc_name [14:13:42]save OK [14:13:42]Clear old archive folders... [14:13:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:42]tlvbuf is 00178E50 [14:13:42]SAM_PROTO_ClearQueue [14:13:42]wFMCommunicate request_size=4 [14:13:42]MH_SAM_APDU [14:13:42]CAPDU: 80 09 00 00 [14:13:42]Write to MH i2c: E2 08 00 56 1A 80 09 00 00 00 00 00 00 E2 [14:13:42]Write i2c OK [14:13:42]MH_I2C_Read... [14:13:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:42]Read from MH i2c: E2 [14:13:42]MH_I2C_Read... [14:13:42]Read from MH i2c: E2 03 00 [14:13:42]MH_I2C_Read... [14:13:42]Read from MH i2c: E2 03 00 56 1A 00 90 00 E4 [14:13:42]RAPDU: 90 00 [14:13:42]wFMCommunicate OK [14:13:42]SAM_PROTO_ClearQueue done [14:13:42]KKMCreateOFDPacket [14:13:42]OFDProtocolAddRootSTLVToBuf [14:13:42]FM_MakeSignedData [14:13:42]FM_MakeSignedData [14:13:42]SAM_PROTO_SignData [14:13:42]wFMCommunicate request_size=4 [14:13:42]MH_SAM_APDU [14:13:42]CAPDU: 80 0D 01 02 [14:13:42]Write to MH i2c: E2 08 00 57 1A 80 0D 01 02 00 00 00 00 EA [14:13:42]Write i2c OK [14:13:42]MH_I2C_Read... [14:13:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:42]Read from MH i2c: E2 [14:13:42]MH_I2C_Read... [14:13:42]Read from MH i2c: E2 03 00 [14:13:42]MH_I2C_Read... [14:13:42]Read from MH i2c: E2 03 00 57 1A 00 90 00 E5 [14:13:42]RAPDU: 90 00 [14:13:42]wFMCommunicate OK [14:13:42]wFMCommunicate request_size=255 [14:13:42]MH_SAM_APDU [14:13:42]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 0C 0D 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 8B 54 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 08 00 00 00 00 07 04 06 00 60 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 97 87 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 74 00 00 35 04 06 00 44 [14:13:42]Write to MH i2c: E2 02 01 58 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 0D 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 8B 54 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 08 00 00 00 00 07 04 06 00 60 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 97 87 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 74 00 00 35 04 06 00 44 00 00 65 [14:13:42]Write i2c OK [14:13:42]MH_I2C_Read... [14:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:43]Read from MH i2c: E2 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 03 00 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 03 00 58 1A 00 90 00 E6 [14:13:43]RAPDU: 90 00 [14:13:43]wFMCommunicate OK [14:13:43]wFMCommunicate request_size=10 [14:13:43]MH_SAM_APDU [14:13:43]CAPDU: 80 0D 02 02 05 3F 54 08 E6 F5 [14:13:43]Write to MH i2c: E2 0D 00 59 1A 80 0D 02 02 05 00 3F 54 08 E6 F5 00 00 6D [14:13:43]Write i2c OK [14:13:43]MH_I2C_Read... [14:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:43]Read from MH i2c: E2 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 03 00 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 03 00 59 1A 00 90 00 E7 [14:13:43]RAPDU: 90 00 [14:13:43]wFMCommunicate OK [14:13:43]wFMCommunicate request_size=4 [14:13:43]MH_SAM_APDU [14:13:43]CAPDU: 80 0D 03 02 [14:13:43]Write to MH i2c: E2 08 00 5A 1A 80 0D 03 02 00 00 00 00 EF [14:13:43]Write i2c OK [14:13:43]MH_I2C_Read... [14:13:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:43]Read from MH i2c: E2 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 0B 00 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 0B 00 5A 1A 00 45 AB 11 0E FC 57 B8 5C 90 00 66 [14:13:43]RAPDU: 45 AB 11 0E FC 57 B8 5C 90 00 [14:13:43]wFMCommunicate OK [14:13:43]SAM_PROTO_SignData done [14:13:43]FM_MakeSignedData done [14:13:43]CreateOFDProtocolMessage [14:13:43]wFMCommunicate request_size=4 [14:13:43]MH_SAM_APDU [14:13:43]CAPDU: 80 11 00 00 [14:13:43]Write to MH i2c: E2 08 00 5B 1A 80 11 00 00 00 00 00 00 EF [14:13:43]Write i2c OK [14:13:43]MH_I2C_Read... [14:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:43]Read from MH i2c: E2 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 17 00 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 17 00 5B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3E [14:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:13:43]wFMCommunicate OK [14:13:43]CreateOFDProtocolMessage done [14:13:43]OFDSenderStorePacket 29836 [14:13:43]StoreOFDPacket docnum=29836 [14:13:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FC 66 07 01 AE 9D 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 0C 0D 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 8B 54 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 08 00 00 00 00 07 04 06 00 60 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 97 87 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 74 00 00 35 04 06 00 44 3F 54 08 E6 F5 45 AB 11 0E FC 57 B8 5C [14:13:43]CheckFolder [14:13:43]dirname=/storage/ofd_packets [14:13:43]CheckFolder done [14:13:43]ProducePacketName [14:13:43]name=ofd_packets/00029836 [14:13:43]NVStorageSaveData ofd_packets/00029836 [14:13:43]File name is /storage/ofd_packets/00029836 [14:13:43]Write 301 bytes [14:13:43]NVStorageSaveData done [14:13:43]OFDSenderStorePacket done [14:13:43]KKMCreateOFDPacket done [14:13:43]NVStorageSaveData kkm_last_timestamp [14:13:43]File name is /storage/kkm_last_timestamp [14:13:43]Write 4 bytes [14:13:43]NVStorageSaveData done [14:13:43]ExternCall_PrintAddStr [14:13:43]wPrintStart [14:13:43]Write to MH i2c: 01 00 00 5C 1A 76 [14:13:43]Write i2c OK [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: 01 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: 01 07 00 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: 01 07 00 5C 1A 00 00 00 00 00 FF 0F 8B [14:13:43]RasterBufferAndPrint [14:13:43]line Счет N : (1)348349 [14:13:43]line ИНН: 02508201610067 [14:13:43]line Контрольно-Кассовый Чек [14:13:43]line ПРОДАЖА [14:13:43]line ТРК (МРК, ГНК) : 13 [14:13:43]line Товар: 2710124130 [14:13:43]line Аи-92-К-5 [14:13:43]line 3.340 * 64.80 [14:13:43]line = 216.43 [14:13:43]line НДС 12% НСП 1% [14:13:43]line > о реализуемом товаре [14:13:43]line ОКРУГЛЕНИЕ: -0.43 [14:13:43]line ИТОГО: 216.00 [14:13:43]line Внесено: 216.00 [14:13:43]line СДАЧА: 0.00 [14:13:43]line НСП 1% : 1.91 [14:13:43]line НДС 12% : 22.98 [14:13:43]line Наличными: 216.00 [14:13:43]line Безнал.: 0.00 [14:13:43]line Место: АЗС № 108 "Партнер Нефть" [14:13:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:13:43]line СНО: Общий режим [14:13:43]line Чек 110 16.04.2024 14:13 [14:13:43]line Смена: 118 ФФД: 1.0 [14:13:43]line ЗНМ: 0300000027 [14:13:43]line РНМ: 0000138879044617 [14:13:43]line Версия ККМ: 001 [14:13:43]line ФМ: 0000000000963154 [14:13:43]line ФД: 29836 [14:13:43]line ФПД: 75038783497973 [14:13:43]line 1/tax-web-control/client/api/v1/ticket?date=20240416T141343&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29836&fm=75038783497973&tin=02508201610067®Number=0000138879044617&sum=21600 [14:13:43]OFD Sender: Processing packet 29836 [packets to send 8, broken 7] [14:13:43]ProducePacketName [14:13:43]name=ofd_packets/00029836 [14:13:43]OFD Sender: To server: pG, [14:13:43]CommunicateWithHost lk.salyk.kg:30040 [14:13:43]ConnectInit lk.salyk.kg [14:13:43]written 0, free lines is 4095 [14:13:43]Connected sock=10 [14:13:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 FC 66 07 01 AE 9D 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 0C 0D 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 8B 54 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 08 00 00 00 00 07 04 06 00 60 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 97 87 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 74 00 00 35 04 06 00 44 3F 54 08 E6 F5 45 AB 11 0E FC 57 B8 5C [14:13:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FA C3 47 00 A4 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 74 00 00 F4 03 04 00 35 32 1E 66 B6 04 01 00 00 C4 3F E3 F4 A3 A8 C4 91 [14:13:43]CommunicateWithHost err = 0 [14:13:43]CheckOFDResponse [14:13:43]1017 (14) - 77093643461234 [14:13:43]1041 (16) - 0000000000963154 [14:13:43]1040 (4) - 29836 [14:13:43]1012 (4) - 16.04.2024 08:09 [14:13:43]1206 (1) - 0 [14:13:43]OFD Sender: Remove packet 29836 [14:13:43]ProducePacketName [14:13:43]name=ofd_packets/00029836 [14:13:43]NVStorageDeleteData [14:13:44]Write to MH i2c: 01 00 00 86 1A A0 [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: 01 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: 01 07 00 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: 01 07 00 86 1A 00 00 00 00 00 CB 0C 7E [14:13:44]RasterBufferAndPrint [14:13:44]line [14:13:44]line [14:13:44]line [14:13:44]line [14:13:44]line [14:13:44]written 0, free lines is 3280 [14:13:44]MH_Cut [14:13:44]Write to MH i2c: D1 01 00 8D 1A 01 79 [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: D1 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: D1 01 00 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: D1 01 00 8D 1A 00 78 [14:13:44]Write to MH i2c: 01 00 00 8E 1A A8 [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:44]OFD Sender: No OFD packet to send [14:13:44]*** Cut start [14:13:44]*** Partial cut [14:13:44]*** CUTSNS_PIN = 1 [14:13:44]*** CUTSNS_PIN = 0 [14:13:45]*** Brake cut motor [14:13:45]Read from MH i2c: 01 [14:13:45]MH_I2C_Read... [14:13:45]*** Stop cut motor [14:13:45]*** Cut end [14:13:45]Read from MH i2c: 01 07 00 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: 01 07 00 8E 1A 00 00 00 00 00 FF 0F BD [14:13:45]process_action close_receipt done [14:13:45]requested_data is exist [14:13:45]produce_requested_data [14:13:45]requested_item fm.sn is exist - process it [14:13:45]wFMCommunicate request_size=4 [14:13:45]MH_SAM_APDU [14:13:45]CAPDU: 80 11 00 00 [14:13:45]Write to MH i2c: E2 08 00 8F 1A 80 11 00 00 00 00 00 00 23 [14:13:45]Write i2c OK [14:13:45]MH_I2C_Read... [14:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:45]Read from MH i2c: E2 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: E2 17 00 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: E2 17 00 8F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 72 [14:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:13:45]wFMCommunicate OK [14:13:45]requested_item fd.num is exist - process it [14:13:45]SAM_PROTO_GetFieldsCounters [14:13:45]wFMCommunicate request_size=4 [14:13:45]MH_SAM_APDU [14:13:45]CAPDU: 80 13 00 00 [14:13:45]Write to MH i2c: E2 08 00 90 1A 80 13 00 00 00 00 00 00 26 [14:13:45]Write i2c OK [14:13:45]MH_I2C_Read... [14:13:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:45]Read from MH i2c: E2 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: E2 62 00 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: E2 62 00 90 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8C 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [14:13:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8C 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:45]wFMCommunicate OK [14:13:45]SAM_PROTO_GetFieldsCounters done [14:13:45]requested_item shift.num is exist - process it [14:13:45]requested_item shift.opened is exist - process it [14:13:45]req_shift_opened [14:13:45]FM_GetShiftState [14:13:45]SAM_PROTO_GetShiftState [14:13:45]wFMCommunicate request_size=4 [14:13:45]MH_SAM_APDU [14:13:45]CAPDU: 80 13 01 00 [14:13:45]Write to MH i2c: E2 08 00 91 1A 80 13 01 00 00 00 00 00 28 [14:13:45]Write i2c OK [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: E2 [14:13:45]MH_I2C_Read... [14:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:45]Read from MH i2c: E2 0E 00 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: E2 0E 00 91 1A 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 D6 [14:13:45]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:13:45]wFMCommunicate OK [14:13:45]SAM_PROTO_GetShiftState done [14:13:45]FM_GetShiftState done [14:13:45]req_shift_opened done [14:13:45]requested_item shift.open_date is exist - process it [14:13:45]req_shift_open_date [14:13:45]req_shift_open_date done [14:13:45]produce_requested_data done [14:13:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29836,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [14:13:45]process_action_free close_receipt [14:13:45]json_value_free [14:13:45]json_value_free done [14:13:45]process_json_proto returns [14:13:45]Send response to host [14:13:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29836,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [14:13:45]free response buf [14:13:45]execute_script done [14:13:45]execute_script returns [14:13:45]free content buf [14:13:45]Sock 9.Close socket [14:13:45]Sock 9.Thread stoped [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:53]accept exits with 7 [14:18:53]New connection [14:18:53]New thread 3067133284 created [14:18:53]Thread 3067276644 joined [14:18:53]Waiting for new connection... [14:18:53] Sock 7.Parse request [14:18:53]Sock 7.Check first char [14:18:53]Sock 7.First char is OK [14:18:53]request: POST /json_proto HTTP/1.0 [14:18:53]Method: POST [14:18:53]URL: /json_proto [14:18:53]Method is POST - this is cgi request [14:18:53]url: /json_proto [14:18:53]query_string will be loaded in cgi processing [14:18:53]execute_cgi json_proto POST (null) [14:18:53]execute_cgi path=json_proto method=POST [14:18:53]POST find Content-Length [14:18:53]Host: 172.17.33.3:8080 [14:18:53]Content-Length: 1204 [14:18:53]Content-Type: application/json [14:18:53] [14:18:53]POST finish read [14:18:53]Found Content-Length = 1204 [14:18:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348350\u000A16.04.2024 14:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 68.590 x 72.90\u000A\u0418\u0422\u041E\u0413: 5000.21\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68982\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:53]execute_script... [14:18:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348350\u000A16.04.2024 14:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 68.590 x 72.90\u000A\u0418\u0422\u041E\u0413: 5000.21\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68982\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:53]POST & json_proto [14:18:53]process_json_proto [14:18:53]json parsed OK: [14:18:53]protocol is kg_v1.0 [14:18:53]action value=print_text [14:18:53]process_action print_text [14:18:53]cmd_print_text [14:18:53]ExternCall_PrintAddStr [14:18:53]wPrintStart [14:18:53]Write to MH i2c: 01 00 00 92 1A AC [14:18:53]Write i2c OK [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: 01 [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: 01 07 00 [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: 01 07 00 92 1A 00 00 00 00 00 FF 0F C1 [14:18:53]RasterBufferAndPrint [14:18:53]line *****ТОВАРНЫЙ ЧЕК***** [14:18:53]line АЗС 108 [14:18:53]line Партнер нефть [14:18:53]line 02508201610067 [14:18:53]line Кассир : Шадыканова Ж. [14:18:53]line Счет N : (1)348350 [14:18:53]line 16.04.2024 14:00 [14:18:53]line ПРОДАЖА [14:18:53]line ТРК (МРК, ГНК): 51 [14:18:53]line Вид ГСМ : 2710194210 [14:18:53]line ДТ-К-5 [14:18:53]line 68.590 x 72.90 [14:18:53]line ИТОГ: 5000.21 [14:18:53]line Тип оплаты: Талоны: Топливная Карта [14:18:53]line 68982 [14:18:53]line ______________________ [14:18:53]line (подпись) [14:18:53]written 0, free lines is 4095 [14:18:53]Write to MH i2c: 01 00 00 A7 1A C1 [14:18:53]Write i2c OK [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: 01 [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: 01 07 00 [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: 01 07 00 A7 1A 00 00 00 00 00 F4 0D C9 [14:18:53]RasterBufferAndPrint [14:18:53]line [14:18:53]line [14:18:53]line [14:18:53]line [14:18:53]line [14:18:53]written 0, free lines is 3574 [14:18:53]MH_Cut [14:18:53]Write to MH i2c: D1 01 00 AE 1A 01 9A [14:18:53]Write i2c OK [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: D1 [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: D1 01 00 [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: D1 01 00 AE 1A 00 99 [14:18:53]Write to MH i2c: 01 00 00 AF 1A C9 [14:18:53]Write i2c OK [14:18:53]MH_I2C_Read... [14:18:53]*** Cut start [14:18:53]*** Partial cut [14:18:53]*** CUTSNS_PIN = 1 [14:18:53]*** CUTSNS_PIN = 0 [14:18:54]*** Brake cut motor [14:18:54]Read from MH i2c: 01 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: 01 07 00 [14:18:54]MH_I2C_Read... [14:18:54]*** Stop cut motor [14:18:54]*** Cut end [14:18:54]Read from MH i2c: 01 07 00 AF 1A 00 00 00 00 00 FF 0F DE [14:18:54]process_action print_text done [14:18:54]requested_data is exist [14:18:54]produce_requested_data [14:18:54]requested_item fm.sn is exist - process it [14:18:54]wFMCommunicate request_size=4 [14:18:54]MH_SAM_APDU [14:18:54]CAPDU: 80 11 00 00 [14:18:54]Write to MH i2c: E2 08 00 B0 1A 80 11 00 00 00 00 00 00 44 [14:18:54]Write i2c OK [14:18:54]MH_I2C_Read... [14:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:54]Read from MH i2c: E2 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: E2 17 00 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: E2 17 00 B0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 93 [14:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:18:54]wFMCommunicate OK [14:18:54]requested_item fd.num is exist - process it [14:18:54]SAM_PROTO_GetFieldsCounters [14:18:54]wFMCommunicate request_size=4 [14:18:54]MH_SAM_APDU [14:18:54]CAPDU: 80 13 00 00 [14:18:54]Write to MH i2c: E2 08 00 B1 1A 80 13 00 00 00 00 00 00 47 [14:18:54]Write i2c OK [14:18:54]MH_I2C_Read... [14:18:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:54]Read from MH i2c: E2 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: E2 62 00 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: E2 62 00 B1 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8C 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [14:18:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8C 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:54]wFMCommunicate OK [14:18:54]SAM_PROTO_GetFieldsCounters done [14:18:54]requested_item shift.num is exist - process it [14:18:54]requested_item shift.opened is exist - process it [14:18:54]req_shift_opened [14:18:54]FM_GetShiftState [14:18:54]SAM_PROTO_GetShiftState [14:18:54]wFMCommunicate request_size=4 [14:18:54]MH_SAM_APDU [14:18:54]CAPDU: 80 13 01 00 [14:18:54]Write to MH i2c: E2 08 00 B2 1A 80 13 01 00 00 00 00 00 49 [14:18:54]Write i2c OK [14:18:54]MH_I2C_Read... [14:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:54]Read from MH i2c: E2 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: E2 0E 00 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: E2 0E 00 B2 1A 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 F7 [14:18:54]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:18:54]wFMCommunicate OK [14:18:54]SAM_PROTO_GetShiftState done [14:18:54]FM_GetShiftState done [14:18:54]req_shift_opened done [14:18:54]requested_item shift.open_date is exist - process it [14:18:54]req_shift_open_date [14:18:54]req_shift_open_date done [14:18:54]produce_requested_data done [14:18:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29836,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [14:18:54]process_action_free print_text [14:18:54]json_value_free [14:18:54]json_value_free done [14:18:54]process_json_proto returns [14:18:54]Send response to host [14:18:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29836,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [14:18:54]free response buf [14:18:54]execute_script done [14:18:54]execute_script returns [14:18:54]free content buf [14:18:54]Sock 7.Close socket [14:18:54]Sock 7.Thread stoped [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:06]accept exits with 9 [14:19:06]New connection [14:19:06]New thread 3067276644 created [14:19:06]Thread 3067133284 joined [14:19:06]Waiting for new connection... [14:19:06] Sock 9.Parse request [14:19:06]Sock 9.Check first char [14:19:06]Sock 9.First char is OK [14:19:06]request: POST /json_proto HTTP/1.0 [14:19:06]Method: POST [14:19:06]URL: /json_proto [14:19:06]Method is POST - this is cgi request [14:19:06]url: /json_proto [14:19:06]query_string will be loaded in cgi processing [14:19:06]execute_cgi json_proto POST (null) [14:19:06]execute_cgi path=json_proto method=POST [14:19:06]POST find Content-Length [14:19:06]Host: 172.17.33.3:8080 [14:19:06]Content-Length: 677 [14:19:06]Content-Type: application/json [14:19:06] [14:19:06]POST finish read [14:19:06]Found Content-Length = 677 [14:19:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 2.010, "sum" : 130.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:06]execute_script... [14:19: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)348352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 2.010, "sum" : 130.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:06]POST & json_proto [14:19:06]process_json_proto [14:19:06]json parsed OK: [14:19:06]protocol is kg_v1.0 [14:19:06]action value=close_receipt [14:19:06]process_action close_receipt [14:19:06]cmd_close_receipt [14:19:06]MH_GetDate [14:19:06]Write to MH i2c: F0 00 00 B3 1A BC [14:19:06]Write i2c OK [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: F0 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: F0 09 00 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: F0 09 00 B3 1A 00 DC 88 1E 66 23 5B 8F 65 1F [14:19:06]GetLastDocTimeStamp 1713276823 [14:19:06]current date 1713277148 [14:19:06]FM_GetShiftState [14:19:06]SAM_PROTO_GetShiftState [14:19:06]wFMCommunicate request_size=4 [14:19:06]MH_SAM_APDU [14:19:06]CAPDU: 80 13 01 00 [14:19:06]Write to MH i2c: E2 08 00 B4 1A 80 13 01 00 00 00 00 00 4B [14:19:06]Write i2c OK [14:19:06]MH_I2C_Read... [14:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:06]Read from MH i2c: E2 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 0E 00 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 0E 00 B4 1A 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 F9 [14:19:06]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:19:06]wFMCommunicate OK [14:19:06]SAM_PROTO_GetShiftState done [14:19:06]FM_GetShiftState done [14:19:06]opened in 1713226843 [14:19:06]opened+sec_in_day 1713313243 [14:19:06]quantity*price = 13024 [14:19:06]sum+1 = 13026 [14:19:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.15 НДС 12% : 13.83 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 111 16.04.2024 14:19 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29837 ФПД: 27769892184002 1/tax-web-control/client/api/v1/ticket?date=20240416T141908&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29837&fm=27769892184002&tin=02508201610067®Number=0000138879044617&sum=13000 [14:19:07]StoreToDocumentArchive [14:19:07]shift 118 fd 29837 [14:19:07]save to /storage/0118/doc_00029837 [14:19:07]save last doc name /storage/0118/doc_00029837 to /storage/kkm_last_doc_name [14:19:07]save OK [14:19:07]Clear old archive folders... [14:19:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:19:07]tlvbuf is 00208010 [14:19:07]SAM_PROTO_ClearQueue [14:19:07]wFMCommunicate request_size=4 [14:19:07]MH_SAM_APDU [14:19:07]CAPDU: 80 09 00 00 [14:19:07]Write to MH i2c: E2 08 00 C1 1A 80 09 00 00 00 00 00 00 4D [14:19:07]Write i2c OK [14:19:07]MH_I2C_Read... [14:19:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:07]Read from MH i2c: E2 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 03 00 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 03 00 C1 1A 00 90 00 4F [14:19:07]RAPDU: 90 00 [14:19:07]wFMCommunicate OK [14:19:07]SAM_PROTO_ClearQueue done [14:19:07]KKMCreateOFDPacket [14:19:07]OFDProtocolAddRootSTLVToBuf [14:19:07]FM_MakeSignedData [14:19:07]FM_MakeSignedData [14:19:07]SAM_PROTO_SignData [14:19:07]wFMCommunicate request_size=4 [14:19:07]MH_SAM_APDU [14:19:07]CAPDU: 80 0D 01 02 [14:19:07]Write to MH i2c: E2 08 00 C2 1A 80 0D 01 02 00 00 00 00 55 [14:19:07]Write i2c OK [14:19:07]MH_I2C_Read... [14:19:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:07]Read from MH i2c: E2 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 03 00 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 03 00 C2 1A 00 90 00 50 [14:19:07]RAPDU: 90 00 [14:19:07]wFMCommunicate OK [14:19:07]wFMCommunicate request_size=255 [14:19:07]MH_SAM_APDU [14:19: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 07 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 E1 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 67 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 6F 00 00 00 F4 03 04 00 DC 88 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 74 00 00 35 04 06 00 19 [14:19:07]Write to MH i2c: E2 02 01 C3 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 07 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 E1 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 67 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 6F 00 00 00 F4 03 04 00 DC 88 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 74 00 00 35 04 06 00 19 00 00 93 [14:19:07]Write i2c OK [14:19:07]MH_I2C_Read... [14:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:07]Read from MH i2c: E2 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 03 00 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 03 00 C3 1A 00 90 00 51 [14:19:07]RAPDU: 90 00 [14:19:07]wFMCommunicate OK [14:19:07]wFMCommunicate request_size=10 [14:19:07]MH_SAM_APDU [14:19:07]CAPDU: 80 0D 02 02 05 41 AE 8F 1F C2 [14:19:07]Write to MH i2c: E2 0D 00 C4 1A 80 0D 02 02 05 00 41 AE 8F 1F C2 00 00 C1 [14:19:07]Write i2c OK [14:19:07]MH_I2C_Read... [14:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:07]Read from MH i2c: E2 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 03 00 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 03 00 C4 1A 00 90 00 52 [14:19:07]RAPDU: 90 00 [14:19:07]wFMCommunicate OK [14:19:07]wFMCommunicate request_size=4 [14:19:07]MH_SAM_APDU [14:19:07]CAPDU: 80 0D 03 02 [14:19:07]Write to MH i2c: E2 08 00 C5 1A 80 0D 03 02 00 00 00 00 5A [14:19:07]Write i2c OK [14:19:07]MH_I2C_Read... [14:19:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:07]Read from MH i2c: E2 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 0B 00 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 0B 00 C5 1A 00 56 B6 F1 C3 1C E1 B5 16 90 00 E3 [14:19:07]RAPDU: 56 B6 F1 C3 1C E1 B5 16 90 00 [14:19:07]wFMCommunicate OK [14:19:07]SAM_PROTO_SignData done [14:19:07]FM_MakeSignedData done [14:19:07]CreateOFDProtocolMessage [14:19:07]wFMCommunicate request_size=4 [14:19:07]MH_SAM_APDU [14:19:07]CAPDU: 80 11 00 00 [14:19:07]Write to MH i2c: E2 08 00 C6 1A 80 11 00 00 00 00 00 00 5A [14:19:07]Write i2c OK [14:19:07]MH_I2C_Read... [14:19:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:07]Read from MH i2c: E2 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 17 00 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 17 00 C6 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A9 [14:19:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:19:07]wFMCommunicate OK [14:19:07]CreateOFDProtocolMessage done [14:19:07]OFDSenderStorePacket 29837 [14:19:07]StoreOFDPacket docnum=29837 [14:19:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6B FB 07 01 0A C5 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 DA 07 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 E1 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 67 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 6F 00 00 00 F4 03 04 00 DC 88 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 74 00 00 35 04 06 00 19 41 AE 8F 1F C2 56 B6 F1 C3 1C E1 B5 16 [14:19:07]CheckFolder [14:19:07]dirname=/storage/ofd_packets [14:19:07]CheckFolder done [14:19:07]ProducePacketName [14:19:07]name=ofd_packets/00029837 [14:19:07]NVStorageSaveData ofd_packets/00029837 [14:19:07]File name is /storage/ofd_packets/00029837 [14:19:07]Write 301 bytes [14:19:07]NVStorageSaveData done [14:19:07]OFDSenderStorePacket done [14:19:07]KKMCreateOFDPacket done [14:19:07]NVStorageSaveData kkm_last_timestamp [14:19:07]File name is /storage/kkm_last_timestamp [14:19:07]Write 4 bytes [14:19:07]NVStorageSaveData done [14:19:07]ExternCall_PrintAddStr [14:19:07]wPrintStart [14:19:07]Write to MH i2c: 01 00 00 C7 1A E1 [14:19:07]Write i2c OK [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: 01 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: 01 07 00 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: 01 07 00 C7 1A 00 00 00 00 00 FF 0F F6 [14:19:07]RasterBufferAndPrint [14:19:07]line Счет N : (1)348352 [14:19:07]line ИНН: 02508201610067 [14:19:07]line Контрольно-Кассовый Чек [14:19:07]line ПРОДАЖА [14:19:07]line ТРК (МРК, ГНК) : 23 [14:19:07]line Товар: 2710124130 [14:19:07]line Аи-92-К-5 [14:19:07]line 2.010 * 64.80 [14:19:07]line = 130.25 [14:19:07]line НДС 12% НСП 1% [14:19:07]line > о реализуемом товаре [14:19:07]line ОКРУГЛЕНИЕ: -0.25 [14:19:07]line ИТОГО: 130.00 [14:19:07]line Внесено: 130.00 [14:19:07]line СДАЧА: 0.00 [14:19:07]line НСП 1% : 1.15 [14:19:07]line НДС 12% : 13.83 [14:19:07]line Наличными: 130.00 [14:19:07]line Безнал.: 0.00 [14:19:07]line Место: АЗС № 108 "Партнер Нефть" [14:19:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:19:07]line СНО: Общий режим [14:19:07]line Чек 111 16.04.2024 14:19 [14:19:07]line Смена: 118 ФФД: 1.0 [14:19:07]line ЗНМ: 0300000027 [14:19:07]line РНМ: 0000138879044617 [14:19:07]line Версия ККМ: 001 [14:19:07]line ФМ: 0000000000963154 [14:19:07]line ФД: 29837 [14:19:08]line ФПД: 27769892184002 [14:19:08]line 1/tax-web-control/client/api/v1/ticket?date=20240416T141908&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29837&fm=27769892184002&tin=02508201610067®Number=0000138879044617&sum=13000 [14:19:08]OFD Sender: Processing packet 29837 [packets to send 8, broken 7] [14:19:08]ProducePacketName [14:19:08]name=ofd_packets/00029837 [14:19:08]OFD Sender: To server: pG, [14:19:08]CommunicateWithHost lk.salyk.kg:30040 [14:19:08]ConnectInit lk.salyk.kg [14:19:08]written 0, free lines is 4095 [14:19:08]Connected sock=10 [14:19:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6B FB 07 01 0A C5 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 DA 07 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 E1 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 67 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 6F 00 00 00 F4 03 04 00 DC 88 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 74 00 00 35 04 06 00 19 41 AE 8F 1F C2 56 B6 F1 C3 1C E1 B5 16 [14:19:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CE A2 47 00 DD B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 74 00 00 F4 03 04 00 7A 33 1E 66 B6 04 01 00 00 79 24 9E 82 59 54 48 1B [14:19:08]CommunicateWithHost err = 0 [14:19:08]CheckOFDResponse [14:19:08]1017 (14) - 77093643461234 [14:19:08]1041 (16) - 0000000000963154 [14:19:08]1040 (4) - 29837 [14:19:08]1012 (4) - 16.04.2024 08:14 [14:19:08]1206 (1) - 0 [14:19:08]OFD Sender: Remove packet 29837 [14:19:08]ProducePacketName [14:19:08]name=ofd_packets/00029837 [14:19:08]NVStorageDeleteData [14:19:08]Write to MH i2c: 01 00 00 F1 1A 0B [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 07 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 07 00 F1 1A 00 00 00 00 00 B8 0C D6 [14:19:08]RasterBufferAndPrint [14:19:08]line [14:19:08]line [14:19:08]line [14:19:08]line [14:19:08]line [14:19:08]written 0, free lines is 3260 [14:19:08]MH_Cut [14:19:08]Write to MH i2c: D1 01 00 F8 1A 01 E4 [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: D1 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: D1 01 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: D1 01 00 F8 1A 00 E3 [14:19:08]Write to MH i2c: 01 00 00 F9 1A 13 [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:09]OFD Sender: No OFD packet to send [14:19:09]*** Cut start [14:19:09]*** Partial cut [14:19:09]*** CUTSNS_PIN = 1 [14:19:09]*** CUTSNS_PIN = 0 [14:19:09]*** Brake cut motor [14:19:10]Read from MH i2c: 01 [14:19:10]MH_I2C_Read... [14:19:10]*** Stop cut motor [14:19:10]*** Cut end [14:19:10]Read from MH i2c: 01 07 00 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: 01 07 00 F9 1A 00 00 00 00 00 FF 0F 28 [14:19:10]process_action close_receipt done [14:19:10]requested_data is exist [14:19:10]produce_requested_data [14:19:10]requested_item fm.sn is exist - process it [14:19:10]wFMCommunicate request_size=4 [14:19:10]MH_SAM_APDU [14:19:10]CAPDU: 80 11 00 00 [14:19:10]Write to MH i2c: E2 08 00 FA 1A 80 11 00 00 00 00 00 00 8E [14:19:10]Write i2c OK [14:19:10]MH_I2C_Read... [14:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:10]Read from MH i2c: E2 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 17 00 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 17 00 FA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DD [14:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:19:10]wFMCommunicate OK [14:19:10]requested_item fd.num is exist - process it [14:19:10]SAM_PROTO_GetFieldsCounters [14:19:10]wFMCommunicate request_size=4 [14:19:10]MH_SAM_APDU [14:19:10]CAPDU: 80 13 00 00 [14:19:10]Write to MH i2c: E2 08 00 FB 1A 80 13 00 00 00 00 00 00 91 [14:19:10]Write i2c OK [14:19:10]MH_I2C_Read... [14:19:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:10]Read from MH i2c: E2 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 62 00 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 62 00 FB 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8D 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [14:19:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8D 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:10]wFMCommunicate OK [14:19:10]SAM_PROTO_GetFieldsCounters done [14:19:10]requested_item shift.num is exist - process it [14:19:10]requested_item shift.opened is exist - process it [14:19:10]req_shift_opened [14:19:10]FM_GetShiftState [14:19:10]SAM_PROTO_GetShiftState [14:19:10]wFMCommunicate request_size=4 [14:19:10]MH_SAM_APDU [14:19:10]CAPDU: 80 13 01 00 [14:19:10]Write to MH i2c: E2 08 00 FC 1A 80 13 01 00 00 00 00 00 93 [14:19:10]Write i2c OK [14:19:10]MH_I2C_Read... [14:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:10]Read from MH i2c: E2 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 0E 00 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 0E 00 FC 1A 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 41 [14:19:10]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:19:10]wFMCommunicate OK [14:19:10]SAM_PROTO_GetShiftState done [14:19:10]FM_GetShiftState done [14:19:10]req_shift_opened done [14:19:10]requested_item shift.open_date is exist - process it [14:19:10]req_shift_open_date [14:19:10]req_shift_open_date done [14:19:10]produce_requested_data done [14:19:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29837,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [14:19:10]process_action_free close_receipt [14:19:10]json_value_free [14:19:10]json_value_free done [14:19:10]process_json_proto returns [14:19:10]Send response to host [14:19:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29837,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [14:19:10]free response buf [14:19:10]execute_script done [14:19:10]execute_script returns [14:19:10]free content buf [14:19:10]Sock 9.Close socket [14:19:10]Sock 9.Thread stoped [14:19:14]OFD Sender: No OFD packet to send [14:19:15]accept exits with 7 [14:19:15]New connection [14:19:15]New thread 3067133284 created [14:19:15]Thread 3067276644 joined [14:19:15]Waiting for new connection... [14:19:15] Sock 7.Parse request [14:19:15]Sock 7.Check first char [14:19:15]Sock 7.First char is OK [14:19:15]request: POST /json_proto HTTP/1.0 [14:19:15]Method: POST [14:19:15]URL: /json_proto [14:19:15]Method is POST - this is cgi request [14:19:15]url: /json_proto [14:19:15]query_string will be loaded in cgi processing [14:19:15]execute_cgi json_proto POST (null) [14:19:15]execute_cgi path=json_proto method=POST [14:19:15]POST find Content-Length [14:19:15]Host: 172.17.33.3:8080 [14:19:15]Content-Length: 671 [14:19:15]Content-Type: application/json [14:19:15] [14:19:15]POST finish read [14:19:15]Found Content-Length = 671 [14:19:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 13.230, "sum" : 870.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 870.00, "total" : 870.00, "payments": [ { "type": 0, "sum" : 870.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:15]execute_script... [14:19:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 13.230, "sum" : 870.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 870.00, "total" : 870.00, "payments": [ { "type": 0, "sum" : 870.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:15]POST & json_proto [14:19:15]process_json_proto [14:19:15]json parsed OK: [14:19:15]protocol is kg_v1.0 [14:19:15]action value=close_receipt [14:19:15]process_action close_receipt [14:19:15]cmd_close_receipt [14:19:15]MH_GetDate [14:19:15]Write to MH i2c: F0 00 00 FD 1A 06 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: F0 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: F0 09 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: F0 09 00 FD 1A 00 E5 88 1E 66 23 5B 8F 65 72 [14:19:15]GetLastDocTimeStamp 1713277148 [14:19:15]current date 1713277157 [14:19:15]FM_GetShiftState [14:19:15]SAM_PROTO_GetShiftState [14:19:15]wFMCommunicate request_size=4 [14:19:15]MH_SAM_APDU [14:19:15]CAPDU: 80 13 01 00 [14:19:15]Write to MH i2c: E2 08 00 FE 1A 80 13 01 00 00 00 00 00 95 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:15]Read from MH i2c: E2 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 0E 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 0E 00 FE 1A 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 43 [14:19:15]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:19:15]wFMCommunicate OK [14:19:15]SAM_PROTO_GetShiftState done [14:19:15]FM_GetShiftState done [14:19:15]opened in 1713226843 [14:19:15]opened+sec_in_day 1713313243 [14:19:15]quantity*price = 87053 [14:19:15]sum+1 = 87054 [14:19:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 870.00 Внесено: 870.00 СДАЧА: 0.00 НСП 1% : 7.70 НДС 12% : 92.45 Наличными: 870.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 112 16.04.2024 14:19 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29838 ФПД: 165251283881099 1/tax-web-control/client/api/v1/ticket?date=20240416T141917&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29838&fm=165251283881099&tin=02508201610067®Number=0000138879044617&sum=87000 [14:19:16]StoreToDocumentArchive [14:19:16]shift 118 fd 29838 [14:19:16]save to /storage/0118/doc_00029838 [14:19:16]save last doc name /storage/0118/doc_00029838 to /storage/kkm_last_doc_name [14:19:16]save OK [14:19:16]Clear old archive folders... [14:19:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:19:16]tlvbuf is 00212880 [14:19:16]SAM_PROTO_ClearQueue [14:19:16]wFMCommunicate request_size=4 [14:19:16]MH_SAM_APDU [14:19:16]CAPDU: 80 09 00 00 [14:19:16]Write to MH i2c: E2 08 00 0B 1B 80 09 00 00 00 00 00 00 98 [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:16]Read from MH i2c: E2 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 0B 1B 00 90 00 9A [14:19:16]RAPDU: 90 00 [14:19:16]wFMCommunicate OK [14:19:16]SAM_PROTO_ClearQueue done [14:19:16]KKMCreateOFDPacket [14:19:16]OFDProtocolAddRootSTLVToBuf [14:19:16]FM_MakeSignedData [14:19:16]FM_MakeSignedData [14:19:16]SAM_PROTO_SignData [14:19:16]wFMCommunicate request_size=4 [14:19:16]MH_SAM_APDU [14:19:16]CAPDU: 80 0D 01 02 [14:19:16]Write to MH i2c: E2 08 00 0C 1B 80 0D 01 02 00 00 00 00 A0 [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:16]Read from MH i2c: E2 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 0C 1B 00 90 00 9B [14:19:16]RAPDU: 90 00 [14:19:16]wFMCommunicate OK [14:19:16]wFMCommunicate request_size=255 [14:19:16]MH_SAM_APDU [14:19:16]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 33 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0D 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 24 00 00 00 00 07 04 06 00 D8 53 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 E5 88 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8E 74 00 00 35 04 06 00 [14:19:16]Write to MH i2c: E2 02 01 0D 1B 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 33 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0D 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 24 00 00 00 00 07 04 06 00 D8 53 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 E5 88 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8E 74 00 00 35 04 06 00 00 00 F8 [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:16]Read from MH i2c: E2 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 0D 1B 00 90 00 9C [14:19:16]RAPDU: 90 00 [14:19:16]wFMCommunicate OK [14:19:16]wFMCommunicate request_size=11 [14:19:16]MH_SAM_APDU [14:19:16]CAPDU: 80 0D 02 02 06 96 4B 90 13 0C 8B [14:19:16]Write to MH i2c: E2 0E 00 0E 1B 80 0D 02 02 06 00 96 4B 90 13 0C 8B 00 00 CA [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:16]Read from MH i2c: E2 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 03 00 0E 1B 00 90 00 9D [14:19:16]RAPDU: 90 00 [14:19:16]wFMCommunicate OK [14:19:16]wFMCommunicate request_size=4 [14:19:16]MH_SAM_APDU [14:19:16]CAPDU: 80 0D 03 02 [14:19:16]Write to MH i2c: E2 08 00 0F 1B 80 0D 03 02 00 00 00 00 A5 [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:16]Read from MH i2c: E2 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 0B 00 [14:19:16]MH_I2C_Read... [14:19:16]Read from MH i2c: E2 0B 00 0F 1B 00 B3 41 B6 50 A4 19 0D 12 90 00 7C [14:19:16]RAPDU: B3 41 B6 50 A4 19 0D 12 90 00 [14:19:16]wFMCommunicate OK [14:19:16]SAM_PROTO_SignData done [14:19:16]FM_MakeSignedData done [14:19:16]CreateOFDProtocolMessage [14:19:16]wFMCommunicate request_size=4 [14:19:16]MH_SAM_APDU [14:19:16]CAPDU: 80 11 00 00 [14:19:16]Write to MH i2c: E2 08 00 10 1B 80 11 00 00 00 00 00 00 A5 [14:19:16]Write i2c OK [14:19:16]MH_I2C_Read... [14:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:17]Read from MH i2c: E2 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 17 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 17 00 10 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F4 [14:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:19:17]wFMCommunicate OK [14:19:17]CreateOFDProtocolMessage done [14:19:17]OFDSenderStorePacket 29838 [14:19:17]StoreOFDPacket docnum=29838 [14:19:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 54 36 08 01 45 77 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 33 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0D 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 24 00 00 00 00 07 04 06 00 D8 53 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 E5 88 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8E 74 00 00 35 04 06 00 96 4B 90 13 0C 8B B3 41 B6 50 A4 19 0D 12 [14:19:17]CheckFolder [14:19:17]dirname=/storage/ofd_packets [14:19:17]CheckFolder done [14:19:17]ProducePacketName [14:19:17]name=ofd_packets/00029838 [14:19:17]NVStorageSaveData ofd_packets/00029838 [14:19:17]File name is /storage/ofd_packets/00029838 [14:19:17]Write 302 bytes [14:19:17]NVStorageSaveData done [14:19:17]OFDSenderStorePacket done [14:19:17]KKMCreateOFDPacket done [14:19:17]NVStorageSaveData kkm_last_timestamp [14:19:17]File name is /storage/kkm_last_timestamp [14:19:17]Write 4 bytes [14:19:17]NVStorageSaveData done [14:19:17]ExternCall_PrintAddStr [14:19:17]wPrintStart [14:19:17]Write to MH i2c: 01 00 00 11 1B 2C [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: 01 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: 01 07 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: 01 07 00 11 1B 00 00 00 00 00 FF 0F 41 [14:19:17]RasterBufferAndPrint [14:19:17]line Счет N : (1)348351 [14:19:17]line ИНН: 02508201610067 [14:19:17]line Контрольно-Кассовый Чек [14:19:17]line ПРОДАЖА [14:19:17]line ТРК (МРК, ГНК) : 41 [14:19:17]line Товар: 2710124130 [14:19:17]line SUPER-92-К-5 [14:19:17]line 13.230 * 65.80 [14:19:17]line = 870.53 [14:19:17]line НДС 12% НСП 1% [14:19:17]line > о реализуемом товаре [14:19:17]line ОКРУГЛЕНИЕ: -0.53 [14:19:17]line ИТОГО: 870.00 [14:19:17]line Внесено: 870.00 [14:19:17]line СДАЧА: 0.00 [14:19:17]line НСП 1% : 7.70 [14:19:17]line НДС 12% : 92.45 [14:19:17]line Наличными: 870.00 [14:19:17]line Безнал.: 0.00 [14:19:17]line Место: АЗС № 108 "Партнер Нефть" [14:19:17]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:19:17]line СНО: Общий режим [14:19:17]line Чек 112 16.04.2024 14:19 [14:19:17]line Смена: 118 ФФД: 1.0 [14:19:17]line ЗНМ: 0300000027 [14:19:17]line РНМ: 0000138879044617 [14:19:17]line Версия ККМ: 001 [14:19:17]line ФМ: 0000000000963154 [14:19:17]line ФД: 29838 [14:19:17]line ФПД: 165251283881099 [14:19:17]line 1/tax-web-control/client/api/v1/ticket?date=20240416T141917&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29838&fm=165251283881099&tin=02508201610067®Number=0000138879044617&sum=87000 [14:19:17]written 0, free lines is 4095 [14:19:17]OFD Sender: Processing packet 29838 [packets to send 8, broken 7] [14:19:17]ProducePacketName [14:19:17]name=ofd_packets/00029838 [14:19:17]OFD Sender: To server: pG, [14:19:17]CommunicateWithHost lk.salyk.kg:30040 [14:19:17]ConnectInit lk.salyk.kg [14:19:17]Connected sock=10 [14:19:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 54 36 08 01 45 77 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 33 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0D 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 24 00 00 00 00 07 04 06 00 D8 53 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 E5 88 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8E 74 00 00 35 04 06 00 96 4B 90 13 0C 8B B3 41 B6 50 A4 19 0D 12 [14:19:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 99 0C 47 00 A4 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 36 33 31 35 34 10 04 04 00 8E 74 00 00 F4 03 04 00 83 33 1E 66 B6 04 01 00 00 90 00 C6 A8 8E 71 0D 0F [14:19:17]CommunicateWithHost err = 0 [14:19:17]CheckOFDResponse [14:19:17]1017 (14) - 77093643461234 [14:19:17]1041 (16) - 0000000000963154 [14:19:17]1040 (4) - 29838 [14:19:17]1012 (4) - 16.04.2024 08:14 [14:19:17]1206 (1) - 0 [14:19:17]OFD Sender: Remove packet 29838 [14:19:17]ProducePacketName [14:19:17]name=ofd_packets/00029838 [14:19:17]NVStorageDeleteData [14:19:17]Write to MH i2c: 01 00 00 3B 1B 56 [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: 01 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: 01 07 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: 01 07 00 3B 1B 00 00 00 00 00 CA 0C 33 [14:19:17]RasterBufferAndPrint [14:19:17]line [14:19:17]line [14:19:17]line [14:19:17]line [14:19:17]line [14:19:17]written 0, free lines is 3280 [14:19:17]MH_Cut [14:19:17]Write to MH i2c: D1 01 00 42 1B 01 2F [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: D1 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: D1 01 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: D1 01 00 42 1B 00 2E [14:19:17]Write to MH i2c: 01 00 00 43 1B 5E [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]OFD Sender: No OFD packet to send [14:19:18]*** Cut start [14:19:18]*** Partial cut [14:19:18]*** CUTSNS_PIN = 1 [14:19:18]*** CUTSNS_PIN = 0 [14:19:18]*** Brake cut motor [14:19:18]Read from MH i2c: 01 [14:19:18]MH_I2C_Read... [14:19:18]*** Stop cut motor [14:19:18]*** Cut end [14:19:18]Read from MH i2c: 01 07 00 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: 01 07 00 43 1B 00 00 00 00 00 FF 0F 73 [14:19:18]process_action close_receipt done [14:19:18]requested_data is exist [14:19:18]produce_requested_data [14:19:18]requested_item fm.sn is exist - process it [14:19:18]wFMCommunicate request_size=4 [14:19:18]MH_SAM_APDU [14:19:18]CAPDU: 80 11 00 00 [14:19:18]Write to MH i2c: E2 08 00 44 1B 80 11 00 00 00 00 00 00 D9 [14:19:18]Write i2c OK [14:19:18]MH_I2C_Read... [14:19:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:18]Read from MH i2c: E2 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: E2 17 00 [14:19:18]MH_I2C_Read... [14:19:18]Read from MH i2c: E2 17 00 44 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 28 [14:19:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:19:18]wFMCommunicate OK [14:19:18]requested_item fd.num is exist - process it [14:19:18]SAM_PROTO_GetFieldsCounters [14:19:18]wFMCommunicate request_size=4 [14:19:18]MH_SAM_APDU [14:19:18]CAPDU: 80 13 00 00 [14:19:18]Write to MH i2c: E2 08 00 45 1B 80 13 00 00 00 00 00 00 DC [14:19:18]Write i2c OK [14:19:18]MH_I2C_Read... [14:19:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:19]Read from MH i2c: E2 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 62 00 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 62 00 45 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8E 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [14:19:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8E 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:19]wFMCommunicate OK [14:19:19]SAM_PROTO_GetFieldsCounters done [14:19:19]requested_item shift.num is exist - process it [14:19:19]requested_item shift.opened is exist - process it [14:19:19]req_shift_opened [14:19:19]FM_GetShiftState [14:19:19]SAM_PROTO_GetShiftState [14:19:19]wFMCommunicate request_size=4 [14:19:19]MH_SAM_APDU [14:19:19]CAPDU: 80 13 01 00 [14:19:19]Write to MH i2c: E2 08 00 46 1B 80 13 01 00 00 00 00 00 DE [14:19:19]Write i2c OK [14:19:19]MH_I2C_Read... [14:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:19]Read from MH i2c: E2 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 0E 00 [14:19:19]MH_I2C_Read... [14:19:19]Read from MH i2c: E2 0E 00 46 1B 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 8C [14:19:19]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:19:19]wFMCommunicate OK [14:19:19]SAM_PROTO_GetShiftState done [14:19:19]FM_GetShiftState done [14:19:19]req_shift_opened done [14:19:19]requested_item shift.open_date is exist - process it [14:19:19]req_shift_open_date [14:19:19]req_shift_open_date done [14:19:19]produce_requested_data done [14:19:19]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29838,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [14:19:19]process_action_free close_receipt [14:19:19]json_value_free [14:19:19]json_value_free done [14:19:19]process_json_proto returns [14:19:19]Send response to host [14:19:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29838,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [14:19:19]free response buf [14:19:19]execute_script done [14:19:19]execute_script returns [14:19:19]free content buf [14:19:19]Sock 7.Close socket [14:19:19]Sock 7.Thread stoped [14:19:22]OFD Sender: No OFD packet to send [14:19:27]OFD Sender: No OFD packet to send [14:19:32]OFD Sender: No OFD packet to send [14:19:37]OFD Sender: No OFD packet to send [14:19:42]OFD Sender: No OFD packet to send [14:19:47]OFD Sender: No OFD packet to send [14:19:52]OFD Sender: No OFD packet to send [14:19:57]OFD Sender: No OFD packet to send [14:20:02]OFD Sender: No OFD packet to send [14:20:07]OFD Sender: No OFD packet to send [14:20:12]OFD Sender: No OFD packet to send [14:20:17]OFD Sender: No OFD packet to send [14:20:22]OFD Sender: No OFD packet to send [14:20:27]OFD Sender: No OFD packet to send [14:20:32]OFD Sender: No OFD packet to send [14:20:37]OFD Sender: No OFD packet to send [14:20:42]OFD Sender: No OFD packet to send [14:20:47]OFD Sender: No OFD packet to send [14:20:52]OFD Sender: No OFD packet to send [14:20:57]OFD Sender: No OFD packet to send [14:21:02]OFD Sender: No OFD packet to send [14:21:07]OFD Sender: No OFD packet to send [14:21:12]OFD Sender: No OFD packet to send [14:21:17]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:57]accept exits with 9 [14:22:57]New connection [14:22:57]New thread 3067276644 created [14:22:57]Thread 3067133284 joined [14:22:57]Waiting for new connection... [14:22:57] Sock 9.Parse request [14:22:57]Sock 9.Check first char [14:22:57]Sock 9.First char is OK [14:22:57]request: POST /json_proto HTTP/1.0 [14:22:57]Method: POST [14:22:57]URL: /json_proto [14:22:57]Method is POST - this is cgi request [14:22:57]url: /json_proto [14:22:57]query_string will be loaded in cgi processing [14:22:57]execute_cgi json_proto POST (null) [14:22:57]execute_cgi path=json_proto method=POST [14:22:57]POST find Content-Length [14:22:57]Host: 172.17.33.3:8080 [14:22:57]Content-Length: 819 [14:22:57]Content-Type: application/json [14:22:57] [14:22:57]POST finish read [14:22:57]Found Content-Length = 819 [14:22:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:57]execute_script... [14:22:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 15.440, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:57]POST & json_proto [14:22:57]process_json_proto [14:22:57]json parsed OK: [14:22:57]protocol is kg_v1.0 [14:22:57]action value=close_receipt [14:22:57]process_action close_receipt [14:22:57]cmd_close_receipt [14:22:57]MH_GetDate [14:22:57]Write to MH i2c: F0 00 00 47 1B 51 [14:22:57]Write i2c OK [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: F0 [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: F0 09 00 [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: F0 09 00 47 1B 00 C3 89 1E 66 23 5B 8F 65 9C [14:22:57]GetLastDocTimeStamp 1713277157 [14:22:57]current date 1713277379 [14:22:57]FM_GetShiftState [14:22:57]SAM_PROTO_GetShiftState [14:22:57]wFMCommunicate request_size=4 [14:22:57]MH_SAM_APDU [14:22:57]CAPDU: 80 13 01 00 [14:22:57]Write to MH i2c: E2 08 00 48 1B 80 13 01 00 00 00 00 00 E0 [14:22:57]Write i2c OK [14:22:57]MH_I2C_Read... [14:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:57]Read from MH i2c: E2 [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: E2 0E 00 [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: E2 0E 00 48 1B 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 8E [14:22:57]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:22:57]wFMCommunicate OK [14:22:57]SAM_PROTO_GetShiftState done [14:22:57]FM_GetShiftState done [14:22:57]opened in 1713226843 [14:22:57]opened+sec_in_day 1713313243 [14:22:57]quantity*price = 100051 [14:22:57]sum+1 = 100052 [14:22:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 113 16.04.2024 14:22 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29839 ФПД: 277275627834119 1/tax-web-control/client/api/v1/ticket?date=20240416T142259&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29839&fm=277275627834119&tin=02508201610067®Number=0000138879044617&sum=100051 [14:22:58]StoreToDocumentArchive [14:22:58]shift 118 fd 29839 [14:22:58]save to /storage/0118/doc_00029839 [14:22:58]save last doc name /storage/0118/doc_00029839 to /storage/kkm_last_doc_name [14:22:58]save OK [14:22:58]Clear old archive folders... [14:22:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:22:58]tlvbuf is 0018B680 [14:22:58]SAM_PROTO_ClearQueue [14:22:58]wFMCommunicate request_size=4 [14:22:58]MH_SAM_APDU [14:22:58]CAPDU: 80 09 00 00 [14:22:58]Write to MH i2c: E2 08 00 55 1B 80 09 00 00 00 00 00 00 E2 [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:58]Read from MH i2c: E2 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 03 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 03 00 55 1B 00 90 00 E4 [14:22:58]RAPDU: 90 00 [14:22:58]wFMCommunicate OK [14:22:58]SAM_PROTO_ClearQueue done [14:22:58]KKMCreateOFDPacket [14:22:58]OFDProtocolAddRootSTLVToBuf [14:22:58]FM_MakeSignedData [14:22:58]FM_MakeSignedData [14:22:58]SAM_PROTO_SignData [14:22:58]wFMCommunicate request_size=4 [14:22:58]MH_SAM_APDU [14:22:58]CAPDU: 80 0D 01 02 [14:22:58]Write to MH i2c: E2 08 00 56 1B 80 0D 01 02 00 00 00 00 EA [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:58]Read from MH i2c: E2 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 03 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 03 00 56 1B 00 90 00 E5 [14:22:58]RAPDU: 90 00 [14:22:58]wFMCommunicate OK [14:22:58]wFMCommunicate request_size=255 [14:22:58]MH_SAM_APDU [14:22:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 C3 89 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 74 00 00 35 04 06 00 FC [14:22:58]Write to MH i2c: E2 02 01 57 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 C3 89 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 74 00 00 35 04 06 00 FC 00 00 EC [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:59]Read from MH i2c: E2 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 03 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 03 00 57 1B 00 90 00 E6 [14:22:59]RAPDU: 90 00 [14:22:59]wFMCommunicate OK [14:22:59]wFMCommunicate request_size=10 [14:22:59]MH_SAM_APDU [14:22:59]CAPDU: 80 0D 02 02 05 2E 43 4D 4B 07 [14:22:59]Write to MH i2c: E2 0D 00 58 1B 80 0D 02 02 05 00 2E 43 4D 4B 07 00 00 07 [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:59]Read from MH i2c: E2 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 03 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 03 00 58 1B 00 90 00 E7 [14:22:59]RAPDU: 90 00 [14:22:59]wFMCommunicate OK [14:22:59]wFMCommunicate request_size=4 [14:22:59]MH_SAM_APDU [14:22:59]CAPDU: 80 0D 03 02 [14:22:59]Write to MH i2c: E2 08 00 59 1B 80 0D 03 02 00 00 00 00 EF [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:59]Read from MH i2c: E2 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 0B 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 0B 00 59 1B 00 C2 9F 01 99 90 1E 0F 3E 90 00 E6 [14:22:59]RAPDU: C2 9F 01 99 90 1E 0F 3E 90 00 [14:22:59]wFMCommunicate OK [14:22:59]SAM_PROTO_SignData done [14:22:59]FM_MakeSignedData done [14:22:59]CreateOFDProtocolMessage [14:22:59]wFMCommunicate request_size=4 [14:22:59]MH_SAM_APDU [14:22:59]CAPDU: 80 11 00 00 [14:22:59]Write to MH i2c: E2 08 00 5A 1B 80 11 00 00 00 00 00 00 EF [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:59]Read from MH i2c: E2 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 17 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 17 00 5A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3E [14:22:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:22:59]wFMCommunicate OK [14:22:59]CreateOFDProtocolMessage done [14:22:59]OFDSenderStorePacket 29839 [14:22:59]StoreOFDPacket docnum=29839 [14:22:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 69 0F 07 01 AE B6 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 C3 89 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 74 00 00 35 04 06 00 FC 2E 43 4D 4B 07 C2 9F 01 99 90 1E 0F 3E [14:22:59]CheckFolder [14:22:59]dirname=/storage/ofd_packets [14:22:59]CheckFolder done [14:22:59]ProducePacketName [14:22:59]name=ofd_packets/00029839 [14:22:59]NVStorageSaveData ofd_packets/00029839 [14:22:59]File name is /storage/ofd_packets/00029839 [14:22:59]Write 301 bytes [14:22:59]NVStorageSaveData done [14:22:59]OFDSenderStorePacket done [14:22:59]KKMCreateOFDPacket done [14:22:59]NVStorageSaveData kkm_last_timestamp [14:22:59]File name is /storage/kkm_last_timestamp [14:22:59]Write 4 bytes [14:22:59]NVStorageSaveData done [14:22:59]ExternCall_PrintAddStr [14:22:59]wPrintStart [14:22:59]Write to MH i2c: 01 00 00 5B 1B 76 [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: 01 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: 01 07 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: 01 07 00 5B 1B 00 00 00 00 00 FF 0F 8B [14:22:59]RasterBufferAndPrint [14:22:59]line Счет N : (1)348353 [14:22:59]line ИНН: 02508201610067 [14:22:59]line Контрольно-Кассовый Чек [14:22:59]line ПРОДАЖА [14:22:59]line ТРК (МРК, ГНК) : 13 [14:22:59]line Товар: 2710124130 [14:22:59]line Аи-92-К-5 [14:22:59]line 15.440 * 64.80 [14:22:59]line = 1000.51 [14:22:59]line НДС 12% НСП 1% [14:22:59]line > о реализуемом товаре [14:22:59]line ИТОГО: 1000.51 [14:22:59]line НСП 1% : 8.85 [14:22:59]line НДС 12% : 106.25 [14:22:59]line Наличными: 0.00 [14:22:59]line Безнал.: 1000.51 [14:22:59]line Место: АЗС № 108 "Партнер Нефть" [14:22:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:22:59]line СНО: Общий режим [14:22:59]line Чек 113 16.04.2024 14:22 [14:22:59]line Смена: 118 ФФД: 1.0 [14:22:59]line ЗНМ: 0300000027 [14:22:59]line РНМ: 0000138879044617 [14:22:59]line Версия ККМ: 001 [14:22:59]line Платежная система: Бакай Банк [14:22:59]line ФМ: 0000000000963154 [14:22:59]line ФД: 29839 [14:22:59]line ФПД: 277275627834119 [14:22:59]line 1/tax-web-control/client/api/v1/ticket?date=20240416T142259&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29839&fm=277275627834119&tin=02508201610067®Number=0000138879044617&sum=100051 [14:22:59]OFD Sender: Processing packet 29839 [packets to send 8, broken 7] [14:22:59]ProducePacketName [14:22:59]name=ofd_packets/00029839 [14:22:59]OFD Sender: To server: pG, [14:22:59]CommunicateWithHost lk.salyk.kg:30040 [14:22:59]ConnectInit lk.salyk.kg [14:22:59]written 0, free lines is 4095 [14:22:59]Connected sock=10 [14:22:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 69 0F 07 01 AE B6 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 50 3C 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 C3 89 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 74 00 00 35 04 06 00 FC 2E 43 4D 4B 07 C2 9F 01 99 90 1E 0F 3E [14:22:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5C 12 47 00 CE 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 36 33 31 35 34 10 04 04 00 8F 74 00 00 F4 03 04 00 61 34 1E 66 B6 04 01 00 00 3E 39 B8 50 81 79 0B 77 [14:22:59]CommunicateWithHost err = 0 [14:22:59]CheckOFDResponse [14:22:59]1017 (14) - 77093643461234 [14:22:59]1041 (16) - 0000000000963154 [14:22:59]1040 (4) - 29839 [14:22:59]1012 (4) - 16.04.2024 08:18 [14:22:59]1206 (1) - 0 [14:22:59]OFD Sender: Remove packet 29839 [14:22:59]ProducePacketName [14:22:59]name=ofd_packets/00029839 [14:22:59]NVStorageDeleteData [14:22:59]Write to MH i2c: 01 00 00 84 1B 9F [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: 01 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: 01 07 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: 01 07 00 84 1B 00 00 00 00 00 D2 0C 84 [14:22:59]RasterBufferAndPrint [14:22:59]line [14:22:59]line [14:22:59]line [14:22:59]line [14:22:59]line [14:22:59]written 0, free lines is 3286 [14:22:59]MH_Cut [14:22:59]Write to MH i2c: D1 01 00 8B 1B 01 78 [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: D1 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: D1 01 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: D1 01 00 8B 1B 00 77 [14:22:59]Write to MH i2c: 01 00 00 8C 1B A7 [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:23:00]OFD Sender: No OFD packet to send [14:23:00]*** Cut start [14:23:00]*** Partial cut [14:23:00]*** CUTSNS_PIN = 1 [14:23:00]*** CUTSNS_PIN = 0 [14:23:01]*** Brake cut motor [14:23:01]Read from MH i2c: 01 [14:23:01]MH_I2C_Read... [14:23:01]*** Stop cut motor [14:23:01]*** Cut end [14:23:01]Read from MH i2c: 01 07 00 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: 01 07 00 8C 1B 00 00 00 00 00 FF 0F BC [14:23:01]process_action close_receipt done [14:23:01]requested_data is exist [14:23:01]produce_requested_data [14:23:01]requested_item fm.sn is exist - process it [14:23:01]wFMCommunicate request_size=4 [14:23:01]MH_SAM_APDU [14:23:01]CAPDU: 80 11 00 00 [14:23:01]Write to MH i2c: E2 08 00 8D 1B 80 11 00 00 00 00 00 00 22 [14:23:01]Write i2c OK [14:23:01]MH_I2C_Read... [14:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:01]Read from MH i2c: E2 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 17 00 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 17 00 8D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 71 [14:23:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:23:01]wFMCommunicate OK [14:23:01]requested_item fd.num is exist - process it [14:23:01]SAM_PROTO_GetFieldsCounters [14:23:01]wFMCommunicate request_size=4 [14:23:01]MH_SAM_APDU [14:23:01]CAPDU: 80 13 00 00 [14:23:01]Write to MH i2c: E2 08 00 8E 1B 80 13 00 00 00 00 00 00 25 [14:23:01]Write i2c OK [14:23:01]MH_I2C_Read... [14:23:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:01]Read from MH i2c: E2 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 62 00 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 62 00 8E 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8F 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [14:23:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8F 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:01]wFMCommunicate OK [14:23:01]SAM_PROTO_GetFieldsCounters done [14:23:01]requested_item shift.num is exist - process it [14:23:01]requested_item shift.opened is exist - process it [14:23:01]req_shift_opened [14:23:01]FM_GetShiftState [14:23:01]SAM_PROTO_GetShiftState [14:23:01]wFMCommunicate request_size=4 [14:23:01]MH_SAM_APDU [14:23:01]CAPDU: 80 13 01 00 [14:23:01]Write to MH i2c: E2 08 00 8F 1B 80 13 01 00 00 00 00 00 27 [14:23:01]Write i2c OK [14:23:01]MH_I2C_Read... [14:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:01]Read from MH i2c: E2 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 0E 00 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 0E 00 8F 1B 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 D5 [14:23:01]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:23:01]wFMCommunicate OK [14:23:01]SAM_PROTO_GetShiftState done [14:23:01]FM_GetShiftState done [14:23:01]req_shift_opened done [14:23:01]requested_item shift.open_date is exist - process it [14:23:01]req_shift_open_date [14:23:01]req_shift_open_date done [14:23:01]produce_requested_data done [14:23:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29839,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [14:23:01]process_action_free close_receipt [14:23:01]json_value_free [14:23:01]json_value_free done [14:23:01]process_json_proto returns [14:23:01]Send response to host [14:23:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29839,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [14:23:01]free response buf [14:23:01]execute_script done [14:23:01]execute_script returns [14:23:01]free content buf [14:23:01]Sock 9.Close socket [14:23:01]Sock 9.Thread stoped [14:23:01]accept exits with 7 [14:23:01]New connection [14:23:01]New thread 3067133284 created [14:23:01]Thread 3067276644 joined [14:23:01]Waiting for new connection... [14:23:01] Sock 7.Parse request [14:23:01]Sock 7.Check first char [14:23:01]Sock 7.First char is OK [14:23:01]request: POST /json_proto HTTP/1.0 [14:23:01]Method: POST [14:23:01]URL: /json_proto [14:23:01]Method is POST - this is cgi request [14:23:01]url: /json_proto [14:23:01]query_string will be loaded in cgi processing [14:23:01]execute_cgi json_proto POST (null) [14:23:01]execute_cgi path=json_proto method=POST [14:23:01]POST find Content-Length [14:23:01]Host: 172.17.33.3:8080 [14:23:01]Content-Length: 819 [14:23:01]Content-Type: application/json [14:23:01] [14:23:01]POST finish read [14:23:01]Found Content-Length = 819 [14:23:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:01]execute_script... [14:23:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:01]POST & json_proto [14:23:01]process_json_proto [14:23:01]json parsed OK: [14:23:01]protocol is kg_v1.0 [14:23:01]action value=close_receipt [14:23:01]process_action close_receipt [14:23:01]cmd_close_receipt [14:23:01]MH_GetDate [14:23:01]Write to MH i2c: F0 00 00 90 1B 9A [14:23:01]Write i2c OK [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: F0 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: F0 09 00 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: F0 09 00 90 1B 00 C8 89 1E 66 23 5B 8F 65 EA [14:23:01]GetLastDocTimeStamp 1713277379 [14:23:01]current date 1713277384 [14:23:01]FM_GetShiftState [14:23:01]SAM_PROTO_GetShiftState [14:23:01]wFMCommunicate request_size=4 [14:23:01]MH_SAM_APDU [14:23:01]CAPDU: 80 13 01 00 [14:23:01]Write to MH i2c: E2 08 00 91 1B 80 13 01 00 00 00 00 00 29 [14:23:01]Write i2c OK [14:23:01]MH_I2C_Read... [14:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:01]Read from MH i2c: E2 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 0E 00 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 0E 00 91 1B 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 D7 [14:23:01]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:23:01]wFMCommunicate OK [14:23:01]SAM_PROTO_GetShiftState done [14:23:01]FM_GetShiftState done [14:23:01]opened in 1713226843 [14:23:01]opened+sec_in_day 1713313243 [14:23:01]quantity*price = 100018 [14:23:01]sum+1 = 100020 [14:23:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 114 16.04.2024 14:23 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29840 ФПД: 213847680459676 1/tax-web-control/client/api/v1/ticket?date=20240416T142304&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29840&fm=213847680459676&tin=02508201610067®Number=0000138879044617&sum=100019 [14:23:03]StoreToDocumentArchive [14:23:03]shift 118 fd 29840 [14:23:03]save to /storage/0118/doc_00029840 [14:23:03]save last doc name /storage/0118/doc_00029840 to /storage/kkm_last_doc_name [14:23:03]save OK [14:23:03]Clear old archive folders... [14:23:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:03]tlvbuf is 00207F50 [14:23:03]SAM_PROTO_ClearQueue [14:23:03]wFMCommunicate request_size=4 [14:23:03]MH_SAM_APDU [14:23:03]CAPDU: 80 09 00 00 [14:23:03]Write to MH i2c: E2 08 00 9E 1B 80 09 00 00 00 00 00 00 2B [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:03]Read from MH i2c: E2 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 03 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 03 00 9E 1B 00 90 00 2D [14:23:03]RAPDU: 90 00 [14:23:03]wFMCommunicate OK [14:23:03]SAM_PROTO_ClearQueue done [14:23:03]KKMCreateOFDPacket [14:23:03]OFDProtocolAddRootSTLVToBuf [14:23:03]FM_MakeSignedData [14:23:03]FM_MakeSignedData [14:23:03]SAM_PROTO_SignData [14:23:03]wFMCommunicate request_size=4 [14:23:03]MH_SAM_APDU [14:23:03]CAPDU: 80 0D 01 02 [14:23:03]Write to MH i2c: E2 08 00 9F 1B 80 0D 01 02 00 00 00 00 33 [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:03]Read from MH i2c: E2 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 03 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 03 00 9F 1B 00 90 00 2E [14:23:03]RAPDU: 90 00 [14:23:03]wFMCommunicate OK [14:23:03]wFMCommunicate request_size=255 [14:23:03]MH_SAM_APDU [14:23:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 C8 89 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 74 00 00 35 04 06 00 C2 [14:23:03]Write to MH i2c: E2 02 01 A0 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 C8 89 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 74 00 00 35 04 06 00 C2 00 00 10 [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:03]Read from MH i2c: E2 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 03 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 03 00 A0 1B 00 90 00 2F [14:23:03]RAPDU: 90 00 [14:23:03]wFMCommunicate OK [14:23:03]wFMCommunicate request_size=10 [14:23:03]MH_SAM_APDU [14:23:03]CAPDU: 80 0D 02 02 05 7E 4B 07 A3 9C [14:23:03]Write to MH i2c: E2 0D 00 A1 1B 80 0D 02 02 05 00 7E 4B 07 A3 9C 00 00 4F [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:03]Read from MH i2c: E2 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 03 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 03 00 A1 1B 00 90 00 30 [14:23:03]RAPDU: 90 00 [14:23:03]wFMCommunicate OK [14:23:03]wFMCommunicate request_size=4 [14:23:03]MH_SAM_APDU [14:23:03]CAPDU: 80 0D 03 02 [14:23:03]Write to MH i2c: E2 08 00 A2 1B 80 0D 03 02 00 00 00 00 38 [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:03]Read from MH i2c: E2 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 0B 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 0B 00 A2 1B 00 19 36 05 E3 06 22 88 83 90 00 A3 [14:23:04]RAPDU: 19 36 05 E3 06 22 88 83 90 00 [14:23:04]wFMCommunicate OK [14:23:04]SAM_PROTO_SignData done [14:23:04]FM_MakeSignedData done [14:23:04]CreateOFDProtocolMessage [14:23:04]wFMCommunicate request_size=4 [14:23:04]MH_SAM_APDU [14:23:04]CAPDU: 80 11 00 00 [14:23:04]Write to MH i2c: E2 08 00 A3 1B 80 11 00 00 00 00 00 00 38 [14:23:04]Write i2c OK [14:23:04]MH_I2C_Read... [14:23:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:04]Read from MH i2c: E2 [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: E2 17 00 [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: E2 17 00 A3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [14:23:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:23:04]wFMCommunicate OK [14:23:04]CreateOFDProtocolMessage done [14:23:04]OFDSenderStorePacket 29840 [14:23:04]StoreOFDPacket docnum=29840 [14:23:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 74 81 07 01 44 B2 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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 C8 89 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 74 00 00 35 04 06 00 C2 7E 4B 07 A3 9C 19 36 05 E3 06 22 88 83 [14:23:04]CheckFolder [14:23:04]dirname=/storage/ofd_packets [14:23:04]CheckFolder done [14:23:04]ProducePacketName [14:23:04]name=ofd_packets/00029840 [14:23:04]NVStorageSaveData ofd_packets/00029840 [14:23:04]File name is /storage/ofd_packets/00029840 [14:23:04]Write 301 bytes [14:23:04]NVStorageSaveData done [14:23:04]OFDSenderStorePacket done [14:23:04]KKMCreateOFDPacket done [14:23:04]NVStorageSaveData kkm_last_timestamp [14:23:04]File name is /storage/kkm_last_timestamp [14:23:04]Write 4 bytes [14:23:04]NVStorageSaveData done [14:23:04]ExternCall_PrintAddStr [14:23:04]wPrintStart [14:23:04]Write to MH i2c: 01 00 00 A4 1B BF [14:23:04]Write i2c OK [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: 01 [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: 01 07 00 [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: 01 07 00 A4 1B 00 00 00 00 00 FF 0F D4 [14:23:04]RasterBufferAndPrint [14:23:04]line Счет N : (1)348354 [14:23:04]line ИНН: 02508201610067 [14:23:04]line Контрольно-Кассовый Чек [14:23:04]line ПРОДАЖА [14:23:04]line ТРК (МРК, ГНК) : 33 [14:23:04]line Товар: 2710124500 [14:23:04]line Аи-95-К-5 [14:23:04]line 13.720 * 72.90 [14:23:04]line = 1000.19 [14:23:04]line НДС 12% НСП 1% [14:23:04]line > о реализуемом товаре [14:23:04]line ИТОГО: 1000.19 [14:23:04]line НСП 1% : 8.85 [14:23:04]line НДС 12% : 106.21 [14:23:04]line Наличными: 0.00 [14:23:04]line Безнал.: 1000.19 [14:23:04]line Место: АЗС № 108 "Партнер Нефть" [14:23:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:23:04]line СНО: Общий режим [14:23:04]line Чек 114 16.04.2024 14:23 [14:23:04]line Смена: 118 ФФД: 1.0 [14:23:04]line ЗНМ: 0300000027 [14:23:04]line РНМ: 0000138879044617 [14:23:04]line Версия ККМ: 001 [14:23:04]line Платежная система: Бакай Банк [14:23:04]line ФМ: 0000000000963154 [14:23:04]line ФД: 29840 [14:23:04]line ФПД: 213847680459676 [14:23:04]line 1/tax-web-control/client/api/v1/ticket?date=20240416T142304&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29840&fm=213847680459676&tin=02508201610067®Number=0000138879044617&sum=100019 [14:23:04]OFD Sender: Processing packet 29840 [packets to send 8, broken 7] [14:23:04]ProducePacketName [14:23:04]name=ofd_packets/00029840 [14:23:04]OFD Sender: To server: pG, [14:23:04]CommunicateWithHost lk.salyk.kg:30040 [14:23:04]ConnectInit lk.salyk.kg [14:23:04]written 0, free lines is 4095 [14:23:04]Connected sock=10 [14:23:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 74 81 07 01 44 B2 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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 C8 89 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 74 00 00 35 04 06 00 C2 7E 4B 07 A3 9C 19 36 05 E3 06 22 88 83 [14:23:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FA C0 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 36 33 31 35 34 10 04 04 00 90 74 00 00 F4 03 04 00 66 34 1E 66 B6 04 01 00 00 19 19 1B F9 98 2F 6C 94 [14:23:04]CommunicateWithHost err = 0 [14:23:04]CheckOFDResponse [14:23:04]1017 (14) - 77093643461234 [14:23:04]1041 (16) - 0000000000963154 [14:23:04]1040 (4) - 29840 [14:23:04]1012 (4) - 16.04.2024 08:18 [14:23:04]1206 (1) - 0 [14:23:04]OFD Sender: Remove packet 29840 [14:23:04]ProducePacketName [14:23:04]name=ofd_packets/00029840 [14:23:04]NVStorageDeleteData [14:23:04]Write to MH i2c: 01 00 00 CD 1B E8 [14:23:04]Write i2c OK [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: 01 [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: 01 07 00 [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: 01 07 00 CD 1B 00 00 00 00 00 DA 0C D5 [14:23:04]RasterBufferAndPrint [14:23:04]line [14:23:04]line [14:23:04]line [14:23:04]line [14:23:04]line [14:23:04]written 0, free lines is 3303 [14:23:04]MH_Cut [14:23:04]Write to MH i2c: D1 01 00 D4 1B 01 C1 [14:23:04]Write i2c OK [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: D1 [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: D1 01 00 [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: D1 01 00 D4 1B 00 C0 [14:23:04]Write to MH i2c: 01 00 00 D5 1B F0 [14:23:04]Write i2c OK [14:23:04]MH_I2C_Read... [14:23:05]OFD Sender: No OFD packet to send [14:23:05]*** Cut start [14:23:05]*** Partial cut [14:23:05]*** CUTSNS_PIN = 1 [14:23:05]*** CUTSNS_PIN = 0 [14:23:05]*** Brake cut motor [14:23:06]Read from MH i2c: 01 [14:23:06]MH_I2C_Read... [14:23:06]*** Stop cut motor [14:23:06]*** Cut end [14:23:06]Read from MH i2c: 01 07 00 [14:23:06]MH_I2C_Read... [14:23:06]Read from MH i2c: 01 07 00 D5 1B 00 00 00 00 00 FF 0F 05 [14:23:06]process_action close_receipt done [14:23:06]requested_data is exist [14:23:06]produce_requested_data [14:23:06]requested_item fm.sn is exist - process it [14:23:06]wFMCommunicate request_size=4 [14:23:06]MH_SAM_APDU [14:23:06]CAPDU: 80 11 00 00 [14:23:06]Write to MH i2c: E2 08 00 D6 1B 80 11 00 00 00 00 00 00 6B [14:23:06]Write i2c OK [14:23:06]MH_I2C_Read... [14:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:06]Read from MH i2c: E2 [14:23:06]MH_I2C_Read... [14:23:06]Read from MH i2c: E2 17 00 [14:23:06]MH_I2C_Read... [14:23:06]Read from MH i2c: E2 17 00 D6 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BA [14:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:23:06]wFMCommunicate OK [14:23:06]requested_item fd.num is exist - process it [14:23:06]SAM_PROTO_GetFieldsCounters [14:23:06]wFMCommunicate request_size=4 [14:23:06]MH_SAM_APDU [14:23:06]CAPDU: 80 13 00 00 [14:23:06]Write to MH i2c: E2 08 00 D7 1B 80 13 00 00 00 00 00 00 6E [14:23:06]Write i2c OK [14:23:06]MH_I2C_Read... [14:23:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:06]Read from MH i2c: E2 [14:23:06]MH_I2C_Read... [14:23:06]Read from MH i2c: E2 62 00 [14:23:06]MH_I2C_Read... [14:23:06]Read from MH i2c: E2 62 00 D7 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 90 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [14:23:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 90 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:06]wFMCommunicate OK [14:23:06]SAM_PROTO_GetFieldsCounters done [14:23:06]requested_item shift.num is exist - process it [14:23:06]requested_item shift.opened is exist - process it [14:23:06]req_shift_opened [14:23:06]FM_GetShiftState [14:23:06]SAM_PROTO_GetShiftState [14:23:06]wFMCommunicate request_size=4 [14:23:06]MH_SAM_APDU [14:23:06]CAPDU: 80 13 01 00 [14:23:06]Write to MH i2c: E2 08 00 D8 1B 80 13 01 00 00 00 00 00 70 [14:23:06]Write i2c OK [14:23:06]MH_I2C_Read... [14:23:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:06]Read from MH i2c: E2 [14:23:06]MH_I2C_Read... [14:23:06]Read from MH i2c: E2 0E 00 [14:23:06]MH_I2C_Read... [14:23:06]Read from MH i2c: E2 0E 00 D8 1B 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 1E [14:23:06]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:23:06]wFMCommunicate OK [14:23:06]SAM_PROTO_GetShiftState done [14:23:06]FM_GetShiftState done [14:23:06]req_shift_opened done [14:23:06]requested_item shift.open_date is exist - process it [14:23:06]req_shift_open_date [14:23:06]req_shift_open_date done [14:23:06]produce_requested_data done [14:23:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29840,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [14:23:06]process_action_free close_receipt [14:23:06]json_value_free [14:23:06]json_value_free done [14:23:06]process_json_proto returns [14:23:06]Send response to host [14:23:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29840,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [14:23:06]free response buf [14:23:06]execute_script done [14:23:06]execute_script returns [14:23:06]free content buf [14:23:06]Sock 7.Close socket [14:23:06]Sock 7.Thread stoped [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:25]accept exits with 9 [14:23:25]New connection [14:23:25]New thread 3067276644 created [14:23:25]Thread 3067133284 joined [14:23:25]Waiting for new connection... [14:23:25] Sock 9.Parse request [14:23:25]Sock 9.Check first char [14:23:25]Sock 9.First char is OK [14:23:25]request: POST /json_proto HTTP/1.0 [14:23:25]Method: POST [14:23:25]URL: /json_proto [14:23:25]Method is POST - this is cgi request [14:23:25]url: /json_proto [14:23:25]query_string will be loaded in cgi processing [14:23:25]execute_cgi json_proto POST (null) [14:23:25]execute_cgi path=json_proto method=POST [14:23:25]POST find Content-Length [14:23:25]Host: 172.17.33.3:8080 [14:23:25]Content-Length: 808 [14:23:25]Content-Type: application/json [14:23:25] [14:23:25]POST finish read [14:23:25]Found Content-Length = 808 [14:23:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 374.800, "sum" : 27322.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 27322.92 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:25]execute_script... [14:23:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 374.800, "sum" : 27322.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 27322.92 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:25]POST & json_proto [14:23:25]process_json_proto [14:23:25]json parsed OK: [14:23:25]protocol is kg_v1.0 [14:23:25]action value=close_receipt [14:23:25]process_action close_receipt [14:23:25]cmd_close_receipt [14:23:25]MH_GetDate [14:23:25]Write to MH i2c: F0 00 00 D9 1B E3 [14:23:25]Write i2c OK [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: F0 [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: F0 09 00 [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: F0 09 00 D9 1B 00 DF 89 1E 66 23 5B 8F 65 4A [14:23:25]GetLastDocTimeStamp 1713277384 [14:23:25]current date 1713277407 [14:23:25]FM_GetShiftState [14:23:25]SAM_PROTO_GetShiftState [14:23:25]wFMCommunicate request_size=4 [14:23:25]MH_SAM_APDU [14:23:25]CAPDU: 80 13 01 00 [14:23:25]Write to MH i2c: E2 08 00 DA 1B 80 13 01 00 00 00 00 00 72 [14:23:25]Write i2c OK [14:23:25]MH_I2C_Read... [14:23:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:25]Read from MH i2c: E2 [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: E2 0E 00 [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: E2 0E 00 DA 1B 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 20 [14:23:25]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:23:25]wFMCommunicate OK [14:23:25]SAM_PROTO_GetShiftState done [14:23:25]FM_GetShiftState done [14:23:25]opened in 1713226843 [14:23:25]opened+sec_in_day 1713313243 [14:23:25]quantity*price = 2732292 [14:23:25]sum+1 = 2732293 [14:23:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 27322.92 НСП 1% : 241.80 НДС 12% : 2901.55 Наличными: 0.00 Безнал.: 27322.92 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 115 16.04.2024 14:23 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29841 ФПД: 6016627746893 1/tax-web-control/client/api/v1/ticket?date=20240416T142327&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29841&fm=6016627746893&tin=02508201610067®Number=0000138879044617&sum=2732292 [14:23:26]StoreToDocumentArchive [14:23:26]shift 118 fd 29841 [14:23:26]save to /storage/0118/doc_00029841 [14:23:26]save last doc name /storage/0118/doc_00029841 to /storage/kkm_last_doc_name [14:23:26]save OK [14:23:26]Clear old archive folders... [14:23:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:23:26]tlvbuf is 0014EDB0 [14:23:26]SAM_PROTO_ClearQueue [14:23:26]wFMCommunicate request_size=4 [14:23:26]MH_SAM_APDU [14:23:26]CAPDU: 80 09 00 00 [14:23:26]Write to MH i2c: E2 08 00 E7 1B 80 09 00 00 00 00 00 00 74 [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:26]Read from MH i2c: E2 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 E7 1B 00 90 00 76 [14:23:26]RAPDU: 90 00 [14:23:26]wFMCommunicate OK [14:23:26]SAM_PROTO_ClearQueue done [14:23:26]KKMCreateOFDPacket [14:23:26]OFDProtocolAddRootSTLVToBuf [14:23:26]FM_MakeSignedData [14:23:26]FM_MakeSignedData [14:23:26]SAM_PROTO_SignData [14:23:26]wFMCommunicate request_size=4 [14:23:26]MH_SAM_APDU [14:23:26]CAPDU: 80 0D 01 02 [14:23:26]Write to MH i2c: E2 08 00 E8 1B 80 0D 01 02 00 00 00 00 7C [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:26]Read from MH i2c: E2 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 E8 1B 00 90 00 77 [14:23:26]RAPDU: 90 00 [14:23:26]wFMCommunicate OK [14:23:26]wFMCommunicate request_size=255 [14:23:26]MH_SAM_APDU [14:23:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 B8 05 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 04 B1 29 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 B1 29 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 5E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 6D 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 B1 29 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 DF 89 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 74 00 00 35 04 06 00 05 78 DA F5 [14:23:26]Write to MH i2c: E2 02 01 E9 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 B8 05 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 04 B1 29 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 B1 29 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 5E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 6D 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 B1 29 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 DF 89 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 74 00 00 35 04 06 00 05 78 DA F5 00 00 C7 [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:26]Read from MH i2c: E2 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 E9 1B 00 90 00 78 [14:23:26]RAPDU: 90 00 [14:23:26]wFMCommunicate OK [14:23:26]wFMCommunicate request_size=7 [14:23:26]MH_SAM_APDU [14:23:26]CAPDU: 80 0D 02 02 02 A8 4D [14:23:26]Write to MH i2c: E2 0A 00 EA 1B 80 0D 02 02 02 00 A8 4D 00 00 78 [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:26]Read from MH i2c: E2 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 EA 1B 00 90 00 79 [14:23:26]RAPDU: 90 00 [14:23:26]wFMCommunicate OK [14:23:26]wFMCommunicate request_size=4 [14:23:26]MH_SAM_APDU [14:23:26]CAPDU: 80 0D 03 02 [14:23:26]Write to MH i2c: E2 08 00 EB 1B 80 0D 03 02 00 00 00 00 81 [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:27]Read from MH i2c: E2 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 0B 00 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 0B 00 EB 1B 00 F2 4B 15 05 9F C8 F7 EF 90 00 26 [14:23:27]RAPDU: F2 4B 15 05 9F C8 F7 EF 90 00 [14:23:27]wFMCommunicate OK [14:23:27]SAM_PROTO_SignData done [14:23:27]FM_MakeSignedData done [14:23:27]CreateOFDProtocolMessage [14:23:27]wFMCommunicate request_size=4 [14:23:27]MH_SAM_APDU [14:23:27]CAPDU: 80 11 00 00 [14:23:27]Write to MH i2c: E2 08 00 EC 1B 80 11 00 00 00 00 00 00 81 [14:23:27]Write i2c OK [14:23:27]MH_I2C_Read... [14:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:27]Read from MH i2c: E2 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 17 00 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 17 00 EC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D0 [14:23:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:23:27]wFMCommunicate OK [14:23:27]CreateOFDProtocolMessage done [14:23:27]OFDSenderStorePacket 29841 [14:23:27]StoreOFDPacket docnum=29841 [14:23:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 FD 4A 04 01 61 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 B8 05 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 04 B1 29 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 B1 29 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 5E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 6D 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 B1 29 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 DF 89 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 74 00 00 35 04 06 00 05 78 DA F5 A8 4D F2 4B 15 05 9F C8 F7 EF [14:23:27]CheckFolder [14:23:27]dirname=/storage/ofd_packets [14:23:27]CheckFolder done [14:23:27]ProducePacketName [14:23:27]name=ofd_packets/00029841 [14:23:27]NVStorageSaveData ofd_packets/00029841 [14:23:27]File name is /storage/ofd_packets/00029841 [14:23:27]Write 298 bytes [14:23:27]NVStorageSaveData done [14:23:27]OFDSenderStorePacket done [14:23:27]KKMCreateOFDPacket done [14:23:27]NVStorageSaveData kkm_last_timestamp [14:23:27]File name is /storage/kkm_last_timestamp [14:23:27]Write 4 bytes [14:23:27]NVStorageSaveData done [14:23:27]ExternCall_PrintAddStr [14:23:27]wPrintStart [14:23:27]Write to MH i2c: 01 00 00 ED 1B 08 [14:23:27]Write i2c OK [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: 01 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: 01 07 00 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: 01 07 00 ED 1B 00 00 00 00 00 FF 0F 1D [14:23:27]RasterBufferAndPrint [14:23:27]line Счет N : (1)348347 [14:23:27]line ИНН: 02508201610067 [14:23:27]line Контрольно-Кассовый Чек [14:23:27]line ПРОДАЖА [14:23:27]line ТРК (МРК, ГНК) : 61 [14:23:27]line Товар: 2710194210 [14:23:27]line ДТ-К-5 [14:23:27]line 374.800 * 72.90 [14:23:27]line = 27322.92 [14:23:27]line НДС 12% НСП 1% [14:23:27]line > о реализуемом товаре [14:23:27]line ИТОГО: 27322.92 [14:23:27]line НСП 1% : 241.80 [14:23:27]line НДС 12% : 2901.55 [14:23:27]line Наличными: 0.00 [14:23:27]line Безнал.: 27322.92 [14:23:27]line Место: АЗС № 108 "Партнер Нефть" [14:23:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:23:27]line СНО: Общий режим [14:23:27]line Чек 115 16.04.2024 14:23 [14:23:27]line Смена: 118 ФФД: 1.0 [14:23:27]line ЗНМ: 0300000027 [14:23:27]line РНМ: 0000138879044617 [14:23:27]line Версия ККМ: 001 [14:23:27]line Платежная система: О! деньги [14:23:27]line ФМ: 0000000000963154 [14:23:27]line ФД: 29841 [14:23:27]line ФПД: 6016627746893 [14:23:27]line 1/tax-web-control/client/api/v1/ticket?date=20240416T142327&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29841&fm=6016627746893&tin=02508201610067®Number=0000138879044617&sum=2732292 [14:23:27]OFD Sender: Processing packet 29841 [packets to send 8, broken 7] [14:23:27]ProducePacketName [14:23:27]name=ofd_packets/00029841 [14:23:27]OFD Sender: To server: pG, [14:23:27]CommunicateWithHost lk.salyk.kg:30040 [14:23:27]ConnectInit lk.salyk.kg [14:23:27]written 0, free lines is 4095 [14:23:27]Connected sock=10 [14:23:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 FD 4A 04 01 61 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 B8 05 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 04 B1 29 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 B1 29 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 5E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 6D 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 B1 29 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 DF 89 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 74 00 00 35 04 06 00 05 78 DA F5 A8 4D F2 4B 15 05 9F C8 F7 EF [14:23:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 81 6C 47 00 D3 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 74 00 00 F4 03 04 00 7D 34 1E 66 B6 04 01 00 00 FD 3E E6 AD 2E 68 50 79 [14:23:27]CommunicateWithHost err = 0 [14:23:27]CheckOFDResponse [14:23:27]1017 (14) - 77093643461234 [14:23:27]1041 (16) - 0000000000963154 [14:23:27]1040 (4) - 29841 [14:23:27]1012 (4) - 16.04.2024 08:19 [14:23:27]1206 (1) - 0 [14:23:27]OFD Sender: Remove packet 29841 [14:23:27]ProducePacketName [14:23:27]name=ofd_packets/00029841 [14:23:27]NVStorageDeleteData [14:23:27]Write to MH i2c: 01 00 00 16 1C 32 [14:23:27]Write i2c OK [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: 01 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: 01 07 00 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: 01 07 00 16 1C 00 00 00 00 00 EF 0C 34 [14:23:27]RasterBufferAndPrint [14:23:27]line [14:23:27]line [14:23:27]line [14:23:27]line [14:23:27]line [14:23:27]written 0, free lines is 3319 [14:23:27]MH_Cut [14:23:27]Write to MH i2c: D1 01 00 1D 1C 01 0B [14:23:27]Write i2c OK [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: D1 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: D1 01 00 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: D1 01 00 1D 1C 00 0A [14:23:27]Write to MH i2c: 01 00 00 1E 1C 3A [14:23:27]Write i2c OK [14:23:27]MH_I2C_Read... [14:23:28]OFD Sender: No OFD packet to send [14:23:28]*** Cut start [14:23:28]*** Partial cut [14:23:28]*** CUTSNS_PIN = 1 [14:23:28]*** CUTSNS_PIN = 0 [14:23:28]*** Brake cut motor [14:23:29]Read from MH i2c: 01 [14:23:29]MH_I2C_Read... [14:23:29]*** Stop cut motor [14:23:29]*** Cut end [14:23:29]Read from MH i2c: 01 07 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: 01 07 00 1E 1C 00 00 00 00 00 FF 0F 4F [14:23:29]process_action close_receipt done [14:23:29]requested_data is exist [14:23:29]produce_requested_data [14:23:29]requested_item fm.sn is exist - process it [14:23:29]wFMCommunicate request_size=4 [14:23:29]MH_SAM_APDU [14:23:29]CAPDU: 80 11 00 00 [14:23:29]Write to MH i2c: E2 08 00 1F 1C 80 11 00 00 00 00 00 00 B5 [14:23:29]Write i2c OK [14:23:29]MH_I2C_Read... [14:23:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:29]Read from MH i2c: E2 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 17 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 17 00 1F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 04 [14:23:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:23:29]wFMCommunicate OK [14:23:29]requested_item fd.num is exist - process it [14:23:29]SAM_PROTO_GetFieldsCounters [14:23:29]wFMCommunicate request_size=4 [14:23:29]MH_SAM_APDU [14:23:29]CAPDU: 80 13 00 00 [14:23:29]Write to MH i2c: E2 08 00 20 1C 80 13 00 00 00 00 00 00 B8 [14:23:29]Write i2c OK [14:23:29]MH_I2C_Read... [14:23:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:29]Read from MH i2c: E2 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 62 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 62 00 20 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 91 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [14:23:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 91 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:29]wFMCommunicate OK [14:23:29]SAM_PROTO_GetFieldsCounters done [14:23:29]requested_item shift.num is exist - process it [14:23:29]requested_item shift.opened is exist - process it [14:23:29]req_shift_opened [14:23:29]FM_GetShiftState [14:23:29]SAM_PROTO_GetShiftState [14:23:29]wFMCommunicate request_size=4 [14:23:29]MH_SAM_APDU [14:23:29]CAPDU: 80 13 01 00 [14:23:29]Write to MH i2c: E2 08 00 21 1C 80 13 01 00 00 00 00 00 BA [14:23:29]Write i2c OK [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 [14:23:29]MH_I2C_Read... [14:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:29]Read from MH i2c: E2 0E 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 0E 00 21 1C 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 68 [14:23:29]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:23:29]wFMCommunicate OK [14:23:29]SAM_PROTO_GetShiftState done [14:23:29]FM_GetShiftState done [14:23:29]req_shift_opened done [14:23:29]requested_item shift.open_date is exist - process it [14:23:29]req_shift_open_date [14:23:29]req_shift_open_date done [14:23:29]produce_requested_data done [14:23:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29841,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [14:23:29]process_action_free close_receipt [14:23:29]json_value_free [14:23:29]json_value_free done [14:23:29]process_json_proto returns [14:23:29]Send response to host [14:23:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29841,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [14:23:29]free response buf [14:23:29]execute_script done [14:23:29]execute_script returns [14:23:29]free content buf [14:23:29]Sock 9.Close socket [14:23:29]Sock 9.Thread stoped [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:53]OFD Sender: No OFD packet to send [14:23:58]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:55]accept exits with 7 [14:25:55]New connection [14:25:55]New thread 3067133284 created [14:25:55]Thread 3067276644 joined [14:25:55]Waiting for new connection... [14:25:55] Sock 7.Parse request [14:25:55]Sock 7.Check first char [14:25:55]Sock 7.First char is OK [14:25:55]request: POST /json_proto HTTP/1.0 [14:25:55]Method: POST [14:25:55]URL: /json_proto [14:25:55]Method is POST - this is cgi request [14:25:55]url: /json_proto [14:25:55]query_string will be loaded in cgi processing [14:25:55]execute_cgi json_proto POST (null) [14:25:55]execute_cgi path=json_proto method=POST [14:25:55]POST find Content-Length [14:25:55]Host: 172.17.33.3:8080 [14:25:55]Content-Length: 843 [14:25:55]Content-Type: application/json [14:25:55] [14:25:55]POST finish read [14:25:55]Found Content-Length = 843 [14:25:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 32.940, "sum" : 2401.33, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2401.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:55]execute_script... [14:25:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.90, "quantity" : 32.940, "sum" : 2401.33, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2401.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:55]POST & json_proto [14:25:55]process_json_proto [14:25:55]json parsed OK: [14:25:55]protocol is kg_v1.0 [14:25:55]action value=close_receipt [14:25:55]process_action close_receipt [14:25:55]cmd_close_receipt [14:25:55]MH_GetDate [14:25:55]Write to MH i2c: F0 00 00 22 1C 2D [14:25:55]Write i2c OK [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: F0 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: F0 09 00 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: F0 09 00 22 1C 00 75 8A 1E 66 23 5B 8F 65 2B [14:25:55]GetLastDocTimeStamp 1713277407 [14:25:55]current date 1713277557 [14:25:55]FM_GetShiftState [14:25:55]SAM_PROTO_GetShiftState [14:25:55]wFMCommunicate request_size=4 [14:25:55]MH_SAM_APDU [14:25:55]CAPDU: 80 13 01 00 [14:25:55]Write to MH i2c: E2 08 00 23 1C 80 13 01 00 00 00 00 00 BC [14:25:55]Write i2c OK [14:25:55]MH_I2C_Read... [14:25:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:55]Read from MH i2c: E2 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 0E 00 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 0E 00 23 1C 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 6A [14:25:55]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:25:55]wFMCommunicate OK [14:25:55]SAM_PROTO_GetShiftState done [14:25:55]FM_GetShiftState done [14:25:55]opened in 1713226843 [14:25:55]opened+sec_in_day 1713313243 [14:25:55]quantity*price = 240132 [14:25:55]sum+1 = 240134 [14:25:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2401.33 НСП 1% : 21.25 НДС 12% : 255.01 Наличными: 0.00 Безнал.: 2401.33 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 116 16.04.2024 14:25 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29842 ФПД: 75068224714601 1/tax-web-control/client/api/v1/ticket?date=20240416T142557&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29842&fm=75068224714601&tin=02508201610067®Number=0000138879044617&sum=240133 [14:25:56]StoreToDocumentArchive [14:25:56]shift 118 fd 29842 [14:25:56]save to /storage/0118/doc_00029842 [14:25:56]save last doc name /storage/0118/doc_00029842 to /storage/kkm_last_doc_name [14:25:56]save OK [14:25:56]Clear old archive folders... [14:25:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:25:56]tlvbuf is 00171D60 [14:25:56]SAM_PROTO_ClearQueue [14:25:56]wFMCommunicate request_size=4 [14:25:56]MH_SAM_APDU [14:25:56]CAPDU: 80 09 00 00 [14:25:56]Write to MH i2c: E2 08 00 30 1C 80 09 00 00 00 00 00 00 BE [14:25:56]Write i2c OK [14:25:56]MH_I2C_Read... [14:25:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:56]Read from MH i2c: E2 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: E2 03 00 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: E2 03 00 30 1C 00 90 00 C0 [14:25:56]RAPDU: 90 00 [14:25:56]wFMCommunicate OK [14:25:56]SAM_PROTO_ClearQueue done [14:25:56]KKMCreateOFDPacket [14:25:56]OFDProtocolAddRootSTLVToBuf [14:25:56]FM_MakeSignedData [14:25:56]FM_MakeSignedData [14:25:56]SAM_PROTO_SignData [14:25:56]wFMCommunicate request_size=4 [14:25:56]MH_SAM_APDU [14:25:56]CAPDU: 80 0D 01 02 [14:25:56]Write to MH i2c: E2 08 00 31 1C 80 0D 01 02 00 00 00 00 C6 [14:25:56]Write i2c OK [14:25:56]MH_I2C_Read... [14:25:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:56]Read from MH i2c: E2 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: E2 03 00 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: E2 03 00 31 1C 00 90 00 C1 [14:25:56]RAPDU: 90 00 [14:25:56]wFMCommunicate OK [14:25:56]wFMCommunicate request_size=255 [14:25:56]MH_SAM_APDU [14:25:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 05 AA 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 AA 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 AA 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 75 8A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 74 00 00 35 04 06 00 44 [14:25:56]Write to MH i2c: E2 02 01 32 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 05 AA 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 AA 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 AA 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 75 8A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 74 00 00 35 04 06 00 44 00 00 D5 [14:25:56]Write i2c OK [14:25:56]MH_I2C_Read... [14:25:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:56]Read from MH i2c: E2 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: E2 03 00 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: E2 03 00 32 1C 00 90 00 C2 [14:25:56]RAPDU: 90 00 [14:25:56]wFMCommunicate OK [14:25:56]wFMCommunicate request_size=10 [14:25:56]MH_SAM_APDU [14:25:56]CAPDU: 80 0D 02 02 05 46 2E DE 37 69 [14:25:56]Write to MH i2c: E2 0D 00 33 1C 80 0D 02 02 05 00 46 2E DE 37 69 00 00 C5 [14:25:56]Write i2c OK [14:25:56]MH_I2C_Read... [14:25:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:56]Read from MH i2c: E2 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: E2 03 00 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: E2 03 00 33 1C 00 90 00 C3 [14:25:56]RAPDU: 90 00 [14:25:56]wFMCommunicate OK [14:25:56]wFMCommunicate request_size=4 [14:25:56]MH_SAM_APDU [14:25:56]CAPDU: 80 0D 03 02 [14:25:56]Write to MH i2c: E2 08 00 34 1C 80 0D 03 02 00 00 00 00 CB [14:25:56]Write i2c OK [14:25:56]MH_I2C_Read... [14:25:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:56]Read from MH i2c: E2 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: E2 0B 00 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: E2 0B 00 34 1C 00 A1 37 4A 84 3E 67 C0 B8 90 00 8F [14:25:56]RAPDU: A1 37 4A 84 3E 67 C0 B8 90 00 [14:25:56]wFMCommunicate OK [14:25:56]SAM_PROTO_SignData done [14:25:56]FM_MakeSignedData done [14:25:56]CreateOFDProtocolMessage [14:25:56]wFMCommunicate request_size=4 [14:25:56]MH_SAM_APDU [14:25:56]CAPDU: 80 11 00 00 [14:25:56]Write to MH i2c: E2 08 00 35 1C 80 11 00 00 00 00 00 00 CB [14:25:56]Write i2c OK [14:25:56]MH_I2C_Read... [14:25:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:57]Read from MH i2c: E2 [14:25:57]MH_I2C_Read... [14:25:57]Read from MH i2c: E2 17 00 [14:25:57]MH_I2C_Read... [14:25:57]Read from MH i2c: E2 17 00 35 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1A [14:25:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:25:57]wFMCommunicate OK [14:25:57]CreateOFDProtocolMessage done [14:25:57]OFDSenderStorePacket 29842 [14:25:57]StoreOFDPacket docnum=29842 [14:25:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 38 BA 07 01 7A 15 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 AC 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 05 AA 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 AA 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 AA 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 75 8A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 74 00 00 35 04 06 00 44 46 2E DE 37 69 A1 37 4A 84 3E 67 C0 B8 [14:25:57]CheckFolder [14:25:57]dirname=/storage/ofd_packets [14:25:57]CheckFolder done [14:25:57]ProducePacketName [14:25:57]name=ofd_packets/00029842 [14:25:57]NVStorageSaveData ofd_packets/00029842 [14:25:57]File name is /storage/ofd_packets/00029842 [14:25:57]Write 301 bytes [14:25:57]NVStorageSaveData done [14:25:57]OFDSenderStorePacket done [14:25:57]KKMCreateOFDPacket done [14:25:57]NVStorageSaveData kkm_last_timestamp [14:25:57]File name is /storage/kkm_last_timestamp [14:25:57]Write 4 bytes [14:25:57]NVStorageSaveData done [14:25:57]ExternCall_PrintAddStr [14:25:57]wPrintStart [14:25:57]Write to MH i2c: 01 00 00 36 1C 52 [14:25:57]Write i2c OK [14:25:57]MH_I2C_Read... [14:25:57]Read from MH i2c: 01 [14:25:57]MH_I2C_Read... [14:25:57]Read from MH i2c: 01 07 00 [14:25:57]MH_I2C_Read... [14:25:57]Read from MH i2c: 01 07 00 36 1C 00 00 00 00 00 FF 0F 67 [14:25:57]RasterBufferAndPrint [14:25:57]line Счет N : (1)348356 [14:25:57]line ИНН: 02508201610067 [14:25:57]line Контрольно-Кассовый Чек [14:25:57]line ПРОДАЖА [14:25:57]line ТРК (МРК, ГНК) : 33 [14:25:57]line Товар: 2710124500 [14:25:57]line Аи-95-К-5 [14:25:57]line 32.940 * 72.90 [14:25:57]line = 2401.33 [14:25:57]line НДС 12% НСП 1% [14:25:57]line > о реализуемом товаре [14:25:57]line ИТОГО: 2401.33 [14:25:57]line НСП 1% : 21.25 [14:25:57]line НДС 12% : 255.01 [14:25:57]line Наличными: 0.00 [14:25:57]line Безнал.: 2401.33 [14:25:57]line Место: АЗС № 108 "Партнер Нефть" [14:25:57]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:25:57]line СНО: Общий режим [14:25:57]line Чек 116 16.04.2024 14:25 [14:25:57]line Смена: 118 ФФД: 1.0 [14:25:57]line ЗНМ: 0300000027 [14:25:57]line РНМ: 0000138879044617 [14:25:57]line Версия ККМ: 001 [14:25:57]line Платежная система: АКБ Кыргызстан [14:25:57]line ФМ: 0000000000963154 [14:25:57]line ФД: 29842 [14:25:57]line ФПД: 75068224714601 [14:25:57]line 1/tax-web-control/client/api/v1/ticket?date=20240416T142557&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29842&fm=75068224714601&tin=02508201610067®Number=0000138879044617&sum=240133 [14:25:57]OFD Sender: Processing packet 29842 [packets to send 8, broken 7] [14:25:57]ProducePacketName [14:25:57]name=ofd_packets/00029842 [14:25:57]OFD Sender: To server: pG, [14:25:57]CommunicateWithHost lk.salyk.kg:30040 [14:25:57]ConnectInit lk.salyk.kg [14:25:57]written 0, free lines is 4095 [14:25:57]Connected sock=10 [14:25:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 38 BA 07 01 7A 15 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 AC 80 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 05 AA 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 AA 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 AA 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 75 8A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 74 00 00 35 04 06 00 44 46 2E DE 37 69 A1 37 4A 84 3E 67 C0 B8 [14:25:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AF 9A 47 00 18 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 74 00 00 F4 03 04 00 13 35 1E 66 B6 04 01 00 00 58 D7 0A 7D 62 84 FF 2A [14:25:57]CommunicateWithHost err = 0 [14:25:57]CheckOFDResponse [14:25:57]1017 (14) - 77093643461234 [14:25:57]1041 (16) - 0000000000963154 [14:25:57]1040 (4) - 29842 [14:25:57]1012 (4) - 16.04.2024 08:21 [14:25:57]1206 (1) - 0 [14:25:57]OFD Sender: Remove packet 29842 [14:25:57]ProducePacketName [14:25:57]name=ofd_packets/00029842 [14:25:57]NVStorageDeleteData [14:25:57]Write to MH i2c: 01 00 00 5F 1C 7B [14:25:57]Write i2c OK [14:25:57]MH_I2C_Read... [14:25:57]Read from MH i2c: 01 [14:25:57]MH_I2C_Read... [14:25:57]Read from MH i2c: 01 07 00 [14:25:57]MH_I2C_Read... [14:25:57]Read from MH i2c: 01 07 00 5F 1C 00 00 00 00 00 E2 0C 70 [14:25:57]RasterBufferAndPrint [14:25:57]line [14:25:57]line [14:25:57]line [14:25:57]line [14:25:57]line [14:25:57]written 0, free lines is 3304 [14:25:57]MH_Cut [14:25:57]Write to MH i2c: D1 01 00 66 1C 01 54 [14:25:57]Write i2c OK [14:25:57]MH_I2C_Read... [14:25:57]Read from MH i2c: D1 [14:25:57]MH_I2C_Read... [14:25:57]Read from MH i2c: D1 01 00 [14:25:57]MH_I2C_Read... [14:25:57]Read from MH i2c: D1 01 00 66 1C 00 53 [14:25:57]Write to MH i2c: 01 00 00 67 1C 83 [14:25:57]Write i2c OK [14:25:57]MH_I2C_Read... [14:25:58]OFD Sender: No OFD packet to send [14:25:58]*** Cut start [14:25:58]*** Partial cut [14:25:58]*** CUTSNS_PIN = 1 [14:25:58]*** CUTSNS_PIN = 0 [14:25:58]*** Brake cut motor [14:25:59]Read from MH i2c: 01 [14:25:59]MH_I2C_Read... [14:25:59]*** Stop cut motor [14:25:59]*** Cut end [14:25:59]Read from MH i2c: 01 07 00 [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: 01 07 00 67 1C 00 00 00 00 00 FF 0F 98 [14:25:59]process_action close_receipt done [14:25:59]requested_data is exist [14:25:59]produce_requested_data [14:25:59]requested_item fm.sn is exist - process it [14:25:59]wFMCommunicate request_size=4 [14:25:59]MH_SAM_APDU [14:25:59]CAPDU: 80 11 00 00 [14:25:59]Write to MH i2c: E2 08 00 68 1C 80 11 00 00 00 00 00 00 FE [14:25:59]Write i2c OK [14:25:59]MH_I2C_Read... [14:25:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:59]Read from MH i2c: E2 [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: E2 17 00 [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: E2 17 00 68 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4D [14:25:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:25:59]wFMCommunicate OK [14:25:59]requested_item fd.num is exist - process it [14:25:59]SAM_PROTO_GetFieldsCounters [14:25:59]wFMCommunicate request_size=4 [14:25:59]MH_SAM_APDU [14:25:59]CAPDU: 80 13 00 00 [14:25:59]Write to MH i2c: E2 08 00 69 1C 80 13 00 00 00 00 00 00 01 [14:25:59]Write i2c OK [14:25:59]MH_I2C_Read... [14:25:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:59]Read from MH i2c: E2 [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: E2 62 00 [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: E2 62 00 69 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 92 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [14:25:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 92 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:25:59]wFMCommunicate OK [14:25:59]SAM_PROTO_GetFieldsCounters done [14:25:59]requested_item shift.num is exist - process it [14:25:59]requested_item shift.opened is exist - process it [14:25:59]req_shift_opened [14:25:59]FM_GetShiftState [14:25:59]SAM_PROTO_GetShiftState [14:25:59]wFMCommunicate request_size=4 [14:25:59]MH_SAM_APDU [14:25:59]CAPDU: 80 13 01 00 [14:25:59]Write to MH i2c: E2 08 00 6A 1C 80 13 01 00 00 00 00 00 03 [14:25:59]Write i2c OK [14:25:59]MH_I2C_Read... [14:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:59]Read from MH i2c: E2 [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: E2 0E 00 [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: E2 0E 00 6A 1C 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 B1 [14:25:59]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:25:59]wFMCommunicate OK [14:25:59]SAM_PROTO_GetShiftState done [14:25:59]FM_GetShiftState done [14:25:59]req_shift_opened done [14:25:59]requested_item shift.open_date is exist - process it [14:25:59]req_shift_open_date [14:25:59]req_shift_open_date done [14:25:59]produce_requested_data done [14:25:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29842,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [14:25:59]process_action_free close_receipt [14:25:59]json_value_free [14:25:59]json_value_free done [14:25:59]process_json_proto returns [14:25:59]Send response to host [14:25:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29842,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [14:25:59]free response buf [14:25:59]execute_script done [14:25:59]execute_script returns [14:25:59]free content buf [14:25:59]Sock 7.Close socket [14:25:59]Sock 7.Thread stoped [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:23]OFD Sender: No OFD packet to send [14:26:23]accept exits with 9 [14:26:23]New connection [14:26:23]New thread 3067276644 created [14:26:23]Thread 3067133284 joined [14:26:23]Waiting for new connection... [14:26:23] Sock 9.Parse request [14:26:23]Sock 9.Check first char [14:26:23]Sock 9.First char is OK [14:26:23]request: POST /json_proto HTTP/1.0 [14:26:23]Method: POST [14:26:23]URL: /json_proto [14:26:23]Method is POST - this is cgi request [14:26:23]url: /json_proto [14:26:23]query_string will be loaded in cgi processing [14:26:23]execute_cgi json_proto POST (null) [14:26:23]execute_cgi path=json_proto method=POST [14:26:23]POST find Content-Length [14:26:23]Host: 172.17.33.3:8080 [14:26:23]Content-Length: 677 [14:26:23]Content-Type: application/json [14:26:23] [14:26:23]POST finish read [14:26:23]Found Content-Length = 677 [14:26:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "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" ] } } [14:26:23]execute_script... [14:26: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)348357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 7.720, "sum" : 500.26, "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" ] } } [14:26:23]POST & json_proto [14:26:23]process_json_proto [14:26:23]json parsed OK: [14:26:23]protocol is kg_v1.0 [14:26:23]action value=close_receipt [14:26:23]process_action close_receipt [14:26:23]cmd_close_receipt [14:26:23]MH_GetDate [14:26:23]Write to MH i2c: F0 00 00 6B 1C 76 [14:26:23]Write i2c OK [14:26:23]MH_I2C_Read... [14:26:23]Read from MH i2c: F0 [14:26:23]MH_I2C_Read... [14:26:23]Read from MH i2c: F0 09 00 [14:26:23]MH_I2C_Read... [14:26:23]Read from MH i2c: F0 09 00 6B 1C 00 91 8A 1E 66 23 5B 8F 65 90 [14:26:23]GetLastDocTimeStamp 1713277557 [14:26:23]current date 1713277585 [14:26:23]FM_GetShiftState [14:26:23]SAM_PROTO_GetShiftState [14:26:23]wFMCommunicate request_size=4 [14:26:23]MH_SAM_APDU [14:26:23]CAPDU: 80 13 01 00 [14:26:23]Write to MH i2c: E2 08 00 6C 1C 80 13 01 00 00 00 00 00 05 [14:26:23]Write i2c OK [14:26:23]MH_I2C_Read... [14:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:23]Read from MH i2c: E2 [14:26:23]MH_I2C_Read... [14:26:23]Read from MH i2c: E2 0E 00 [14:26:23]MH_I2C_Read... [14:26:23]Read from MH i2c: E2 0E 00 6C 1C 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 B3 [14:26:23]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:26:23]wFMCommunicate OK [14:26:23]SAM_PROTO_GetShiftState done [14:26:23]FM_GetShiftState done [14:26:23]opened in 1713226843 [14:26:23]opened+sec_in_day 1713313243 [14:26:23]quantity*price = 50025 [14:26:23]sum+1 = 50027 [14:26:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 117 16.04.2024 14:26 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29843 ФПД: 178723054367694 1/tax-web-control/client/api/v1/ticket?date=20240416T142625&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29843&fm=178723054367694&tin=02508201610067®Number=0000138879044617&sum=50000 [14:26:24]StoreToDocumentArchive [14:26:24]shift 118 fd 29843 [14:26:24]save to /storage/0118/doc_00029843 [14:26:24]save last doc name /storage/0118/doc_00029843 to /storage/kkm_last_doc_name [14:26:24]save OK [14:26:24]Clear old archive folders... [14:26:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:24]tlvbuf is 0016BC90 [14:26:24]SAM_PROTO_ClearQueue [14:26:24]wFMCommunicate request_size=4 [14:26:24]MH_SAM_APDU [14:26:24]CAPDU: 80 09 00 00 [14:26:24]Write to MH i2c: E2 08 00 79 1C 80 09 00 00 00 00 00 00 07 [14:26:24]Write i2c OK [14:26:24]MH_I2C_Read... [14:26:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:24]Read from MH i2c: E2 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 03 00 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 03 00 79 1C 00 90 00 09 [14:26:24]RAPDU: 90 00 [14:26:24]wFMCommunicate OK [14:26:24]SAM_PROTO_ClearQueue done [14:26:24]KKMCreateOFDPacket [14:26:24]OFDProtocolAddRootSTLVToBuf [14:26:24]FM_MakeSignedData [14:26:24]FM_MakeSignedData [14:26:24]SAM_PROTO_SignData [14:26:24]wFMCommunicate request_size=4 [14:26:24]MH_SAM_APDU [14:26:24]CAPDU: 80 0D 01 02 [14:26:24]Write to MH i2c: E2 08 00 7A 1C 80 0D 01 02 00 00 00 00 0F [14:26:24]Write i2c OK [14:26:24]MH_I2C_Read... [14:26:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:24]Read from MH i2c: E2 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 03 00 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 03 00 7A 1C 00 90 00 0A [14:26:24]RAPDU: 90 00 [14:26:24]wFMCommunicate OK [14:26:24]wFMCommunicate request_size=255 [14:26:24]MH_SAM_APDU [14:26:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 75 00 00 00 F4 03 04 00 91 8A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 74 00 00 35 04 06 00 A2 [14:26:24]Write to MH i2c: E2 02 01 7B 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 75 00 00 00 F4 03 04 00 91 8A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 74 00 00 35 04 06 00 A2 00 00 FB [14:26:24]Write i2c OK [14:26:24]MH_I2C_Read... [14:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:24]Read from MH i2c: E2 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 03 00 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 03 00 7B 1C 00 90 00 0B [14:26:24]RAPDU: 90 00 [14:26:24]wFMCommunicate OK [14:26:24]wFMCommunicate request_size=10 [14:26:24]MH_SAM_APDU [14:26:24]CAPDU: 80 0D 02 02 05 8C 34 2B 33 CE [14:26:24]Write to MH i2c: E2 0D 00 7C 1C 80 0D 02 02 05 00 8C 34 2B 33 CE 00 00 08 [14:26:24]Write i2c OK [14:26:24]MH_I2C_Read... [14:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:24]Read from MH i2c: E2 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 03 00 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 03 00 7C 1C 00 90 00 0C [14:26:24]RAPDU: 90 00 [14:26:24]wFMCommunicate OK [14:26:24]wFMCommunicate request_size=4 [14:26:24]MH_SAM_APDU [14:26:24]CAPDU: 80 0D 03 02 [14:26:24]Write to MH i2c: E2 08 00 7D 1C 80 0D 03 02 00 00 00 00 14 [14:26:24]Write i2c OK [14:26:24]MH_I2C_Read... [14:26:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:24]Read from MH i2c: E2 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 0B 00 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 0B 00 7D 1C 00 15 31 4D 31 60 E7 71 A0 90 00 31 [14:26:24]RAPDU: 15 31 4D 31 60 E7 71 A0 90 00 [14:26:24]wFMCommunicate OK [14:26:24]SAM_PROTO_SignData done [14:26:24]FM_MakeSignedData done [14:26:24]CreateOFDProtocolMessage [14:26:24]wFMCommunicate request_size=4 [14:26:24]MH_SAM_APDU [14:26:24]CAPDU: 80 11 00 00 [14:26:24]Write to MH i2c: E2 08 00 7E 1C 80 11 00 00 00 00 00 00 14 [14:26:24]Write i2c OK [14:26:24]MH_I2C_Read... [14:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:24]Read from MH i2c: E2 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 17 00 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: E2 17 00 7E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 63 [14:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:26:24]wFMCommunicate OK [14:26:24]CreateOFDProtocolMessage done [14:26:24]OFDSenderStorePacket 29843 [14:26:24]StoreOFDPacket docnum=29843 [14:26:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5F 11 07 01 04 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 75 00 00 00 F4 03 04 00 91 8A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 74 00 00 35 04 06 00 A2 8C 34 2B 33 CE 15 31 4D 31 60 E7 71 A0 [14:26:24]CheckFolder [14:26:24]dirname=/storage/ofd_packets [14:26:24]CheckFolder done [14:26:24]ProducePacketName [14:26:24]name=ofd_packets/00029843 [14:26:24]NVStorageSaveData ofd_packets/00029843 [14:26:24]File name is /storage/ofd_packets/00029843 [14:26:24]Write 301 bytes [14:26:24]NVStorageSaveData done [14:26:24]OFDSenderStorePacket done [14:26:24]KKMCreateOFDPacket done [14:26:24]NVStorageSaveData kkm_last_timestamp [14:26:24]File name is /storage/kkm_last_timestamp [14:26:24]Write 4 bytes [14:26:24]NVStorageSaveData done [14:26:24]ExternCall_PrintAddStr [14:26:24]wPrintStart [14:26:24]Write to MH i2c: 01 00 00 7F 1C 9B [14:26:24]Write i2c OK [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: 01 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: 01 07 00 [14:26:24]MH_I2C_Read... [14:26:24]Read from MH i2c: 01 07 00 7F 1C 00 00 00 00 00 FF 0F B0 [14:26:24]RasterBufferAndPrint [14:26:24]line Счет N : (1)348357 [14:26:24]line ИНН: 02508201610067 [14:26:24]line Контрольно-Кассовый Чек [14:26:24]line ПРОДАЖА [14:26:24]line ТРК (МРК, ГНК) : 23 [14:26:24]line Товар: 2710124130 [14:26:24]line Аи-92-К-5 [14:26:24]line 7.720 * 64.80 [14:26:24]line = 500.26 [14:26:24]line НДС 12% НСП 1% [14:26:24]line > о реализуемом товаре [14:26:24]line ОКРУГЛЕНИЕ: -0.26 [14:26:24]line ИТОГО: 500.00 [14:26:24]line Внесено: 500.00 [14:26:24]line СДАЧА: 0.00 [14:26:24]line НСП 1% : 4.43 [14:26:24]line НДС 12% : 53.12 [14:26:24]line Наличными: 500.00 [14:26:24]line Безнал.: 0.00 [14:26:24]line Место: АЗС № 108 "Партнер Нефть" [14:26:24]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:26:24]line СНО: Общий режим [14:26:24]line Чек 117 16.04.2024 14:26 [14:26:24]line Смена: 118 ФФД: 1.0 [14:26:24]line ЗНМ: 0300000027 [14:26:24]line РНМ: 0000138879044617 [14:26:24]line Версия ККМ: 001 [14:26:24]line ФМ: 0000000000963154 [14:26:24]line ФД: 29843 [14:26:24]line ФПД: 178723054367694 [14:26:24]line 1/tax-web-control/client/api/v1/ticket?date=20240416T142625&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29843&fm=178723054367694&tin=02508201610067®Number=0000138879044617&sum=50000 [14:26:25]OFD Sender: Processing packet 29843 [packets to send 8, broken 7] [14:26:25]ProducePacketName [14:26:25]name=ofd_packets/00029843 [14:26:25]OFD Sender: To server: pG, [14:26:25]CommunicateWithHost lk.salyk.kg:30040 [14:26:25]ConnectInit lk.salyk.kg [14:26:25]written 0, free lines is 4095 [14:26:25]Connected sock=7 [14:26:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5F 11 07 01 04 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 6A 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 C0 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 75 00 00 00 F4 03 04 00 91 8A 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 74 00 00 35 04 06 00 A2 8C 34 2B 33 CE 15 31 4D 31 60 E7 71 A0 [14:26:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 91 61 47 00 2A E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 74 00 00 F4 03 04 00 2F 35 1E 66 B6 04 01 00 00 6A BC D0 11 4A AD A9 F7 [14:26:25]CommunicateWithHost err = 0 [14:26:25]CheckOFDResponse [14:26:25]1017 (14) - 77093643461234 [14:26:25]1041 (16) - 0000000000963154 [14:26:25]1040 (4) - 29843 [14:26:25]1012 (4) - 16.04.2024 08:22 [14:26:25]1206 (1) - 0 [14:26:25]OFD Sender: Remove packet 29843 [14:26:25]ProducePacketName [14:26:25]name=ofd_packets/00029843 [14:26:25]NVStorageDeleteData [14:26:25]Write to MH i2c: 01 00 00 A9 1C C5 [14:26:25]Write i2c OK [14:26:25]MH_I2C_Read... [14:26:25]Read from MH i2c: 01 [14:26:25]MH_I2C_Read... [14:26:25]Read from MH i2c: 01 07 00 [14:26:25]MH_I2C_Read... [14:26:25]Read from MH i2c: 01 07 00 A9 1C 00 00 00 00 00 D3 0C AB [14:26:25]RasterBufferAndPrint [14:26:25]line [14:26:25]line [14:26:25]line [14:26:25]line [14:26:25]line [14:26:25]written 0, free lines is 3289 [14:26:25]MH_Cut [14:26:25]Write to MH i2c: D1 01 00 B0 1C 01 9E [14:26:25]Write i2c OK [14:26:25]MH_I2C_Read... [14:26:25]Read from MH i2c: D1 [14:26:25]MH_I2C_Read... [14:26:25]Read from MH i2c: D1 01 00 [14:26:25]MH_I2C_Read... [14:26:25]Read from MH i2c: D1 01 00 B0 1C 00 9D [14:26:25]Write to MH i2c: 01 00 00 B1 1C CD [14:26:25]Write i2c OK [14:26:25]MH_I2C_Read... [14:26:26]OFD Sender: No OFD packet to send [14:26:26]*** Cut start [14:26:26]*** Partial cut [14:26:26]*** CUTSNS_PIN = 1 [14:26:26]*** CUTSNS_PIN = 0 [14:26:26]*** Brake cut motor [14:26:27]Read from MH i2c: 01 [14:26:27]MH_I2C_Read... [14:26:27]*** Stop cut motor [14:26:27]*** Cut end [14:26:27]Read from MH i2c: 01 07 00 [14:26:27]MH_I2C_Read... [14:26:27]Read from MH i2c: 01 07 00 B1 1C 00 00 00 00 00 FF 0F E2 [14:26:27]process_action close_receipt done [14:26:27]requested_data is exist [14:26:27]produce_requested_data [14:26:27]requested_item fm.sn is exist - process it [14:26:27]wFMCommunicate request_size=4 [14:26:27]MH_SAM_APDU [14:26:27]CAPDU: 80 11 00 00 [14:26:27]Write to MH i2c: E2 08 00 B2 1C 80 11 00 00 00 00 00 00 48 [14:26:27]Write i2c OK [14:26:27]MH_I2C_Read... [14:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:27]Read from MH i2c: E2 [14:26:27]MH_I2C_Read... [14:26:27]Read from MH i2c: E2 17 00 [14:26:27]MH_I2C_Read... [14:26:27]Read from MH i2c: E2 17 00 B2 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 97 [14:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:26:27]wFMCommunicate OK [14:26:27]requested_item fd.num is exist - process it [14:26:27]SAM_PROTO_GetFieldsCounters [14:26:27]wFMCommunicate request_size=4 [14:26:27]MH_SAM_APDU [14:26:27]CAPDU: 80 13 00 00 [14:26:27]Write to MH i2c: E2 08 00 B3 1C 80 13 00 00 00 00 00 00 4B [14:26:27]Write i2c OK [14:26:27]MH_I2C_Read... [14:26:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:27]Read from MH i2c: E2 [14:26:27]MH_I2C_Read... [14:26:27]Read from MH i2c: E2 62 00 [14:26:27]MH_I2C_Read... [14:26:27]Read from MH i2c: E2 62 00 B3 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 93 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [14:26:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 93 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:27]wFMCommunicate OK [14:26:27]SAM_PROTO_GetFieldsCounters done [14:26:27]requested_item shift.num is exist - process it [14:26:27]requested_item shift.opened is exist - process it [14:26:27]req_shift_opened [14:26:27]FM_GetShiftState [14:26:27]SAM_PROTO_GetShiftState [14:26:27]wFMCommunicate request_size=4 [14:26:27]MH_SAM_APDU [14:26:27]CAPDU: 80 13 01 00 [14:26:27]Write to MH i2c: E2 08 00 B4 1C 80 13 01 00 00 00 00 00 4D [14:26:27]Write i2c OK [14:26:27]MH_I2C_Read... [14:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:27]Read from MH i2c: E2 [14:26:27]MH_I2C_Read... [14:26:27]Read from MH i2c: E2 0E 00 [14:26:27]MH_I2C_Read... [14:26:27]Read from MH i2c: E2 0E 00 B4 1C 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 FB [14:26:27]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:26:27]wFMCommunicate OK [14:26:27]SAM_PROTO_GetShiftState done [14:26:27]FM_GetShiftState done [14:26:27]req_shift_opened done [14:26:27]requested_item shift.open_date is exist - process it [14:26:27]req_shift_open_date [14:26:27]req_shift_open_date done [14:26:27]produce_requested_data done [14:26:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29843,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [14:26:27]process_action_free close_receipt [14:26:27]json_value_free [14:26:27]json_value_free done [14:26:27]process_json_proto returns [14:26:27]Send response to host [14:26:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29843,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [14:26:27]free response buf [14:26:27]execute_script done [14:26:27]execute_script returns [14:26:27]free content buf [14:26:27]Sock 9.Close socket [14:26:27]Sock 9.Thread stoped [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:19]accept exits with 10 [14:27:19]New connection [14:27:19]New thread 3067133284 created [14:27:19]Thread 3067276644 joined [14:27:19]Waiting for new connection... [14:27:19] Sock 10.Parse request [14:27:19]Sock 10.Check first char [14:27:19]Sock 10.First char is OK [14:27:19]request: POST /json_proto HTTP/1.0 [14:27:19]Method: POST [14:27:19]URL: /json_proto [14:27:19]Method is POST - this is cgi request [14:27:19]url: /json_proto [14:27:19]query_string will be loaded in cgi processing [14:27:19]execute_cgi json_proto POST (null) [14:27:19]execute_cgi path=json_proto method=POST [14:27:19]POST find Content-Length [14:27:19]Host: 172.17.33.3:8080 [14:27:19]Content-Length: 1204 [14:27:19]Content-Type: application/json [14:27:19] [14:27:19]POST finish read [14:27:19]Found Content-Length = 1204 [14:27:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348355\u000A16.04.2024 14:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 94.670 x 72.90\u000A\u0418\u0422\u041E\u0413: 6901.44\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68982\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:19]execute_script... [14:27:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348355\u000A16.04.2024 14:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 94.670 x 72.90\u000A\u0418\u0422\u041E\u0413: 6901.44\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68982\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:19]POST & json_proto [14:27:19]process_json_proto [14:27:19]json parsed OK: [14:27:19]protocol is kg_v1.0 [14:27:19]action value=print_text [14:27:19]process_action print_text [14:27:19]cmd_print_text [14:27:19]ExternCall_PrintAddStr [14:27:19]wPrintStart [14:27:19]Write to MH i2c: 01 00 00 B5 1C D1 [14:27:19]Write i2c OK [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: 01 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: 01 07 00 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: 01 07 00 B5 1C 00 00 00 00 00 FF 0F E6 [14:27:19]RasterBufferAndPrint [14:27:19]line *****ТОВАРНЫЙ ЧЕК***** [14:27:19]line АЗС 108 [14:27:19]line Партнер нефть [14:27:19]line 02508201610067 [14:27:19]line Кассир : Шадыканова Ж. [14:27:19]line Счет N : (1)348355 [14:27:19]line 16.04.2024 14:08 [14:27:19]line ПРОДАЖА [14:27:19]line ТРК (МРК, ГНК): 61 [14:27:19]line Вид ГСМ : 2710194210 [14:27:19]line ДТ-К-5 [14:27:19]line 94.670 x 72.90 [14:27:19]line ИТОГ: 6901.44 [14:27:19]line Тип оплаты: Талоны: Топливная Карта [14:27:19]line 68982 [14:27:19]line ______________________ [14:27:19]line (подпись) [14:27:19]written 0, free lines is 4095 [14:27:19]Write to MH i2c: 01 00 00 CA 1C E6 [14:27:19]Write i2c OK [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: 01 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: 01 07 00 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: 01 07 00 CA 1C 00 00 00 00 00 F6 0D F0 [14:27:19]RasterBufferAndPrint [14:27:19]line [14:27:19]line [14:27:19]line [14:27:19]line [14:27:19]line [14:27:19]written 0, free lines is 3575 [14:27:19]MH_Cut [14:27:19]Write to MH i2c: D1 01 00 D1 1C 01 BF [14:27:19]Write i2c OK [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: D1 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: D1 01 00 [14:27:19]MH_I2C_Read... [14:27:19]Read from MH i2c: D1 01 00 D1 1C 00 BE [14:27:19]Write to MH i2c: 01 00 00 D2 1C EE [14:27:19]Write i2c OK [14:27:19]MH_I2C_Read... [14:27:20]*** Cut start [14:27:20]*** Partial cut [14:27:20]*** CUTSNS_PIN = 1 [14:27:20]*** CUTSNS_PIN = 0 [14:27:20]*** Brake cut motor [14:27:21]OFD Sender: No OFD packet to send [14:27:21]Read from MH i2c: 01 [14:27:21]MH_I2C_Read... [14:27:21]*** Stop cut motor [14:27:21]*** Cut end [14:27:21]Read from MH i2c: 01 07 00 [14:27:21]MH_I2C_Read... [14:27:21]Read from MH i2c: 01 07 00 D2 1C 00 00 00 00 00 FF 0F 03 [14:27:21]process_action print_text done [14:27:21]requested_data is exist [14:27:21]produce_requested_data [14:27:21]requested_item fm.sn is exist - process it [14:27:21]wFMCommunicate request_size=4 [14:27:21]MH_SAM_APDU [14:27:21]CAPDU: 80 11 00 00 [14:27:21]Write to MH i2c: E2 08 00 D3 1C 80 11 00 00 00 00 00 00 69 [14:27:21]Write i2c OK [14:27:21]MH_I2C_Read... [14:27:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:21]Read from MH i2c: E2 [14:27:21]MH_I2C_Read... [14:27:21]Read from MH i2c: E2 17 00 [14:27:21]MH_I2C_Read... [14:27:21]Read from MH i2c: E2 17 00 D3 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B8 [14:27:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:27:21]wFMCommunicate OK [14:27:21]requested_item fd.num is exist - process it [14:27:21]SAM_PROTO_GetFieldsCounters [14:27:21]wFMCommunicate request_size=4 [14:27:21]MH_SAM_APDU [14:27:21]CAPDU: 80 13 00 00 [14:27:21]Write to MH i2c: E2 08 00 D4 1C 80 13 00 00 00 00 00 00 6C [14:27:21]Write i2c OK [14:27:21]MH_I2C_Read... [14:27:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:21]Read from MH i2c: E2 [14:27:21]MH_I2C_Read... [14:27:21]Read from MH i2c: E2 62 00 [14:27:21]MH_I2C_Read... [14:27:21]Read from MH i2c: E2 62 00 D4 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 93 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [14:27:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 93 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:21]wFMCommunicate OK [14:27:21]SAM_PROTO_GetFieldsCounters done [14:27:21]requested_item shift.num is exist - process it [14:27:21]requested_item shift.opened is exist - process it [14:27:21]req_shift_opened [14:27:21]FM_GetShiftState [14:27:21]SAM_PROTO_GetShiftState [14:27:21]wFMCommunicate request_size=4 [14:27:21]MH_SAM_APDU [14:27:21]CAPDU: 80 13 01 00 [14:27:21]Write to MH i2c: E2 08 00 D5 1C 80 13 01 00 00 00 00 00 6E [14:27:21]Write i2c OK [14:27:21]MH_I2C_Read... [14:27:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:21]Read from MH i2c: E2 [14:27:21]MH_I2C_Read... [14:27:21]Read from MH i2c: E2 0E 00 [14:27:21]MH_I2C_Read... [14:27:21]Read from MH i2c: E2 0E 00 D5 1C 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 1C [14:27:21]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:27:21]wFMCommunicate OK [14:27:21]SAM_PROTO_GetShiftState done [14:27:21]FM_GetShiftState done [14:27:21]req_shift_opened done [14:27:21]requested_item shift.open_date is exist - process it [14:27:21]req_shift_open_date [14:27:21]req_shift_open_date done [14:27:21]produce_requested_data done [14:27:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29843,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [14:27:21]process_action_free print_text [14:27:21]json_value_free [14:27:21]json_value_free done [14:27:21]process_json_proto returns [14:27:21]Send response to host [14:27:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29843,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [14:27:21]free response buf [14:27:21]execute_script done [14:27:21]execute_script returns [14:27:21]free content buf [14:27:21]Sock 10.Close socket [14:27:21]Sock 10.Thread stoped [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:33]accept exits with 7 [14:28:33]New connection [14:28:33]New thread 3067276644 created [14:28:33]Thread 3067133284 joined [14:28:33]Waiting for new connection... [14:28:33] Sock 7.Parse request [14:28:33]Sock 7.Check first char [14:28:33]Sock 7.First char is OK [14:28:33]request: POST /json_proto HTTP/1.0 [14:28:33]Method: POST [14:28:33]URL: /json_proto [14:28:33]Method is POST - this is cgi request [14:28:33]url: /json_proto [14:28:33]query_string will be loaded in cgi processing [14:28:33]execute_cgi json_proto POST (null) [14:28:33]execute_cgi path=json_proto method=POST [14:28:33]POST find Content-Length [14:28:33]Host: 172.17.33.3:8080 [14:28:33]Content-Length: 801 [14:28:33]Content-Type: application/json [14:28:33] [14:28:33]POST finish read [14:28:33]Found Content-Length = 801 [14:28:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:33]execute_script... [14:28:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 30.400, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:33]POST & json_proto [14:28:33]process_json_proto [14:28:33]json parsed OK: [14:28:33]protocol is kg_v1.0 [14:28:33]action value=close_receipt [14:28:33]process_action close_receipt [14:28:33]cmd_close_receipt [14:28:33]MH_GetDate [14:28:33]Write to MH i2c: F0 00 00 D6 1C E1 [14:28:33]Write i2c OK [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: F0 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: F0 09 00 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: F0 09 00 D6 1C 00 13 8B 1E 66 23 5B 8F 65 7E [14:28:33]GetLastDocTimeStamp 1713277585 [14:28:33]current date 1713277715 [14:28:33]FM_GetShiftState [14:28:33]SAM_PROTO_GetShiftState [14:28:33]wFMCommunicate request_size=4 [14:28:33]MH_SAM_APDU [14:28:33]CAPDU: 80 13 01 00 [14:28:33]Write to MH i2c: E2 08 00 D7 1C 80 13 01 00 00 00 00 00 70 [14:28:33]Write i2c OK [14:28:33]MH_I2C_Read... [14:28:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:33]Read from MH i2c: E2 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: E2 0E 00 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: E2 0E 00 D7 1C 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 1E [14:28:33]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:28:33]wFMCommunicate OK [14:28:33]SAM_PROTO_GetShiftState done [14:28:33]FM_GetShiftState done [14:28:33]opened in 1713226843 [14:28:33]opened+sec_in_day 1713313243 [14:28:33]quantity*price = 200032 [14:28:33]sum+1 = 200033 [14:28:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.32 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.32 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 118 16.04.2024 14:28 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29844 ФПД: 219849652921430 1/tax-web-control/client/api/v1/ticket?date=20240416T142835&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29844&fm=219849652921430&tin=02508201610067®Number=0000138879044617&sum=200032 [14:28:34]StoreToDocumentArchive [14:28:34]shift 118 fd 29844 [14:28:34]save to /storage/0118/doc_00029844 [14:28:34]save last doc name /storage/0118/doc_00029844 to /storage/kkm_last_doc_name [14:28:34]save OK [14:28:34]Clear old archive folders... [14:28:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:28:34]tlvbuf is 001687A0 [14:28:34]SAM_PROTO_ClearQueue [14:28:34]wFMCommunicate request_size=4 [14:28:34]MH_SAM_APDU [14:28:34]CAPDU: 80 09 00 00 [14:28:34]Write to MH i2c: E2 08 00 E4 1C 80 09 00 00 00 00 00 00 72 [14:28:34]Write i2c OK [14:28:34]MH_I2C_Read... [14:28:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:34]Read from MH i2c: E2 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 03 00 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 03 00 E4 1C 00 90 00 74 [14:28:34]RAPDU: 90 00 [14:28:34]wFMCommunicate OK [14:28:34]SAM_PROTO_ClearQueue done [14:28:34]KKMCreateOFDPacket [14:28:34]OFDProtocolAddRootSTLVToBuf [14:28:34]FM_MakeSignedData [14:28:34]FM_MakeSignedData [14:28:34]SAM_PROTO_SignData [14:28:34]wFMCommunicate request_size=4 [14:28:34]MH_SAM_APDU [14:28:34]CAPDU: 80 0D 01 02 [14:28:34]Write to MH i2c: E2 08 00 E5 1C 80 0D 01 02 00 00 00 00 7A [14:28:34]Write i2c OK [14:28:34]MH_I2C_Read... [14:28:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:34]Read from MH i2c: E2 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 03 00 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 03 00 E5 1C 00 90 00 75 [14:28:34]RAPDU: 90 00 [14:28:34]wFMCommunicate OK [14:28:34]wFMCommunicate request_size=255 [14:28:34]MH_SAM_APDU [14:28:34]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 13 8B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 74 00 00 35 04 06 00 [14:28:34]Write to MH i2c: E2 02 01 E6 1C 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 13 8B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 74 00 00 35 04 06 00 00 00 F0 [14:28:34]Write i2c OK [14:28:34]MH_I2C_Read... [14:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:35]Read from MH i2c: E2 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: E2 03 00 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: E2 03 00 E6 1C 00 90 00 76 [14:28:35]RAPDU: 90 00 [14:28:35]wFMCommunicate OK [14:28:35]wFMCommunicate request_size=11 [14:28:35]MH_SAM_APDU [14:28:35]CAPDU: 80 0D 02 02 06 C7 F3 BC 77 64 56 [14:28:35]Write to MH i2c: E2 0E 00 E7 1C 80 0D 02 02 06 00 C7 F3 BC 77 64 56 00 00 30 [14:28:35]Write i2c OK [14:28:35]MH_I2C_Read... [14:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:35]Read from MH i2c: E2 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: E2 03 00 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: E2 03 00 E7 1C 00 90 00 77 [14:28:35]RAPDU: 90 00 [14:28:35]wFMCommunicate OK [14:28:35]wFMCommunicate request_size=4 [14:28:35]MH_SAM_APDU [14:28:35]CAPDU: 80 0D 03 02 [14:28:35]Write to MH i2c: E2 08 00 E8 1C 80 0D 03 02 00 00 00 00 7F [14:28:35]Write i2c OK [14:28:35]MH_I2C_Read... [14:28:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:35]Read from MH i2c: E2 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: E2 0B 00 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: E2 0B 00 E8 1C 00 F7 3E C5 0D F2 18 01 36 90 00 C8 [14:28:35]RAPDU: F7 3E C5 0D F2 18 01 36 90 00 [14:28:35]wFMCommunicate OK [14:28:35]SAM_PROTO_SignData done [14:28:35]FM_MakeSignedData done [14:28:35]CreateOFDProtocolMessage [14:28:35]wFMCommunicate request_size=4 [14:28:35]MH_SAM_APDU [14:28:35]CAPDU: 80 11 00 00 [14:28:35]Write to MH i2c: E2 08 00 E9 1C 80 11 00 00 00 00 00 00 7F [14:28:35]Write i2c OK [14:28:35]MH_I2C_Read... [14:28:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:35]Read from MH i2c: E2 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: E2 17 00 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: E2 17 00 E9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CE [14:28:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:28:35]wFMCommunicate OK [14:28:35]CreateOFDProtocolMessage done [14:28:35]OFDSenderStorePacket 29844 [14:28:35]StoreOFDPacket docnum=29844 [14:28:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 0D 41 08 01 EA BD 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 13 8B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 74 00 00 35 04 06 00 C7 F3 BC 77 64 56 F7 3E C5 0D F2 18 01 36 [14:28:35]CheckFolder [14:28:35]dirname=/storage/ofd_packets [14:28:35]CheckFolder done [14:28:35]ProducePacketName [14:28:35]name=ofd_packets/00029844 [14:28:35]NVStorageSaveData ofd_packets/00029844 [14:28:35]File name is /storage/ofd_packets/00029844 [14:28:35]Write 302 bytes [14:28:35]NVStorageSaveData done [14:28:35]OFDSenderStorePacket done [14:28:35]KKMCreateOFDPacket done [14:28:35]NVStorageSaveData kkm_last_timestamp [14:28:35]File name is /storage/kkm_last_timestamp [14:28:35]Write 4 bytes [14:28:35]NVStorageSaveData done [14:28:35]ExternCall_PrintAddStr [14:28:35]wPrintStart [14:28:35]Write to MH i2c: 01 00 00 EA 1C 06 [14:28:35]Write i2c OK [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: 01 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: 01 07 00 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: 01 07 00 EA 1C 00 00 00 00 00 FF 0F 1B [14:28:35]RasterBufferAndPrint [14:28:35]line Счет N : (1)348358 [14:28:35]line ИНН: 02508201610067 [14:28:35]line Контрольно-Кассовый Чек [14:28:35]line ПРОДАЖА [14:28:35]line ТРК (МРК, ГНК) : 41 [14:28:35]line Товар: 2710124130 [14:28:35]line SUPER-92-К-5 [14:28:35]line 30.400 * 65.80 [14:28:35]line = 2000.32 [14:28:35]line НДС 12% НСП 1% [14:28:35]line > о реализуемом товаре [14:28:35]line ИТОГО: 2000.32 [14:28:35]line НСП 1% : 17.70 [14:28:35]line НДС 12% : 212.42 [14:28:35]line Наличными: 0.00 [14:28:35]line Безнал.: 2000.32 [14:28:35]line Место: АЗС № 108 "Партнер Нефть" [14:28:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:28:35]line СНО: Общий режим [14:28:35]line Чек 118 16.04.2024 14:28 [14:28:35]line Смена: 118 ФФД: 1.0 [14:28:35]line ЗНМ: 0300000027 [14:28:35]line РНМ: 0000138879044617 [14:28:35]line Версия ККМ: 001 [14:28:35]line Платежная система: О! деньги [14:28:35]line ФМ: 0000000000963154 [14:28:35]line ФД: 29844 [14:28:35]line ФПД: 219849652921430 [14:28:35]line 1/tax-web-control/client/api/v1/ticket?date=20240416T142835&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29844&fm=219849652921430&tin=02508201610067®Number=0000138879044617&sum=200032 [14:28:35]OFD Sender: Processing packet 29844 [packets to send 8, broken 7] [14:28:35]ProducePacketName [14:28:35]name=ofd_packets/00029844 [14:28:35]OFD Sender: To server: pG, [14:28:35]CommunicateWithHost lk.salyk.kg:30040 [14:28:35]ConnectInit lk.salyk.kg [14:28:35]written 0, free lines is 4095 [14:28:35]Connected sock=10 [14:28:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 0D 41 08 01 EA BD 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 13 8B 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 74 00 00 35 04 06 00 C7 F3 BC 77 64 56 F7 3E C5 0D F2 18 01 36 [14:28:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 33 09 47 00 A7 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 36 33 31 35 34 10 04 04 00 94 74 00 00 F4 03 04 00 B1 35 1E 66 B6 04 01 00 00 0E 5A 2E A7 C2 0A E3 0A [14:28:35]CommunicateWithHost err = 0 [14:28:35]CheckOFDResponse [14:28:35]1017 (14) - 77093643461234 [14:28:35]1041 (16) - 0000000000963154 [14:28:35]1040 (4) - 29844 [14:28:35]1012 (4) - 16.04.2024 08:24 [14:28:35]1206 (1) - 0 [14:28:35]OFD Sender: Remove packet 29844 [14:28:35]ProducePacketName [14:28:35]name=ofd_packets/00029844 [14:28:35]NVStorageDeleteData [14:28:36]Write to MH i2c: 01 00 00 13 1D 30 [14:28:36]Write i2c OK [14:28:36]MH_I2C_Read... [14:28:36]Read from MH i2c: 01 [14:28:36]MH_I2C_Read... [14:28:36]Read from MH i2c: 01 07 00 [14:28:36]MH_I2C_Read... [14:28:36]Read from MH i2c: 01 07 00 13 1D 00 00 00 00 00 E9 0C 2C [14:28:36]RasterBufferAndPrint [14:28:36]line [14:28:36]line [14:28:36]line [14:28:36]line [14:28:36]line [14:28:36]written 0, free lines is 3312 [14:28:36]MH_Cut [14:28:36]Write to MH i2c: D1 01 00 1A 1D 01 09 [14:28:36]Write i2c OK [14:28:36]MH_I2C_Read... [14:28:36]Read from MH i2c: D1 [14:28:36]MH_I2C_Read... [14:28:36]Read from MH i2c: D1 01 00 [14:28:36]MH_I2C_Read... [14:28:36]Read from MH i2c: D1 01 00 1A 1D 00 08 [14:28:36]Write to MH i2c: 01 00 00 1B 1D 38 [14:28:36]Write i2c OK [14:28:36]MH_I2C_Read... [14:28:36]OFD Sender: No OFD packet to send [14:28:36]*** Cut start [14:28:36]*** Partial cut [14:28:36]*** CUTSNS_PIN = 1 [14:28:37]*** CUTSNS_PIN = 0 [14:28:37]*** Brake cut motor [14:28:37]Read from MH i2c: 01 [14:28:37]MH_I2C_Read... [14:28:37]*** Stop cut motor [14:28:37]*** Cut end [14:28:37]Read from MH i2c: 01 07 00 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: 01 07 00 1B 1D 00 00 00 00 00 FF 0F 4D [14:28:37]process_action close_receipt done [14:28:37]requested_data is exist [14:28:37]produce_requested_data [14:28:37]requested_item fm.sn is exist - process it [14:28:37]wFMCommunicate request_size=4 [14:28:37]MH_SAM_APDU [14:28:37]CAPDU: 80 11 00 00 [14:28:37]Write to MH i2c: E2 08 00 1C 1D 80 11 00 00 00 00 00 00 B3 [14:28:37]Write i2c OK [14:28:37]MH_I2C_Read... [14:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:37]Read from MH i2c: E2 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: E2 17 00 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: E2 17 00 1C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 02 [14:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:28:37]wFMCommunicate OK [14:28:37]requested_item fd.num is exist - process it [14:28:37]SAM_PROTO_GetFieldsCounters [14:28:37]wFMCommunicate request_size=4 [14:28:37]MH_SAM_APDU [14:28:37]CAPDU: 80 13 00 00 [14:28:37]Write to MH i2c: E2 08 00 1D 1D 80 13 00 00 00 00 00 00 B6 [14:28:37]Write i2c OK [14:28:37]MH_I2C_Read... [14:28:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:37]Read from MH i2c: E2 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: E2 62 00 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: E2 62 00 1D 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 94 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [14:28:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 94 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:28:37]wFMCommunicate OK [14:28:37]SAM_PROTO_GetFieldsCounters done [14:28:37]requested_item shift.num is exist - process it [14:28:37]requested_item shift.opened is exist - process it [14:28:37]req_shift_opened [14:28:37]FM_GetShiftState [14:28:37]SAM_PROTO_GetShiftState [14:28:37]wFMCommunicate request_size=4 [14:28:37]MH_SAM_APDU [14:28:37]CAPDU: 80 13 01 00 [14:28:37]Write to MH i2c: E2 08 00 1E 1D 80 13 01 00 00 00 00 00 B8 [14:28:37]Write i2c OK [14:28:37]MH_I2C_Read... [14:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:37]Read from MH i2c: E2 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: E2 0E 00 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: E2 0E 00 1E 1D 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 66 [14:28:37]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:28:37]wFMCommunicate OK [14:28:37]SAM_PROTO_GetShiftState done [14:28:37]FM_GetShiftState done [14:28:37]req_shift_opened done [14:28:37]requested_item shift.open_date is exist - process it [14:28:37]req_shift_open_date [14:28:37]req_shift_open_date done [14:28:37]produce_requested_data done [14:28:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29844,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [14:28:37]process_action_free close_receipt [14:28:37]json_value_free [14:28:37]json_value_free done [14:28:37]process_json_proto returns [14:28:37]Send response to host [14:28:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29844,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [14:28:37]free response buf [14:28:37]execute_script done [14:28:37]execute_script returns [14:28:37]free content buf [14:28:37]Sock 7.Close socket [14:28:37]Sock 7.Thread stoped [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]accept exits with 9 [14:30:01]New connection [14:30:01]New thread 3067133284 created [14:30:01]Thread 3067276644 joined [14:30:01]Waiting for new connection... [14:30:01] Sock 9.Parse request [14:30:01]Sock 9.Check first char [14:30:01]Sock 9.First char is OK [14:30:01]request: POST /json_proto HTTP/1.0 [14:30:01]Method: POST [14:30:01]URL: /json_proto [14:30:01]Method is POST - this is cgi request [14:30:01]url: /json_proto [14:30:01]query_string will be loaded in cgi processing [14:30:01]execute_cgi json_proto POST (null) [14:30:01]execute_cgi path=json_proto method=POST [14:30:01]POST find Content-Length [14:30:01]Host: 172.17.33.3:8080 [14:30:01]Content-Length: 1204 [14:30:01]Content-Type: application/json [14:30:01] [14:30:01]POST finish read [14:30:01]Found Content-Length = 1204 [14:30:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348359\u000A16.04.2024 14:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43336\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:01]execute_script... [14:30:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348359\u000A16.04.2024 14:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43336\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:01]POST & json_proto [14:30:01]process_json_proto [14:30:01]json parsed OK: [14:30:01]protocol is kg_v1.0 [14:30:01]action value=print_text [14:30:01]process_action print_text [14:30:01]cmd_print_text [14:30:01]ExternCall_PrintAddStr [14:30:01]wPrintStart [14:30:01]Write to MH i2c: 01 00 00 1F 1D 3C [14:30:01]Write i2c OK [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: 01 [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: 01 07 00 [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: 01 07 00 1F 1D 00 00 00 00 00 FF 0F 51 [14:30:01]RasterBufferAndPrint [14:30:01]line *****ТОВАРНЫЙ ЧЕК***** [14:30:01]line АЗС 108 [14:30:01]line Партнер нефть [14:30:01]line 02508201610067 [14:30:01]line Кассир : Шадыканова Ж. [14:30:01]line Счет N : (1)348359 [14:30:01]line 16.04.2024 14:11 [14:30:01]line ПРОДАЖА [14:30:01]line ТРК (МРК, ГНК): 51 [14:30:01]line Вид ГСМ : 2710194210 [14:30:01]line ДТ-К-5 [14:30:01]line 40.000 x 72.90 [14:30:01]line ИТОГ: 2916.00 [14:30:01]line Тип оплаты: Талоны: Топливная Карта [14:30:01]line 43336 [14:30:01]line ______________________ [14:30:01]line (подпись) [14:30:01]written 0, free lines is 4095 [14:30:01]OFD Sender: No OFD packet to send [14:30:01]Write to MH i2c: 01 00 00 34 1D 51 [14:30:01]Write i2c OK [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: 01 [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: 01 07 00 [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: 01 07 00 34 1D 00 00 00 00 00 F4 0D 59 [14:30:01]RasterBufferAndPrint [14:30:01]line [14:30:01]line [14:30:01]line [14:30:01]line [14:30:01]line [14:30:01]written 0, free lines is 3574 [14:30:01]MH_Cut [14:30:01]Write to MH i2c: D1 01 00 3B 1D 01 2A [14:30:01]Write i2c OK [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: D1 [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: D1 01 00 [14:30:01]MH_I2C_Read... [14:30:01]Read from MH i2c: D1 01 00 3B 1D 00 29 [14:30:01]Write to MH i2c: 01 00 00 3C 1D 59 [14:30:01]Write i2c OK [14:30:01]MH_I2C_Read... [14:30:02]*** Cut start [14:30:02]*** Partial cut [14:30:02]*** CUTSNS_PIN = 1 [14:30:02]*** CUTSNS_PIN = 0 [14:30:02]*** Brake cut motor [14:30:02]Read from MH i2c: 01 [14:30:02]MH_I2C_Read... [14:30:02]Read from MH i2c: 01 07 00 [14:30:02]MH_I2C_Read... [14:30:02]*** Stop cut motor [14:30:02]*** Cut end [14:30:02]Read from MH i2c: 01 07 00 3C 1D 00 00 00 00 00 FF 0F 6E [14:30:02]process_action print_text done [14:30:02]requested_data is exist [14:30:02]produce_requested_data [14:30:02]requested_item fm.sn is exist - process it [14:30:02]wFMCommunicate request_size=4 [14:30:02]MH_SAM_APDU [14:30:02]CAPDU: 80 11 00 00 [14:30:02]Write to MH i2c: E2 08 00 3D 1D 80 11 00 00 00 00 00 00 D4 [14:30:02]Write i2c OK [14:30:02]MH_I2C_Read... [14:30:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:02]Read from MH i2c: E2 [14:30:02]MH_I2C_Read... [14:30:02]Read from MH i2c: E2 17 00 [14:30:02]MH_I2C_Read... [14:30:02]Read from MH i2c: E2 17 00 3D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 23 [14:30:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:30:02]wFMCommunicate OK [14:30:02]requested_item fd.num is exist - process it [14:30:02]SAM_PROTO_GetFieldsCounters [14:30:02]wFMCommunicate request_size=4 [14:30:02]MH_SAM_APDU [14:30:02]CAPDU: 80 13 00 00 [14:30:02]Write to MH i2c: E2 08 00 3E 1D 80 13 00 00 00 00 00 00 D7 [14:30:02]Write i2c OK [14:30:02]MH_I2C_Read... [14:30:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:03]Read from MH i2c: E2 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 62 00 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 62 00 3E 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 94 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [14:30:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 94 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:03]wFMCommunicate OK [14:30:03]SAM_PROTO_GetFieldsCounters done [14:30:03]requested_item shift.num is exist - process it [14:30:03]requested_item shift.opened is exist - process it [14:30:03]req_shift_opened [14:30:03]FM_GetShiftState [14:30:03]SAM_PROTO_GetShiftState [14:30:03]wFMCommunicate request_size=4 [14:30:03]MH_SAM_APDU [14:30:03]CAPDU: 80 13 01 00 [14:30:03]Write to MH i2c: E2 08 00 3F 1D 80 13 01 00 00 00 00 00 D9 [14:30:03]Write i2c OK [14:30:03]MH_I2C_Read... [14:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:03]Read from MH i2c: E2 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 0E 00 [14:30:03]MH_I2C_Read... [14:30:03]Read from MH i2c: E2 0E 00 3F 1D 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 87 [14:30:03]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:30:03]wFMCommunicate OK [14:30:03]SAM_PROTO_GetShiftState done [14:30:03]FM_GetShiftState done [14:30:03]req_shift_opened done [14:30:03]requested_item shift.open_date is exist - process it [14:30:03]req_shift_open_date [14:30:03]req_shift_open_date done [14:30:03]produce_requested_data done [14:30:03]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29844,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [14:30:03]process_action_free print_text [14:30:03]json_value_free [14:30:03]json_value_free done [14:30:03]process_json_proto returns [14:30:03]Send response to host [14:30:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29844,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [14:30:03]free response buf [14:30:03]execute_script done [14:30:03]execute_script returns [14:30:03]free content buf [14:30:03]Sock 9.Close socket [14:30:03]Sock 9.Thread stoped [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:27]int [14:30:27]Write to MH i2c: 01 00 00 40 1D 5D [14:30:27]*** FLAG_PRN_PAP1 set [14:30:27]Write i2c OK [14:30:27]MH_I2C_Read... [14:30:27]Read from MH i2c: 01 [14:30:27]MH_I2C_Read... [14:30:27]Read from MH i2c: 01 07 00 [14:30:27]MH_I2C_Read... [14:30:27]Read from MH i2c: 01 07 00 40 1D 00 01 00 00 00 FF 0F 73 [14:30:27]state=0 [14:30:27]No paper [14:30:28]int [14:30:28]Write to MH i2c: 01 00 00 41 1D 5E [14:30:28]*** FLAG_PRN_PAP2 set [14:30:28]Write i2c OK [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: 01 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: 01 07 00 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: 01 07 00 41 1D 00 03 00 00 00 FF 0F 76 [14:30:28]state=0 [14:30:28]No paper [14:30:28]Cover opened [14:30:28]int [14:30:28]Write to MH i2c: 01 00 00 42 1D 5F [14:30:28]*** FLAG_PRN_PAP2 reset [14:30:28]Write i2c OK [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: 01 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: 01 07 00 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: 01 07 00 42 1D 00 01 00 00 00 FF 0F 75 [14:30:28]state=3 [14:30:28]No paper [14:30:28]Cover closed [14:30:28]int [14:30:28]Write to MH i2c: 01 00 00 43 1D 60 [14:30:28]*** FLAG_PRN_PAP2 set [14:30:28]Write i2c OK [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: 01 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: 01 07 00 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: 01 07 00 43 1D 00 03 00 00 00 FF 0F 78 [14:30:28]state=0 [14:30:28]No paper [14:30:28]Cover opened [14:30:29]int [14:30:29]Write to MH i2c: 01 00 00 44 1D 61 [14:30:29]*** FLAG_PRN_PAP2 reset [14:30:29]Write i2c OK [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: 01 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: 01 07 00 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: 01 07 00 44 1D 00 01 00 00 00 FF 0F 77 [14:30:29]state=3 [14:30:29]No paper [14:30:29]Cover closed [14:30:29]int [14:30:29]Write to MH i2c: 01 00 00 45 1D 62 [14:30:29]*** FLAG_PRN_PAP1 reset [14:30:29]Write i2c OK [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: 01 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: 01 07 00 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: 01 07 00 45 1D 00 00 00 00 00 FF 0F 77 [14:30:29]state=0 [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:12]accept exits with 7 [14:33:12]New connection [14:33:12]New thread 3067276644 created [14:33:12]Thread 3067133284 joined [14:33:12]Waiting for new connection... [14:33:12] Sock 7.Parse request [14:33:12]Sock 7.Check first char [14:33:12]Sock 7.First char is OK [14:33:12]request: POST /json_proto HTTP/1.0 [14:33:12]Method: POST [14:33:12]URL: /json_proto [14:33:12]Method is POST - this is cgi request [14:33:12]url: /json_proto [14:33:12]query_string will be loaded in cgi processing [14:33:12]execute_cgi json_proto POST (null) [14:33:12]execute_cgi path=json_proto method=POST [14:33:12]POST find Content-Length [14:33:12]Host: 172.17.33.3:8080 [14:33:12]Content-Length: 681 [14:33:12]Content-Type: application/json [14:33:12] [14:33:12]POST finish read [14:33:12]Found Content-Length = 681 [14:33:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 10.480, "sum" : 350.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:12]execute_script... [14:33:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.40, "quantity" : 10.480, "sum" : 350.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:12]POST & json_proto [14:33:12]process_json_proto [14:33:12]json parsed OK: [14:33:12]protocol is kg_v1.0 [14:33:12]action value=close_receipt [14:33:12]process_action close_receipt [14:33:12]cmd_close_receipt [14:33:12]MH_GetDate [14:33:12]Write to MH i2c: F0 00 00 46 1D 52 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: F0 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: F0 09 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: F0 09 00 46 1D 00 2A 8C 1E 66 23 5B 8F 65 07 [14:33:12]GetLastDocTimeStamp 1713277715 [14:33:12]current date 1713277994 [14:33:12]FM_GetShiftState [14:33:12]SAM_PROTO_GetShiftState [14:33:12]wFMCommunicate request_size=4 [14:33:12]MH_SAM_APDU [14:33:12]CAPDU: 80 13 01 00 [14:33:12]Write to MH i2c: E2 08 00 47 1D 80 13 01 00 00 00 00 00 E1 [14:33:12]Write i2c OK [14:33:12]MH_I2C_Read... [14:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:12]Read from MH i2c: E2 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 0E 00 [14:33:12]MH_I2C_Read... [14:33:12]Read from MH i2c: E2 0E 00 47 1D 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 8F [14:33:12]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:33:12]wFMCommunicate OK [14:33:12]SAM_PROTO_GetShiftState done [14:33:12]FM_GetShiftState done [14:33:12]opened in 1713226843 [14:33:12]opened+sec_in_day 1713313243 [14:33:12]quantity*price = 35003 [14:33:12]sum+1 = 35004 [14:33:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 119 16.04.2024 14:33 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29845 ФПД: 217266003475392 1/tax-web-control/client/api/v1/ticket?date=20240416T143314&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29845&fm=217266003475392&tin=02508201610067®Number=0000138879044617&sum=35000 [14:33:13]StoreToDocumentArchive [14:33:13]shift 118 fd 29845 [14:33:13]save to /storage/0118/doc_00029845 [14:33:13]save last doc name /storage/0118/doc_00029845 to /storage/kkm_last_doc_name [14:33:13]save OK [14:33:13]Clear old archive folders... [14:33:13]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:33:13]tlvbuf is 001683F0 [14:33:13]SAM_PROTO_ClearQueue [14:33:13]wFMCommunicate request_size=4 [14:33:13]MH_SAM_APDU [14:33:13]CAPDU: 80 09 00 00 [14:33:13]Write to MH i2c: E2 08 00 54 1D 80 09 00 00 00 00 00 00 E3 [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:13]Read from MH i2c: E2 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 03 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 03 00 54 1D 00 90 00 E5 [14:33:13]RAPDU: 90 00 [14:33:13]wFMCommunicate OK [14:33:13]SAM_PROTO_ClearQueue done [14:33:13]KKMCreateOFDPacket [14:33:13]OFDProtocolAddRootSTLVToBuf [14:33:13]FM_MakeSignedData [14:33:13]FM_MakeSignedData [14:33:13]SAM_PROTO_SignData [14:33:13]wFMCommunicate request_size=4 [14:33:13]MH_SAM_APDU [14:33:13]CAPDU: 80 0D 01 02 [14:33:13]Write to MH i2c: E2 08 00 55 1D 80 0D 01 02 00 00 00 00 EB [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:13]Read from MH i2c: E2 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 03 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 03 00 55 1D 00 90 00 E6 [14:33:13]RAPDU: 90 00 [14:33:13]wFMCommunicate OK [14:33:13]wFMCommunicate request_size=255 [14:33:13]MH_SAM_APDU [14:33:13]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 BB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2A 8C 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 74 00 00 35 04 06 00 C5 9A [14:33:13]Write to MH i2c: E2 02 01 56 1D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 BB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2A 8C 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 74 00 00 35 04 06 00 C5 9A 00 00 0F [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:13]Read from MH i2c: E2 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 03 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 03 00 56 1D 00 90 00 E7 [14:33:13]RAPDU: 90 00 [14:33:13]wFMCommunicate OK [14:33:13]wFMCommunicate request_size=9 [14:33:13]MH_SAM_APDU [14:33:13]CAPDU: 80 0D 02 02 04 2E F5 7B C0 [14:33:13]Write to MH i2c: E2 0C 00 57 1D 80 0D 02 02 04 00 2E F5 7B C0 00 00 54 [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:13]Read from MH i2c: E2 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 03 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 03 00 57 1D 00 90 00 E8 [14:33:13]RAPDU: 90 00 [14:33:13]wFMCommunicate OK [14:33:13]wFMCommunicate request_size=4 [14:33:13]MH_SAM_APDU [14:33:13]CAPDU: 80 0D 03 02 [14:33:13]Write to MH i2c: E2 08 00 58 1D 80 0D 03 02 00 00 00 00 F0 [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:13]Read from MH i2c: E2 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 0B 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 0B 00 58 1D 00 70 40 9D E7 6E 52 8A F1 90 00 60 [14:33:13]RAPDU: 70 40 9D E7 6E 52 8A F1 90 00 [14:33:13]wFMCommunicate OK [14:33:13]SAM_PROTO_SignData done [14:33:13]FM_MakeSignedData done [14:33:13]CreateOFDProtocolMessage [14:33:13]wFMCommunicate request_size=4 [14:33:13]MH_SAM_APDU [14:33:13]CAPDU: 80 11 00 00 [14:33:13]Write to MH i2c: E2 08 00 59 1D 80 11 00 00 00 00 00 00 F0 [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:13]Read from MH i2c: E2 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 17 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: E2 17 00 59 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3F [14:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:33:13]wFMCommunicate OK [14:33:13]CreateOFDProtocolMessage done [14:33:13]OFDSenderStorePacket 29845 [14:33:13]StoreOFDPacket docnum=29845 [14:33:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 60 F8 06 01 62 09 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 BB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2A 8C 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 74 00 00 35 04 06 00 C5 9A 2E F5 7B C0 70 40 9D E7 6E 52 8A F1 [14:33:13]CheckFolder [14:33:13]dirname=/storage/ofd_packets [14:33:13]CheckFolder done [14:33:13]ProducePacketName [14:33:13]name=ofd_packets/00029845 [14:33:13]NVStorageSaveData ofd_packets/00029845 [14:33:13]File name is /storage/ofd_packets/00029845 [14:33:13]Write 300 bytes [14:33:13]NVStorageSaveData done [14:33:13]OFDSenderStorePacket done [14:33:13]KKMCreateOFDPacket done [14:33:13]NVStorageSaveData kkm_last_timestamp [14:33:13]File name is /storage/kkm_last_timestamp [14:33:13]Write 4 bytes [14:33:13]NVStorageSaveData done [14:33:13]ExternCall_PrintAddStr [14:33:13]wPrintStart [14:33:13]Write to MH i2c: 01 00 00 5A 1D 77 [14:33:13]Write i2c OK [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: 01 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: 01 07 00 [14:33:13]MH_I2C_Read... [14:33:13]Read from MH i2c: 01 07 00 5A 1D 00 00 00 00 00 FF 0F 8C [14:33:13]RasterBufferAndPrint [14:33:13]line Счет N : (1)348360 [14:33:13]line ИНН: 02508201610067 [14:33:13]line Контрольно-Кассовый Чек [14:33:13]line ПРОДАЖА [14:33:13]line ТРК (МРК, ГНК) : 71 [14:33:13]line Товар: 2711129700 [14:33:13]line ГАЗ-К-5 [14:33:13]line 10.480 * 33.40 [14:33:13]line = 350.03 [14:33:13]line НДС 12% НСП 1% [14:33:13]line > о реализуемом товаре [14:33:13]line ОКРУГЛЕНИЕ: -0.03 [14:33:13]line ИТОГО: 350.00 [14:33:13]line Внесено: 350.00 [14:33:13]line СДАЧА: 0.00 [14:33:13]line НСП 1% : 3.10 [14:33:13]line НДС 12% : 37.17 [14:33:13]line Наличными: 350.00 [14:33:13]line Безнал.: 0.00 [14:33:13]line Место: АЗС № 108 "Партнер Нефть" [14:33:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:33:13]line СНО: Общий режим [14:33:13]line Чек 119 16.04.2024 14:33 [14:33:13]line Смена: 118 ФФД: 1.0 [14:33:14]line ЗНМ: 0300000027 [14:33:14]line РНМ: 0000138879044617 [14:33:14]line Версия ККМ: 001 [14:33:14]line ФМ: 0000000000963154 [14:33:14]line ФД: 29845 [14:33:14]line ФПД: 217266003475392 [14:33:14]line 1/tax-web-control/client/api/v1/ticket?date=20240416T143314&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29845&fm=217266003475392&tin=02508201610067®Number=0000138879044617&sum=35000 [14:33:14]OFD Sender: Processing packet 29845 [packets to send 8, broken 7] [14:33:14]ProducePacketName [14:33:14]name=ofd_packets/00029845 [14:33:14]OFD Sender: To server: pG, [14:33:14]CommunicateWithHost lk.salyk.kg:30040 [14:33:14]ConnectInit lk.salyk.kg [14:33:14]written 0, free lines is 4095 [14:33:14]Write to MH i2c: 01 00 00 84 1D A1 [14:33:14]Write i2c OK [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: 01 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: 01 07 00 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: 01 07 00 84 1D 00 00 00 00 00 BF 0C 73 [14:33:14]RasterBufferAndPrint [14:33:14]line [14:33:14]line [14:33:14]line [14:33:14]line [14:33:14]line [14:33:14]written 0, free lines is 3267 [14:33:14]MH_Cut [14:33:14]Write to MH i2c: D1 01 00 8B 1D 01 7A [14:33:14]Write i2c OK [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: D1 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: D1 01 00 [14:33:14]MH_I2C_Read... [14:33:14]Read from MH i2c: D1 01 00 8B 1D 00 79 [14:33:14]Write to MH i2c: 01 00 00 8C 1D A9 [14:33:14]Write i2c OK [14:33:14]MH_I2C_Read... [14:33:15]*** Cut start [14:33:15]*** Partial cut [14:33:15]*** CUTSNS_PIN = 1 [14:33:15]*** CUTSNS_PIN = 0 [14:33:15]*** Brake cut motor [14:33:15]Connected sock=10 [14:33:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 60 F8 06 01 62 09 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 0C 0D 00 00 00 00 13 04 06 00 BB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2A 8C 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 74 00 00 35 04 06 00 C5 9A 2E F5 7B C0 70 40 9D E7 6E 52 8A F1 [14:33:15]Read from MH i2c: 01 [14:33:15]MH_I2C_Read... [14:33:15]*** Stop cut motor [14:33:15]*** Cut end [14:33:15]Read from MH i2c: 01 07 00 [14:33:15]MH_I2C_Read... [14:33:15]Read from MH i2c: 01 07 00 8C 1D 00 00 00 00 00 FF 0F BE [14:33:15]process_action close_receipt done [14:33:15]requested_data is exist [14:33:15]produce_requested_data [14:33:15]requested_item fm.sn is exist - process it [14:33:15]wFMCommunicate request_size=4 [14:33:15]MH_SAM_APDU [14:33:15]CAPDU: 80 11 00 00 [14:33:15]Write to MH i2c: E2 08 00 8D 1D 80 11 00 00 00 00 00 00 24 [14:33:15]Write i2c OK [14:33:15]MH_I2C_Read... [14:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:16]Read from MH i2c: E2 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 17 00 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 17 00 8D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 73 [14:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:33:16]wFMCommunicate OK [14:33:16]requested_item fd.num is exist - process it [14:33:16]SAM_PROTO_GetFieldsCounters [14:33:16]wFMCommunicate request_size=4 [14:33:16]MH_SAM_APDU [14:33:16]CAPDU: 80 13 00 00 [14:33:16]Write to MH i2c: E2 08 00 8E 1D 80 13 00 00 00 00 00 00 27 [14:33:16]Write i2c OK [14:33:16]MH_I2C_Read... [14:33:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BC A4 47 00 9B 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 74 00 00 F4 03 04 00 C9 36 1E 66 B6 04 01 00 00 6D 56 08 3E C9 4F E2 13 [14:33:16]CommunicateWithHost err = 0 [14:33:16]CheckOFDResponse [14:33:16]1017 (14) - 77093643461234 [14:33:16]1041 (16) - 0000000000963154 [14:33:16]1040 (4) - 29845 [14:33:16]1012 (4) - 16.04.2024 08:28 [14:33:16]1206 (1) - 0 [14:33:16]OFD Sender: Remove packet 29845 [14:33:16]ProducePacketName [14:33:16]name=ofd_packets/00029845 [14:33:16]NVStorageDeleteData [14:33:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:16]Read from MH i2c: E2 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 62 00 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 62 00 8E 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [14:33:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:16]wFMCommunicate OK [14:33:16]SAM_PROTO_GetFieldsCounters done [14:33:16]requested_item shift.num is exist - process it [14:33:16]requested_item shift.opened is exist - process it [14:33:16]req_shift_opened [14:33:16]FM_GetShiftState [14:33:16]SAM_PROTO_GetShiftState [14:33:16]wFMCommunicate request_size=4 [14:33:16]MH_SAM_APDU [14:33:16]CAPDU: 80 13 01 00 [14:33:16]Write to MH i2c: E2 08 00 8F 1D 80 13 01 00 00 00 00 00 29 [14:33:16]Write i2c OK [14:33:16]MH_I2C_Read... [14:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:16]Read from MH i2c: E2 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 0E 00 [14:33:16]MH_I2C_Read... [14:33:16]Read from MH i2c: E2 0E 00 8F 1D 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 D7 [14:33:16]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:33:16]wFMCommunicate OK [14:33:16]SAM_PROTO_GetShiftState done [14:33:16]FM_GetShiftState done [14:33:16]req_shift_opened done [14:33:16]requested_item shift.open_date is exist - process it [14:33:16]req_shift_open_date [14:33:16]req_shift_open_date done [14:33:16]produce_requested_data done [14:33:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29845,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [14:33:16]process_action_free close_receipt [14:33:16]json_value_free [14:33:16]json_value_free done [14:33:16]process_json_proto returns [14:33:16]Send response to host [14:33:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29845,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [14:33:16]free response buf [14:33:16]execute_script done [14:33:16]execute_script returns [14:33:16]free content buf [14:33:16]Sock 7.Close socket [14:33:16]Sock 7.Thread stoped [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:17]accept exits with 9 [14:34:17]New connection [14:34:17]New thread 3067133284 created [14:34:17]Thread 3067276644 joined [14:34:17]Waiting for new connection... [14:34:17] Sock 9.Parse request [14:34:17]Sock 9.Check first char [14:34:17]Sock 9.First char is OK [14:34:17]request: POST /json_proto HTTP/1.0 [14:34:17]Method: POST [14:34:17]URL: /json_proto [14:34:17]Method is POST - this is cgi request [14:34:17]url: /json_proto [14:34:17]query_string will be loaded in cgi processing [14:34:17]execute_cgi json_proto POST (null) [14:34:17]execute_cgi path=json_proto method=POST [14:34:17]POST find Content-Length [14:34:17]Host: 172.17.33.3:8080 [14:34:17]Content-Length: 215 [14:34:17]Content-Type: application/json [14:34:17] [14:34:17]POST finish read [14:34:17]Found Content-Length = 215 [14:34:17]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" ] } } [14:34:17]execute_script... [14:34:17]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" ] } } [14:34:17]POST & json_proto [14:34:17]process_json_proto [14:34:17]json parsed OK: [14:34:17]protocol is kg_v1.0 [14:34:17]action value=get_value [14:34:17]process_action get_value [14:34:17]cmd_get_value [14:34:17]process_action get_value done [14:34:17]requested_data is exist [14:34:17]produce_requested_data [14:34:17]requested_item kkm.sn is exist - process it [14:34:17]requested_item kkm.ver is exist - process it [14:34:17]requested_item fm.sn is exist - process it [14:34:17]wFMCommunicate request_size=4 [14:34:17]MH_SAM_APDU [14:34:17]CAPDU: 80 11 00 00 [14:34:17]Write to MH i2c: E2 08 00 90 1D 80 11 00 00 00 00 00 00 27 [14:34:17]Write i2c OK [14:34:17]MH_I2C_Read... [14:34:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:17]Read from MH i2c: E2 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: E2 17 00 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: E2 17 00 90 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 76 [14:34:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:34:17]wFMCommunicate OK [14:34:17]requested_item fd.num is exist - process it [14:34:17]SAM_PROTO_GetFieldsCounters [14:34:17]wFMCommunicate request_size=4 [14:34:17]MH_SAM_APDU [14:34:17]CAPDU: 80 13 00 00 [14:34:17]Write to MH i2c: E2 08 00 91 1D 80 13 00 00 00 00 00 00 2A [14:34:17]Write i2c OK [14:34:17]MH_I2C_Read... [14:34:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:17]Read from MH i2c: E2 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: E2 62 00 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: E2 62 00 91 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [14:34:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:34:17]wFMCommunicate OK [14:34:17]SAM_PROTO_GetFieldsCounters done [14:34:17]requested_item shift.num is exist - process it [14:34:17]requested_item shift.opened is exist - process it [14:34:17]req_shift_opened [14:34:17]FM_GetShiftState [14:34:17]SAM_PROTO_GetShiftState [14:34:17]wFMCommunicate request_size=4 [14:34:17]MH_SAM_APDU [14:34:17]CAPDU: 80 13 01 00 [14:34:17]Write to MH i2c: E2 08 00 92 1D 80 13 01 00 00 00 00 00 2C [14:34:17]Write i2c OK [14:34:17]MH_I2C_Read... [14:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:17]Read from MH i2c: E2 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: E2 0E 00 [14:34:17]MH_I2C_Read... [14:34:17]Read from MH i2c: E2 0E 00 92 1D 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 DA [14:34:17]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:34:17]wFMCommunicate OK [14:34:17]SAM_PROTO_GetShiftState done [14:34:17]FM_GetShiftState done [14:34:17]req_shift_opened done [14:34:17]requested_item shift.open_date is exist - process it [14:34:17]req_shift_open_date [14:34:17]req_shift_open_date done [14:34:17]produce_requested_data done [14:34:17]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29845,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [14:34:17]process_action_free get_value [14:34:17]json_value_free [14:34:17]json_value_free done [14:34:17]process_json_proto returns [14:34:17]Send response to host [14:34:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29845,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [14:34:17]free response buf [14:34:17]execute_script done [14:34:17]execute_script returns [14:34:17]free content buf [14:34:17]Sock 9.Close socket [14:34:17]Sock 9.Thread stoped [14:34:17]accept exits with 7 [14:34:17]New connection [14:34:17]New thread 3067276644 created [14:34:17]Thread 3067133284 joined [14:34:17]Waiting for new connection... [14:34:17] Sock 7.Parse request [14:34:17]Sock 7.Check first char [14:34:17]Sock 7.First char is OK [14:34:17]request: POST /json_proto HTTP/1.0 [14:34:17]Method: POST [14:34:17]URL: /json_proto [14:34:17]Method is POST - this is cgi request [14:34:17]url: /json_proto [14:34:17]query_string will be loaded in cgi processing [14:34:17]execute_cgi json_proto POST (null) [14:34:17]execute_cgi path=json_proto method=POST [14:34:17]POST find Content-Length [14:34:17]Host: 172.17.33.3:8080 [14:34:17]Content-Length: 331 [14:34:17]Content-Type: application/json [14:34:17] [14:34:17]POST finish read [14:34:17]Found Content-Length = 331 [14:34:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:34:17]execute_script... [14:34:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:34:17]POST & json_proto [14:34:17]process_json_proto [14:34:17]json parsed OK: [14:34:17]protocol is kg_v1.0 [14:34:17]action value=get_value [14:34:17]process_action get_value [14:34:17]cmd_get_value [14:34:17]process_action get_value done [14:34:17]requested_data is exist [14:34:17]produce_requested_data [14:34:17]requested_item fm.sale.total is exist - process it [14:34:17]SAM_PROTO_GetFMData [14:34:17]wFMCommunicate request_size=4 [14:34:17]MH_SAM_APDU [14:34:17]CAPDU: 80 13 03 00 [14:34:17]Write to MH i2c: E2 08 00 93 1D 80 13 03 00 00 00 00 00 2F [14:34:17]Write i2c OK [14:34:17]MH_I2C_Read... [14:34:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:34:18]Read from MH i2c: E2 [14:34:18]MH_I2C_Read... [14:34:18]Read from MH i2c: E2 FD 00 [14:34:18]MH_I2C_Read... [14:34:18]Read from MH i2c: E2 FD 00 93 1D 00 C3 04 85 04 BF 04 6E 04 04 00 A9 73 00 00 69 04 A1 00 6F 04 04 00 3C 70 00 00 B1 04 04 00 22 97 FB B6 70 04 04 00 64 A5 0E 74 72 04 04 00 BE F1 EC 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 84 6F 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 28 97 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 EF 03 09 00 F6 90 00 FA [14:34:18]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 A9 73 00 00 69 04 A1 00 6F 04 04 00 3C 70 00 00 B1 04 04 00 22 97 FB B6 70 04 04 00 64 A5 0E 74 72 04 04 00 BE F1 EC 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 49 84 6F 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 28 97 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 EF 03 09 00 F6 90 00 [14:34:18]wFMCommunicate OK [14:34:18]wFMCommunicate request_size=4 [14:34:18]MH_SAM_APDU [14:34:18]CAPDU: 80 17 00 00 [14:34:18]Write to MH i2c: E2 08 00 94 1D 80 17 00 00 00 00 00 00 31 [14:34:18]Write i2c OK [14:34:18]MH_I2C_Read... [14:34:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:34:18]Read from MH i2c: E2 [14:34:18]MH_I2C_Read... [14:34:18]Read from MH i2c: E2 FD 00 [14:34:18]MH_I2C_Read... [14:34:18]Read from MH i2c: E2 FD 00 94 1D 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EB [14:34:18]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:34:18]wFMCommunicate OK [14:34:18]wFMCommunicate request_size=4 [14:34:18]MH_SAM_APDU [14:34:18]CAPDU: 80 17 00 00 [14:34:18]Write to MH i2c: E2 08 00 95 1D 80 17 00 00 00 00 00 00 32 [14:34:18]Write i2c OK [14:34:18]MH_I2C_Read... [14:34:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:34:18]Read from MH i2c: E2 [14:34:18]MH_I2C_Read... [14:34:18]Read from MH i2c: E2 FD 00 [14:34:18]MH_I2C_Read... [14:34:18]Read from MH i2c: E2 FD 00 95 1D 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 50 [14:34:18]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:34:18]wFMCommunicate OK [14:34:18]wFMCommunicate request_size=4 [14:34:18]MH_SAM_APDU [14:34:18]CAPDU: 80 17 00 00 [14:34:18]Write to MH i2c: E2 08 00 96 1D 80 17 00 00 00 00 00 00 33 [14:34:18]Write i2c OK [14:34:18]MH_I2C_Read... [14:34:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:34:18]Read from MH i2c: E2 [14:34:18]MH_I2C_Read... [14:34:18]Read from MH i2c: E2 FD 00 [14:34:18]MH_I2C_Read... [14:34:18]Read from MH i2c: E2 FD 00 96 1D 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A5 [14:34:18]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:34:18]wFMCommunicate OK [14:34:18]wFMCommunicate request_size=4 [14:34:18]MH_SAM_APDU [14:34:18]CAPDU: 80 17 00 00 [14:34:18]Write to MH i2c: E2 08 00 97 1D 80 17 00 00 00 00 00 00 34 [14:34:18]Write i2c OK [14:34:18]MH_I2C_Read... [14:34:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [14:34:19]Read from MH i2c: E2 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 E0 00 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 E0 00 97 1D 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1E [14:34:19]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:34:19]wFMCommunicate OK [14:34:19]SAM_PROTO_GetFMData done [14:34:19]requested_item fm.sale_refund.total is exist - process it [14:34:19]requested_item fm.buy.total is exist - process it [14:34:19]requested_item shift.sale.total is exist - process it [14:34:19]SAM_PROTO_GetShiftData [14:34:19]wFMCommunicate request_size=4 [14:34:19]MH_SAM_APDU [14:34:19]CAPDU: 80 13 02 00 [14:34:19]Write to MH i2c: E2 08 00 98 1D 80 13 02 00 00 00 00 00 33 [14:34:19]Write i2c OK [14:34:19]MH_I2C_Read... [14:34:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:34:19]Read from MH i2c: E2 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 FD 00 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 FD 00 98 1D 00 AF 04 AA 04 AB 04 6E 04 04 00 77 00 00 00 69 04 9C 00 6F 04 04 00 77 00 00 00 B1 04 03 00 A5 1C C9 70 04 03 00 B0 D4 52 72 04 03 00 F5 47 76 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 52 5C 15 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 A9 C7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 37 [14:34:19]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 77 00 00 00 69 04 9C 00 6F 04 04 00 77 00 00 00 B1 04 03 00 A5 1C C9 70 04 03 00 B0 D4 52 72 04 03 00 F5 47 76 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 52 5C 15 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 A9 C7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 [14:34:19]wFMCommunicate OK [14:34:19]wFMCommunicate request_size=4 [14:34:19]MH_SAM_APDU [14:34:19]CAPDU: 80 17 00 00 [14:34:19]Write to MH i2c: E2 08 00 99 1D 80 17 00 00 00 00 00 00 36 [14:34:19]Write i2c OK [14:34:19]MH_I2C_Read... [14:34:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:34:19]Read from MH i2c: E2 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 FD 00 [14:34:19]MH_I2C_Read... [14:34:19]Read from MH i2c: E2 FD 00 99 1D 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 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 90 00 4F [14:34:19]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 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 90 00 [14:34:20]wFMCommunicate OK [14:34:20]wFMCommunicate request_size=4 [14:34:20]MH_SAM_APDU [14:34:20]CAPDU: 80 17 00 00 [14:34:20]Write to MH i2c: E2 08 00 9A 1D 80 17 00 00 00 00 00 00 37 [14:34:20]Write i2c OK [14:34:20]MH_I2C_Read... [14:34:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:34:20]Read from MH i2c: E2 [14:34:20]MH_I2C_Read... [14:34:20]Read from MH i2c: E2 FD 00 [14:34:20]MH_I2C_Read... [14:34:20]Read from MH i2c: E2 FD 00 9A 1D 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EB [14:34:20]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 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 90 00 [14:34:20]wFMCommunicate OK [14:34:20]wFMCommunicate request_size=4 [14:34:20]MH_SAM_APDU [14:34:20]CAPDU: 80 17 00 00 [14:34:20]Write to MH i2c: E2 08 00 9B 1D 80 17 00 00 00 00 00 00 38 [14:34:20]Write i2c OK [14:34:20]MH_I2C_Read... [14:34:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:34:20]Read from MH i2c: E2 [14:34:20]MH_I2C_Read... [14:34:20]Read from MH i2c: E2 FD 00 [14:34:20]MH_I2C_Read... [14:34:20]Read from MH i2c: E2 FD 00 9B 1D 00 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 90 00 B6 [14:34:20]RAPDU: 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 90 00 [14:34:20]wFMCommunicate OK [14:34:20]wFMCommunicate request_size=4 [14:34:20]MH_SAM_APDU [14:34:20]CAPDU: 80 17 00 00 [14:34:20]Write to MH i2c: E2 08 00 9C 1D 80 17 00 00 00 00 00 00 39 [14:34:20]Write i2c OK [14:34:20]MH_I2C_Read... [14:34:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [14:34:20]Read from MH i2c: E2 [14:34:20]MH_I2C_Read... [14:34:20]Read from MH i2c: E2 CC 00 [14:34:20]MH_I2C_Read... [14:34:20]Read from MH i2c: E2 CC 00 9C 1D 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1A [14:34:20]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:34:20]wFMCommunicate OK [14:34:20]SAM_PROTO_GetShiftData done [14:34:20]requested_item shift.sale.total_cash is exist - process it [14:34:20]requested_item shift.sale_refund.total is exist - process it [14:34:20]requested_item shift.sale_refund.total_cash is exist - process it [14:34:20]requested_item shift.buy.total is exist - process it [14:34:20]requested_item shift.buy.total_cash is exist - process it [14:34:20]produce_requested_data done [14:34:20]produce_requested_data return {"fm.sale.total":30699415.38,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":131800.69,"shift.sale.total_cash":54284.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} [14:34:20]process_action_free get_value [14:34:20]json_value_free [14:34:20]json_value_free done [14:34:20]process_json_proto returns [14:34:20]Send response to host [14:34:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30699415.38,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":131800.69,"shift.sale.total_cash":54284.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}}} [14:34:20]free response buf [14:34:20]execute_script done [14:34:20]execute_script returns [14:34:20]free content buf [14:34:20]Sock 7.Close socket [14:34:20]Sock 7.Thread stoped [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [14:38:21]OFD Sender: No OFD packet to send [14:38:26]OFD Sender: No OFD packet to send [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:36]OFD Sender: No OFD packet to send [14:39:41]OFD Sender: No OFD packet to send [14:39:46]OFD Sender: No OFD packet to send [14:39:51]OFD Sender: No OFD packet to send [14:39:56]OFD Sender: No OFD packet to send [14:40:01]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:03]accept exits with 9 [14:41:03]New connection [14:41:03]New thread 3067133284 created [14:41:03]Thread 3067276644 joined [14:41:03]Waiting for new connection... [14:41:03] Sock 9.Parse request [14:41:03]Sock 9.Check first char [14:41:03]Sock 9.First char is OK [14:41:03]request: POST /json_proto HTTP/1.0 [14:41:03]Method: POST [14:41:03]URL: /json_proto [14:41:03]Method is POST - this is cgi request [14:41:03]url: /json_proto [14:41:03]query_string will be loaded in cgi processing [14:41:03]execute_cgi json_proto POST (null) [14:41:03]execute_cgi path=json_proto method=POST [14:41:03]POST find Content-Length [14:41:03]Host: 172.17.33.3:8080 [14:41:03]Content-Length: 1204 [14:41:03]Content-Type: application/json [14:41:03] [14:41:03]POST finish read [14:41:03]Found Content-Length = 1204 [14:41:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348361\u000A16.04.2024 14:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02137\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:03]execute_script... [14:41:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348361\u000A16.04.2024 14:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02137\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:03]POST & json_proto [14:41:03]process_json_proto [14:41:03]json parsed OK: [14:41:03]protocol is kg_v1.0 [14:41:03]action value=print_text [14:41:03]process_action print_text [14:41:03]cmd_print_text [14:41:03]ExternCall_PrintAddStr [14:41:03]wPrintStart [14:41:03]Write to MH i2c: 01 00 00 9D 1D BA [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: 01 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: 01 07 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: 01 07 00 9D 1D 00 00 00 00 00 FF 0F CF [14:41:03]RasterBufferAndPrint [14:41:03]line *****ТОВАРНЫЙ ЧЕК***** [14:41:03]line АЗС 108 [14:41:03]line Партнер нефть [14:41:03]line 02508201610067 [14:41:03]line Кассир : Шадыканова Ж. [14:41:03]line Счет N : (1)348361 [14:41:03]line 16.04.2024 14:22 [14:41:03]line ПРОДАЖА [14:41:03]line ТРК (МРК, ГНК): 51 [14:41:03]line Вид ГСМ : 2710194210 [14:41:03]line ДТ-К-5 [14:41:03]line 60.000 x 72.90 [14:41:03]line ИТОГ: 4374.00 [14:41:03]line Тип оплаты: Талоны: Топливная Карта [14:41:03]line 02137 [14:41:03]line ______________________ [14:41:03]line (подпись) [14:41:03]written 0, free lines is 4095 [14:41:04]Write to MH i2c: 01 00 00 B2 1D CF [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: 01 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: 01 07 00 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: 01 07 00 B2 1D 00 00 00 00 00 F4 0D D7 [14:41:04]RasterBufferAndPrint [14:41:04]line [14:41:04]line [14:41:04]line [14:41:04]line [14:41:04]line [14:41:04]written 0, free lines is 3574 [14:41:04]MH_Cut [14:41:04]Write to MH i2c: D1 01 00 B9 1D 01 A8 [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: D1 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: D1 01 00 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: D1 01 00 B9 1D 00 A7 [14:41:04]Write to MH i2c: 01 00 00 BA 1D D7 [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]*** Cut start [14:41:04]*** Partial cut [14:41:04]*** CUTSNS_PIN = 1 [14:41:04]*** CUTSNS_PIN = 0 [14:41:04]*** Brake cut motor [14:41:05]Read from MH i2c: 01 [14:41:05]MH_I2C_Read... [14:41:05]*** Stop cut motor [14:41:05]*** Cut end [14:41:05]Read from MH i2c: 01 07 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: 01 07 00 BA 1D 00 00 00 00 00 FF 0F EC [14:41:05]process_action print_text done [14:41:05]requested_data is exist [14:41:05]produce_requested_data [14:41:05]requested_item fm.sn is exist - process it [14:41:05]wFMCommunicate request_size=4 [14:41:05]MH_SAM_APDU [14:41:05]CAPDU: 80 11 00 00 [14:41:05]Write to MH i2c: E2 08 00 BB 1D 80 11 00 00 00 00 00 00 52 [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:05]Read from MH i2c: E2 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 17 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 17 00 BB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A1 [14:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:41:05]wFMCommunicate OK [14:41:05]requested_item fd.num is exist - process it [14:41:05]SAM_PROTO_GetFieldsCounters [14:41:05]wFMCommunicate request_size=4 [14:41:05]MH_SAM_APDU [14:41:05]CAPDU: 80 13 00 00 [14:41:05]Write to MH i2c: E2 08 00 BC 1D 80 13 00 00 00 00 00 00 55 [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:05]Read from MH i2c: E2 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 62 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 62 00 BC 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [14:41:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:05]wFMCommunicate OK [14:41:05]SAM_PROTO_GetFieldsCounters done [14:41:05]requested_item shift.num is exist - process it [14:41:05]requested_item shift.opened is exist - process it [14:41:05]req_shift_opened [14:41:05]FM_GetShiftState [14:41:05]SAM_PROTO_GetShiftState [14:41:05]wFMCommunicate request_size=4 [14:41:05]MH_SAM_APDU [14:41:05]CAPDU: 80 13 01 00 [14:41:05]Write to MH i2c: E2 08 00 BD 1D 80 13 01 00 00 00 00 00 57 [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:05]Read from MH i2c: E2 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 0E 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 0E 00 BD 1D 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 05 [14:41:05]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:41:05]wFMCommunicate OK [14:41:05]SAM_PROTO_GetShiftState done [14:41:05]FM_GetShiftState done [14:41:05]req_shift_opened done [14:41:05]requested_item shift.open_date is exist - process it [14:41:05]req_shift_open_date [14:41:05]req_shift_open_date done [14:41:05]produce_requested_data done [14:41:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29845,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [14:41:05]process_action_free print_text [14:41:05]json_value_free [14:41:05]json_value_free done [14:41:05]process_json_proto returns [14:41:05]Send response to host [14:41:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29845,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [14:41:05]free response buf [14:41:05]execute_script done [14:41:05]execute_script returns [14:41:05]free content buf [14:41:05]Sock 9.Close socket [14:41:05]Sock 9.Thread stoped [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:37]OFD Sender: No OFD packet to send [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [14:51:07]OFD Sender: No OFD packet to send [14:51:12]OFD Sender: No OFD packet to send [14:51:17]OFD Sender: No OFD packet to send [14:51:22]OFD Sender: No OFD packet to send [14:51:27]OFD Sender: No OFD packet to send [14:51:32]OFD Sender: No OFD packet to send [14:51:37]OFD Sender: No OFD packet to send [14:51:42]OFD Sender: No OFD packet to send [14:51:47]OFD Sender: No OFD packet to send [14:51:52]OFD Sender: No OFD packet to send [14:51:57]OFD Sender: No OFD packet to send [14:52:02]OFD Sender: No OFD packet to send [14:52:07]OFD Sender: No OFD packet to send [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]accept exits with 7 [14:54:52]New connection [14:54:52]New thread 3067276644 created [14:54:52]Thread 3067133284 joined [14:54:52]Waiting for new connection... [14:54:52] Sock 7.Parse request [14:54:52]Sock 7.Check first char [14:54:52]Sock 7.First char is OK [14:54:52]request: POST /json_proto HTTP/1.0 [14:54:52]Method: POST [14:54:52]URL: /json_proto [14:54:52]Method is POST - this is cgi request [14:54:52]url: /json_proto [14:54:52]query_string will be loaded in cgi processing [14:54:52]execute_cgi json_proto POST (null) [14:54:52]execute_cgi path=json_proto method=POST [14:54:52]POST find Content-Length [14:54:52]Host: 172.17.33.3:8080 [14:54:52]Content-Length: 1204 [14:54:52]Content-Type: application/json [14:54:52] [14:54:52]POST finish read [14:54:52]Found Content-Length = 1204 [14:54:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348362\u000A16.04.2024 14:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.580 x 72.90\u000A\u0418\u0422\u041E\u0413: 1500.28\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:52]execute_script... [14:54:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348362\u000A16.04.2024 14:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.580 x 72.90\u000A\u0418\u0422\u041E\u0413: 1500.28\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:52]POST & json_proto [14:54:52]process_json_proto [14:54:52]json parsed OK: [14:54:52]protocol is kg_v1.0 [14:54:52]action value=print_text [14:54:52]process_action print_text [14:54:52]cmd_print_text [14:54:52]ExternCall_PrintAddStr [14:54:52]wPrintStart [14:54:52]Write to MH i2c: 01 00 00 BE 1D DB [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: 01 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: 01 07 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: 01 07 00 BE 1D 00 00 00 00 00 FF 0F F0 [14:54:52]RasterBufferAndPrint [14:54:52]line *****ТОВАРНЫЙ ЧЕК***** [14:54:52]line АЗС 108 [14:54:52]line Партнер нефть [14:54:52]line 02508201610067 [14:54:52]line Кассир : Шадыканова Ж. [14:54:52]line Счет N : (1)348362 [14:54:52]line 16.04.2024 14:36 [14:54:52]line ПРОДАЖА [14:54:52]line ТРК (МРК, ГНК): 11 [14:54:52]line Вид ГСМ : 2710194210 [14:54:52]line ДТ-К-5 [14:54:52]line 20.580 x 72.90 [14:54:52]line ИТОГ: 1500.28 [14:54:52]line Тип оплаты: Талоны: Топливная Карта [14:54:52]line 65563 [14:54:52]line ______________________ [14:54:52]line (подпись) [14:54:52]written 0, free lines is 4095 [14:54:52]OFD Sender: No OFD packet to send [14:54:52]Write to MH i2c: 01 00 00 D3 1D F0 [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: 01 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: 01 07 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: 01 07 00 D3 1D 00 00 00 00 00 F5 0D F9 [14:54:52]RasterBufferAndPrint [14:54:52]line [14:54:52]line [14:54:52]line [14:54:52]line [14:54:52]line [14:54:52]written 0, free lines is 3575 [14:54:52]MH_Cut [14:54:52]Write to MH i2c: D1 01 00 DA 1D 01 C9 [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: D1 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: D1 01 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: D1 01 00 DA 1D 00 C8 [14:54:52]Write to MH i2c: 01 00 00 DB 1D F8 [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:53]*** Cut start [14:54:53]*** Partial cut [14:54:53]*** CUTSNS_PIN = 1 [14:54:53]*** CUTSNS_PIN = 0 [14:54:53]*** Brake cut motor [14:54:54]Read from MH i2c: 01 [14:54:54]MH_I2C_Read... [14:54:54]*** Stop cut motor [14:54:54]*** Cut end [14:54:54]Read from MH i2c: 01 07 00 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: 01 07 00 DB 1D 00 00 00 00 00 FF 0F 0D [14:54:54]process_action print_text done [14:54:54]requested_data is exist [14:54:54]produce_requested_data [14:54:54]requested_item fm.sn is exist - process it [14:54:54]wFMCommunicate request_size=4 [14:54:54]MH_SAM_APDU [14:54:54]CAPDU: 80 11 00 00 [14:54:54]Write to MH i2c: E2 08 00 DC 1D 80 11 00 00 00 00 00 00 73 [14:54:54]Write i2c OK [14:54:54]MH_I2C_Read... [14:54:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:54]Read from MH i2c: E2 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 17 00 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 17 00 DC 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C2 [14:54:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:54:54]wFMCommunicate OK [14:54:54]requested_item fd.num is exist - process it [14:54:54]SAM_PROTO_GetFieldsCounters [14:54:54]wFMCommunicate request_size=4 [14:54:54]MH_SAM_APDU [14:54:54]CAPDU: 80 13 00 00 [14:54:54]Write to MH i2c: E2 08 00 DD 1D 80 13 00 00 00 00 00 00 76 [14:54:54]Write i2c OK [14:54:54]MH_I2C_Read... [14:54:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:54]Read from MH i2c: E2 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 62 00 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 62 00 DD 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [14:54:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:54]wFMCommunicate OK [14:54:54]SAM_PROTO_GetFieldsCounters done [14:54:54]requested_item shift.num is exist - process it [14:54:54]requested_item shift.opened is exist - process it [14:54:54]req_shift_opened [14:54:54]FM_GetShiftState [14:54:54]SAM_PROTO_GetShiftState [14:54:54]wFMCommunicate request_size=4 [14:54:54]MH_SAM_APDU [14:54:54]CAPDU: 80 13 01 00 [14:54:54]Write to MH i2c: E2 08 00 DE 1D 80 13 01 00 00 00 00 00 78 [14:54:54]Write i2c OK [14:54:54]MH_I2C_Read... [14:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:54]Read from MH i2c: E2 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 0E 00 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 0E 00 DE 1D 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 26 [14:54:54]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:54:54]wFMCommunicate OK [14:54:54]SAM_PROTO_GetShiftState done [14:54:54]FM_GetShiftState done [14:54:54]req_shift_opened done [14:54:54]requested_item shift.open_date is exist - process it [14:54:54]req_shift_open_date [14:54:54]req_shift_open_date done [14:54:54]produce_requested_data done [14:54:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29845,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [14:54:54]process_action_free print_text [14:54:54]json_value_free [14:54:54]json_value_free done [14:54:54]process_json_proto returns [14:54:54]Send response to host [14:54:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29845,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [14:54:54]free response buf [14:54:54]execute_script done [14:54:54]execute_script returns [14:54:54]free content buf [14:54:54]Sock 7.Close socket [14:54:54]Sock 7.Thread stoped [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]accept exits with 9 [14:55:57]New connection [14:55:57]New thread 3067133284 created [14:55:57]Thread 3067276644 joined [14:55:57]Waiting for new connection... [14:55:57] Sock 9.Parse request [14:55:57]Sock 9.Check first char [14:55:57]Sock 9.First char is OK [14:55:57]request: POST /json_proto HTTP/1.0 [14:55:57]Method: POST [14:55:57]URL: /json_proto [14:55:57]Method is POST - this is cgi request [14:55:57]url: /json_proto [14:55:57]query_string will be loaded in cgi processing [14:55:57]execute_cgi json_proto POST (null) [14:55:57]execute_cgi path=json_proto method=POST [14:55:57]POST find Content-Length [14:55:57]Host: 172.17.33.3:8080 [14:55:57]Content-Length: 1204 [14:55:57]Content-Type: application/json [14:55:57] [14:55:57]POST finish read [14:55:57]Found Content-Length = 1204 [14:55:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348363\u000A16.04.2024 14:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43345\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:57]execute_script... [14:55:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348363\u000A16.04.2024 14:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43345\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:57]POST & json_proto [14:55:57]process_json_proto [14:55:57]json parsed OK: [14:55:57]protocol is kg_v1.0 [14:55:57]action value=print_text [14:55:57]process_action print_text [14:55:57]cmd_print_text [14:55:57]ExternCall_PrintAddStr [14:55:57]wPrintStart [14:55:57]Write to MH i2c: 01 00 00 DF 1D FC [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: 01 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: 01 07 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: 01 07 00 DF 1D 00 00 00 00 00 FF 0F 11 [14:55:57]RasterBufferAndPrint [14:55:57]line *****ТОВАРНЫЙ ЧЕК***** [14:55:57]line АЗС 108 [14:55:57]line Партнер нефть [14:55:57]line 02508201610067 [14:55:57]line Кассир : Шадыканова Ж. [14:55:57]line Счет N : (1)348363 [14:55:57]line 16.04.2024 14:37 [14:55:57]line ПРОДАЖА [14:55:57]line ТРК (МРК, ГНК): 11 [14:55:57]line Вид ГСМ : 2710194210 [14:55:57]line ДТ-К-5 [14:55:57]line 20.000 x 72.90 [14:55:57]line ИТОГ: 1458.00 [14:55:57]line Тип оплаты: Талоны: Топливная Карта [14:55:57]line 43345 [14:55:57]line ______________________ [14:55:57]line (подпись) [14:55:57]written 0, free lines is 4095 [14:55:57]Write to MH i2c: 01 00 00 F4 1D 11 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: 01 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: 01 07 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: 01 07 00 F4 1D 00 00 00 00 00 F4 0D 19 [14:55:57]RasterBufferAndPrint [14:55:57]line [14:55:57]line [14:55:57]line [14:55:57]line [14:55:57]line [14:55:57]written 0, free lines is 3574 [14:55:57]MH_Cut [14:55:57]Write to MH i2c: D1 01 00 FB 1D 01 EA [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: D1 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: D1 01 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: D1 01 00 FB 1D 00 E9 [14:55:57]Write to MH i2c: 01 00 00 FC 1D 19 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]OFD Sender: No OFD packet to send [14:55:58]*** Cut start [14:55:58]*** Partial cut [14:55:58]*** CUTSNS_PIN = 1 [14:55:58]*** CUTSNS_PIN = 0 [14:55:58]*** Brake cut motor [14:55:58]Read from MH i2c: 01 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 07 00 [14:55:58]MH_I2C_Read... [14:55:58]*** Stop cut motor [14:55:58]*** Cut end [14:55:58]Read from MH i2c: 01 07 00 FC 1D 00 00 00 00 00 FF 0F 2E [14:55:58]process_action print_text done [14:55:58]requested_data is exist [14:55:58]produce_requested_data [14:55:58]requested_item fm.sn is exist - process it [14:55:58]wFMCommunicate request_size=4 [14:55:58]MH_SAM_APDU [14:55:58]CAPDU: 80 11 00 00 [14:55:58]Write to MH i2c: E2 08 00 FD 1D 80 11 00 00 00 00 00 00 94 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:58]Read from MH i2c: E2 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 17 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 17 00 FD 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E3 [14:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:55:58]wFMCommunicate OK [14:55:58]requested_item fd.num is exist - process it [14:55:58]SAM_PROTO_GetFieldsCounters [14:55:58]wFMCommunicate request_size=4 [14:55:58]MH_SAM_APDU [14:55:58]CAPDU: 80 13 00 00 [14:55:58]Write to MH i2c: E2 08 00 FE 1D 80 13 00 00 00 00 00 00 97 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:59]Read from MH i2c: E2 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 62 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 62 00 FE 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [14:55:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:59]wFMCommunicate OK [14:55:59]SAM_PROTO_GetFieldsCounters done [14:55:59]requested_item shift.num is exist - process it [14:55:59]requested_item shift.opened is exist - process it [14:55:59]req_shift_opened [14:55:59]FM_GetShiftState [14:55:59]SAM_PROTO_GetShiftState [14:55:59]wFMCommunicate request_size=4 [14:55:59]MH_SAM_APDU [14:55:59]CAPDU: 80 13 01 00 [14:55:59]Write to MH i2c: E2 08 00 FF 1D 80 13 01 00 00 00 00 00 99 [14:55:59]Write i2c OK [14:55:59]MH_I2C_Read... [14:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:59]Read from MH i2c: E2 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 0E 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 0E 00 FF 1D 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 47 [14:55:59]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:55:59]wFMCommunicate OK [14:55:59]SAM_PROTO_GetShiftState done [14:55:59]FM_GetShiftState done [14:55:59]req_shift_opened done [14:55:59]requested_item shift.open_date is exist - process it [14:55:59]req_shift_open_date [14:55:59]req_shift_open_date done [14:55:59]produce_requested_data done [14:55:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29845,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [14:55:59]process_action_free print_text [14:55:59]json_value_free [14:55:59]json_value_free done [14:55:59]process_json_proto returns [14:55:59]Send response to host [14:55:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29845,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [14:55:59]free response buf [14:55:59]execute_script done [14:55:59]execute_script returns [14:55:59]free content buf [14:55:59]Sock 9.Close socket [14:55:59]Sock 9.Thread stoped [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:45]accept exits with 7 [14:56:45]New connection [14:56:45]New thread 3067276644 created [14:56:45]Thread 3067133284 joined [14:56:45]Waiting for new connection... [14:56:45] Sock 7.Parse request [14:56:45]Sock 7.Check first char [14:56:45]Sock 7.First char is OK [14:56:45]request: POST /json_proto HTTP/1.0 [14:56:45]Method: POST [14:56:45]URL: /json_proto [14:56:45]Method is POST - this is cgi request [14:56:45]url: /json_proto [14:56:45]query_string will be loaded in cgi processing [14:56:45]execute_cgi json_proto POST (null) [14:56:45]execute_cgi path=json_proto method=POST [14:56:45]POST find Content-Length [14:56:45]Host: 172.17.33.3:8080 [14:56:45]Content-Length: 1202 [14:56:45]Content-Type: application/json [14:56:45] [14:56:45]POST finish read [14:56:45]Found Content-Length = 1202 [14:56:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348364\u000A16.04.2024 14:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 6.740 x 72.90\u000A\u0418\u0422\u041E\u0413: 491.35\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68982\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:45]execute_script... [14:56:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348364\u000A16.04.2024 14:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 6.740 x 72.90\u000A\u0418\u0422\u041E\u0413: 491.35\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68982\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:45]POST & json_proto [14:56:45]process_json_proto [14:56:45]json parsed OK: [14:56:45]protocol is kg_v1.0 [14:56:45]action value=print_text [14:56:45]process_action print_text [14:56:45]cmd_print_text [14:56:45]ExternCall_PrintAddStr [14:56:45]wPrintStart [14:56:45]Write to MH i2c: 01 00 00 00 1E 1E [14:56:45]Write i2c OK [14:56:45]MH_I2C_Read... [14:56:45]Read from MH i2c: 01 [14:56:45]MH_I2C_Read... [14:56:45]Read from MH i2c: 01 07 00 [14:56:45]MH_I2C_Read... [14:56:45]Read from MH i2c: 01 07 00 00 1E 00 00 00 00 00 FF 0F 33 [14:56:45]RasterBufferAndPrint [14:56:45]line *****ТОВАРНЫЙ ЧЕК***** [14:56:45]line АЗС 108 [14:56:45]line Партнер нефть [14:56:45]line 02508201610067 [14:56:45]line Кассир : Шадыканова Ж. [14:56:45]line Счет N : (1)348364 [14:56:45]line 16.04.2024 14:38 [14:56:45]line ПРОДАЖА [14:56:45]line ТРК (МРК, ГНК): 11 [14:56:45]line Вид ГСМ : 2710194210 [14:56:45]line ДТ-К-5 [14:56:45]line 6.740 x 72.90 [14:56:45]line ИТОГ: 491.35 [14:56:45]line Тип оплаты: Талоны: Топливная Карта [14:56:45]line 68982 [14:56:45]line ______________________ [14:56:45]line (подпись) [14:56:45]written 0, free lines is 4095 [14:56:45]Write to MH i2c: 01 00 00 15 1E 33 [14:56:45]Write i2c OK [14:56:45]MH_I2C_Read... [14:56:45]Read from MH i2c: 01 [14:56:45]MH_I2C_Read... [14:56:45]Read from MH i2c: 01 07 00 [14:56:45]MH_I2C_Read... [14:56:45]Read from MH i2c: 01 07 00 15 1E 00 00 00 00 00 F4 0D 3B [14:56:45]RasterBufferAndPrint [14:56:45]line [14:56:45]line [14:56:45]line [14:56:45]line [14:56:45]line [14:56:45]written 0, free lines is 3573 [14:56:45]MH_Cut [14:56:45]Write to MH i2c: D1 01 00 1C 1E 01 0C [14:56:45]Write i2c OK [14:56:45]MH_I2C_Read... [14:56:45]Read from MH i2c: D1 [14:56:45]MH_I2C_Read... [14:56:45]Read from MH i2c: D1 01 00 [14:56:45]MH_I2C_Read... [14:56:45]Read from MH i2c: D1 01 00 1C 1E 00 0B [14:56:45]Write to MH i2c: 01 00 00 1D 1E 3B [14:56:45]Write i2c OK [14:56:45]MH_I2C_Read... [14:56:46]*** Cut start [14:56:46]*** Partial cut [14:56:46]*** CUTSNS_PIN = 1 [14:56:46]*** CUTSNS_PIN = 0 [14:56:46]*** Brake cut motor [14:56:46]Read from MH i2c: 01 [14:56:46]MH_I2C_Read... [14:56:46]*** Stop cut motor [14:56:46]*** Cut end [14:56:46]Read from MH i2c: 01 07 00 [14:56:46]MH_I2C_Read... [14:56:46]Read from MH i2c: 01 07 00 1D 1E 00 00 00 00 00 FF 0F 50 [14:56:46]process_action print_text done [14:56:46]requested_data is exist [14:56:46]produce_requested_data [14:56:46]requested_item fm.sn is exist - process it [14:56:46]wFMCommunicate request_size=4 [14:56:46]MH_SAM_APDU [14:56:46]CAPDU: 80 11 00 00 [14:56:46]Write to MH i2c: E2 08 00 1E 1E 80 11 00 00 00 00 00 00 B6 [14:56:46]Write i2c OK [14:56:46]MH_I2C_Read... [14:56:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:46]Read from MH i2c: E2 [14:56:46]MH_I2C_Read... [14:56:46]Read from MH i2c: E2 17 00 [14:56:46]MH_I2C_Read... [14:56:46]Read from MH i2c: E2 17 00 1E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 05 [14:56:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:56:46]wFMCommunicate OK [14:56:46]requested_item fd.num is exist - process it [14:56:46]SAM_PROTO_GetFieldsCounters [14:56:46]wFMCommunicate request_size=4 [14:56:46]MH_SAM_APDU [14:56:46]CAPDU: 80 13 00 00 [14:56:46]Write to MH i2c: E2 08 00 1F 1E 80 13 00 00 00 00 00 00 B9 [14:56:46]Write i2c OK [14:56:46]MH_I2C_Read... [14:56:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:46]Read from MH i2c: E2 [14:56:46]MH_I2C_Read... [14:56:46]Read from MH i2c: E2 62 00 [14:56:46]MH_I2C_Read... [14:56:46]Read from MH i2c: E2 62 00 1F 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [14:56:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:46]wFMCommunicate OK [14:56:46]SAM_PROTO_GetFieldsCounters done [14:56:46]requested_item shift.num is exist - process it [14:56:46]requested_item shift.opened is exist - process it [14:56:46]req_shift_opened [14:56:46]FM_GetShiftState [14:56:46]SAM_PROTO_GetShiftState [14:56:46]wFMCommunicate request_size=4 [14:56:46]MH_SAM_APDU [14:56:46]CAPDU: 80 13 01 00 [14:56:46]Write to MH i2c: E2 08 00 20 1E 80 13 01 00 00 00 00 00 BB [14:56:46]Write i2c OK [14:56:46]MH_I2C_Read... [14:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:46]Read from MH i2c: E2 [14:56:46]MH_I2C_Read... [14:56:46]Read from MH i2c: E2 0E 00 [14:56:46]MH_I2C_Read... [14:56:46]Read from MH i2c: E2 0E 00 20 1E 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 69 [14:56:46]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:56:46]wFMCommunicate OK [14:56:46]SAM_PROTO_GetShiftState done [14:56:46]FM_GetShiftState done [14:56:46]req_shift_opened done [14:56:46]requested_item shift.open_date is exist - process it [14:56:46]req_shift_open_date [14:56:46]req_shift_open_date done [14:56:46]produce_requested_data done [14:56:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29845,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [14:56:46]process_action_free print_text [14:56:46]json_value_free [14:56:46]json_value_free done [14:56:46]process_json_proto returns [14:56:46]Send response to host [14:56:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29845,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [14:56:46]free response buf [14:56:46]execute_script done [14:56:46]execute_script returns [14:56:46]free content buf [14:56:46]Sock 7.Close socket [14:56:46]Sock 7.Thread stoped [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:42]OFD Sender: No OFD packet to send [14:57:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:42]OFD Sender: No OFD packet to send [14:58:47]OFD Sender: No OFD packet to send [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:16]accept exits with 9 [14:59:16]New connection [14:59:16]New thread 3067133284 created [14:59:16]Thread 3067276644 joined [14:59:16]Waiting for new connection... [14:59:16] Sock 9.Parse request [14:59:16]Sock 9.Check first char [14:59:16]Sock 9.First char is OK [14:59:16]request: POST /json_proto HTTP/1.0 [14:59:16]Method: POST [14:59:16]URL: /json_proto [14:59:16]Method is POST - this is cgi request [14:59:16]url: /json_proto [14:59:16]query_string will be loaded in cgi processing [14:59:16]execute_cgi json_proto POST (null) [14:59:16]execute_cgi path=json_proto method=POST [14:59:16]POST find Content-Length [14:59:16]Host: 172.17.33.3:8080 [14:59:16]Content-Length: 640 [14:59:16]Content-Type: application/json [14:59:16] [14:59:16]POST finish read [14:59:16]Found Content-Length = 640 [14:59:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.000, "sum" : 648.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 648.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:16]execute_script... [14:59:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 10.000, "sum" : 648.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 648.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:16]POST & json_proto [14:59:16]process_json_proto [14:59:16]json parsed OK: [14:59:16]protocol is kg_v1.0 [14:59:16]action value=close_receipt [14:59:16]process_action close_receipt [14:59:16]cmd_close_receipt [14:59:16]MH_GetDate [14:59:16]Write to MH i2c: F0 00 00 21 1E 2E [14:59:16]Write i2c OK [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: F0 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: F0 09 00 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: F0 09 00 21 1E 00 47 92 1E 66 23 5B 8F 65 06 [14:59:16]GetLastDocTimeStamp 1713277994 [14:59:16]current date 1713279559 [14:59:16]FM_GetShiftState [14:59:16]SAM_PROTO_GetShiftState [14:59:16]wFMCommunicate request_size=4 [14:59:16]MH_SAM_APDU [14:59:16]CAPDU: 80 13 01 00 [14:59:16]Write to MH i2c: E2 08 00 22 1E 80 13 01 00 00 00 00 00 BD [14:59:16]Write i2c OK [14:59:16]MH_I2C_Read... [14:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:16]Read from MH i2c: E2 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 0E 00 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 0E 00 22 1E 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 6B [14:59:16]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:59:16]wFMCommunicate OK [14:59:16]SAM_PROTO_GetShiftState done [14:59:16]FM_GetShiftState done [14:59:16]opened in 1713226843 [14:59:16]opened+sec_in_day 1713313243 [14:59:16]quantity*price = 64800 [14:59:16]sum+1 = 64801 [14:59:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 648.00 НСП 1% : 5.73 НДС 12% : 68.81 Наличными: 648.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 120 16.04.2024 14:59 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29846 ФПД: 19332129059509 1/tax-web-control/client/api/v1/ticket?date=20240416T145919&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29846&fm=19332129059509&tin=02508201610067®Number=0000138879044617&sum=64800 [14:59:17]StoreToDocumentArchive [14:59:17]shift 118 fd 29846 [14:59:17]save to /storage/0118/doc_00029846 [14:59:17]save last doc name /storage/0118/doc_00029846 to /storage/kkm_last_doc_name [14:59:17]save OK [14:59:17]Clear old archive folders... [14:59:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:17]tlvbuf is 001EB870 [14:59:17]SAM_PROTO_ClearQueue [14:59:17]wFMCommunicate request_size=4 [14:59:17]MH_SAM_APDU [14:59:17]CAPDU: 80 09 00 00 [14:59:17]Write to MH i2c: E2 08 00 2F 1E 80 09 00 00 00 00 00 00 BF [14:59:17]OFD Sender: No OFD packet to send [14:59:17]Write i2c OK [14:59:17]MH_I2C_Read... [14:59:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:17]Read from MH i2c: E2 [14:59:17]MH_I2C_Read... [14:59:17]Read from MH i2c: E2 03 00 [14:59:17]MH_I2C_Read... [14:59:17]Read from MH i2c: E2 03 00 2F 1E 00 90 00 C1 [14:59:17]RAPDU: 90 00 [14:59:17]wFMCommunicate OK [14:59:17]SAM_PROTO_ClearQueue done [14:59:17]KKMCreateOFDPacket [14:59:17]OFDProtocolAddRootSTLVToBuf [14:59:17]FM_MakeSignedData [14:59:17]FM_MakeSignedData [14:59:17]SAM_PROTO_SignData [14:59:17]wFMCommunicate request_size=4 [14:59:17]MH_SAM_APDU [14:59:17]CAPDU: 80 0D 01 02 [14:59:17]Write to MH i2c: E2 08 00 30 1E 80 0D 01 02 00 00 00 00 C7 [14:59:17]Write i2c OK [14:59:17]MH_I2C_Read... [14:59:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:18]Read from MH i2c: E2 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: E2 03 00 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: E2 03 00 30 1E 00 90 00 C2 [14:59:18]RAPDU: 90 00 [14:59:18]wFMCommunicate OK [14:59:18]wFMCommunicate request_size=255 [14:59:18]MH_SAM_APDU [14:59:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 20 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 47 92 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 74 00 00 35 04 06 00 11 [14:59:18]Write to MH i2c: E2 02 01 31 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 20 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 47 92 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 74 00 00 35 04 06 00 11 00 00 85 [14:59:18]Write i2c OK [14:59:18]MH_I2C_Read... [14:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:18]Read from MH i2c: E2 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: E2 03 00 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: E2 03 00 31 1E 00 90 00 C3 [14:59:18]RAPDU: 90 00 [14:59:18]wFMCommunicate OK [14:59:18]wFMCommunicate request_size=10 [14:59:18]MH_SAM_APDU [14:59:18]CAPDU: 80 0D 02 02 05 95 1C AF 72 B5 [14:59:18]Write to MH i2c: E2 0D 00 32 1E 80 0D 02 02 05 00 95 1C AF 72 B5 00 00 5B [14:59:18]Write i2c OK [14:59:18]MH_I2C_Read... [14:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:18]Read from MH i2c: E2 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: E2 03 00 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: E2 03 00 32 1E 00 90 00 C4 [14:59:18]RAPDU: 90 00 [14:59:18]wFMCommunicate OK [14:59:18]wFMCommunicate request_size=4 [14:59:18]MH_SAM_APDU [14:59:18]CAPDU: 80 0D 03 02 [14:59:18]Write to MH i2c: E2 08 00 33 1E 80 0D 03 02 00 00 00 00 CC [14:59:18]Write i2c OK [14:59:18]MH_I2C_Read... [14:59:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:18]Read from MH i2c: E2 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: E2 0B 00 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: E2 0B 00 33 1E 00 3C 1B BA 39 C0 36 10 C8 90 00 E5 [14:59:18]RAPDU: 3C 1B BA 39 C0 36 10 C8 90 00 [14:59:18]wFMCommunicate OK [14:59:18]SAM_PROTO_SignData done [14:59:18]FM_MakeSignedData done [14:59:18]CreateOFDProtocolMessage [14:59:18]wFMCommunicate request_size=4 [14:59:18]MH_SAM_APDU [14:59:18]CAPDU: 80 11 00 00 [14:59:18]Write to MH i2c: E2 08 00 34 1E 80 11 00 00 00 00 00 00 CC [14:59:18]Write i2c OK [14:59:18]MH_I2C_Read... [14:59:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:18]Read from MH i2c: E2 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: E2 17 00 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: E2 17 00 34 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1B [14:59:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:59:18]wFMCommunicate OK [14:59:18]CreateOFDProtocolMessage done [14:59:18]OFDSenderStorePacket 29846 [14:59:18]StoreOFDPacket docnum=29846 [14:59:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 96 CA 07 01 28 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 20 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 47 92 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 74 00 00 35 04 06 00 11 95 1C AF 72 B5 3C 1B BA 39 C0 36 10 C8 [14:59:18]CheckFolder [14:59:18]dirname=/storage/ofd_packets [14:59:18]CheckFolder done [14:59:18]ProducePacketName [14:59:18]name=ofd_packets/00029846 [14:59:18]NVStorageSaveData ofd_packets/00029846 [14:59:18]File name is /storage/ofd_packets/00029846 [14:59:18]Write 301 bytes [14:59:18]NVStorageSaveData done [14:59:18]OFDSenderStorePacket done [14:59:18]KKMCreateOFDPacket done [14:59:18]NVStorageSaveData kkm_last_timestamp [14:59:18]File name is /storage/kkm_last_timestamp [14:59:18]Write 4 bytes [14:59:18]NVStorageSaveData done [14:59:18]ExternCall_PrintAddStr [14:59:18]wPrintStart [14:59:18]Write to MH i2c: 01 00 00 35 1E 53 [14:59:18]Write i2c OK [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: 01 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: 01 07 00 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: 01 07 00 35 1E 00 00 00 00 00 FF 0F 68 [14:59:18]RasterBufferAndPrint [14:59:18]line Счет N : (1)348365 [14:59:18]line ИНН: 02508201610067 [14:59:18]line Контрольно-Кассовый Чек [14:59:18]line ПРОДАЖА [14:59:18]line ТРК (МРК, ГНК) : 32 [14:59:18]line Товар: 2710124130 [14:59:18]line Аи-92-К-5 [14:59:18]line 10.000 * 64.80 [14:59:18]line = 648.00 [14:59:18]line НДС 12% НСП 1% [14:59:18]line > о реализуемом товаре [14:59:18]line ИТОГО: 648.00 [14:59:18]line НСП 1% : 5.73 [14:59:18]line НДС 12% : 68.81 [14:59:18]line Наличными: 648.00 [14:59:18]line Безнал.: 0.00 [14:59:18]line Место: АЗС № 108 "Партнер Нефть" [14:59:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:59:18]line СНО: Общий режим [14:59:18]line Чек 120 16.04.2024 14:59 [14:59:18]line Смена: 118 ФФД: 1.0 [14:59:18]line ЗНМ: 0300000027 [14:59:18]line РНМ: 0000138879044617 [14:59:18]line Версия ККМ: 001 [14:59:18]line ФМ: 0000000000963154 [14:59:18]line ФД: 29846 [14:59:18]line ФПД: 19332129059509 [14:59:18]line 1/tax-web-control/client/api/v1/ticket?date=20240416T145919&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29846&fm=19332129059509&tin=02508201610067®Number=0000138879044617&sum=64800 [14:59:18]written 0, free lines is 4095 [14:59:18]OFD Sender: Processing packet 29846 [packets to send 8, broken 7] [14:59:18]ProducePacketName [14:59:18]name=ofd_packets/00029846 [14:59:18]OFD Sender: To server: pG, [14:59:18]CommunicateWithHost lk.salyk.kg:30040 [14:59:18]ConnectInit lk.salyk.kg [14:59:18]Connected sock=10 [14:59:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 96 CA 07 01 28 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 20 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 1A 00 00 00 00 07 04 06 00 20 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 47 92 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 74 00 00 35 04 06 00 11 95 1C AF 72 B5 3C 1B BA 39 C0 36 10 C8 [14:59:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 56 1D 47 00 DB 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 36 33 31 35 34 10 04 04 00 96 74 00 00 F4 03 04 00 E4 3C 1E 66 B6 04 01 00 00 94 FC 58 BA 9D 69 65 B5 [14:59:18]CommunicateWithHost err = 0 [14:59:18]CheckOFDResponse [14:59:18]1017 (14) - 77093643461234 [14:59:18]1041 (16) - 0000000000963154 [14:59:18]1040 (4) - 29846 [14:59:18]1012 (4) - 16.04.2024 08:55 [14:59:18]1206 (1) - 0 [14:59:18]OFD Sender: Remove packet 29846 [14:59:18]ProducePacketName [14:59:18]name=ofd_packets/00029846 [14:59:18]NVStorageDeleteData [14:59:18]Write to MH i2c: 01 00 00 5C 1E 7A [14:59:18]Write i2c OK [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: 01 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: 01 07 00 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: 01 07 00 5C 1E 00 00 00 00 00 07 0D 95 [14:59:18]RasterBufferAndPrint [14:59:18]line [14:59:18]line [14:59:18]line [14:59:18]line [14:59:18]line [14:59:18]written 0, free lines is 3341 [14:59:18]MH_Cut [14:59:18]Write to MH i2c: D1 01 00 63 1E 01 53 [14:59:18]Write i2c OK [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: D1 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: D1 01 00 [14:59:18]MH_I2C_Read... [14:59:18]Read from MH i2c: D1 01 00 63 1E 00 52 [14:59:18]Write to MH i2c: 01 00 00 64 1E 82 [14:59:18]Write i2c OK [14:59:18]MH_I2C_Read... [14:59:19]OFD Sender: No OFD packet to send [14:59:19]*** Cut start [14:59:19]*** Partial cut [14:59:19]*** CUTSNS_PIN = 1 [14:59:19]*** CUTSNS_PIN = 0 [14:59:19]*** Brake cut motor [14:59:20]Read from MH i2c: 01 [14:59:20]MH_I2C_Read... [14:59:20]*** Stop cut motor [14:59:20]*** Cut end [14:59:20]Read from MH i2c: 01 07 00 [14:59:20]MH_I2C_Read... [14:59:20]Read from MH i2c: 01 07 00 64 1E 00 00 00 00 00 FF 0F 97 [14:59:20]process_action close_receipt done [14:59:20]requested_data is exist [14:59:20]produce_requested_data [14:59:20]requested_item fm.sn is exist - process it [14:59:20]wFMCommunicate request_size=4 [14:59:20]MH_SAM_APDU [14:59:20]CAPDU: 80 11 00 00 [14:59:20]Write to MH i2c: E2 08 00 65 1E 80 11 00 00 00 00 00 00 FD [14:59:20]Write i2c OK [14:59:20]MH_I2C_Read... [14:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:20]Read from MH i2c: E2 [14:59:20]MH_I2C_Read... [14:59:20]Read from MH i2c: E2 17 00 [14:59:20]MH_I2C_Read... [14:59:20]Read from MH i2c: E2 17 00 65 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4C [14:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:59:20]wFMCommunicate OK [14:59:20]requested_item fd.num is exist - process it [14:59:20]SAM_PROTO_GetFieldsCounters [14:59:20]wFMCommunicate request_size=4 [14:59:20]MH_SAM_APDU [14:59:20]CAPDU: 80 13 00 00 [14:59:20]Write to MH i2c: E2 08 00 66 1E 80 13 00 00 00 00 00 00 00 [14:59:20]Write i2c OK [14:59:20]MH_I2C_Read... [14:59:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:20]Read from MH i2c: E2 [14:59:20]MH_I2C_Read... [14:59:20]Read from MH i2c: E2 62 00 [14:59:20]MH_I2C_Read... [14:59:20]Read from MH i2c: E2 62 00 66 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 96 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [14:59:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 96 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:20]wFMCommunicate OK [14:59:20]SAM_PROTO_GetFieldsCounters done [14:59:20]requested_item shift.num is exist - process it [14:59:20]requested_item shift.opened is exist - process it [14:59:20]req_shift_opened [14:59:20]FM_GetShiftState [14:59:20]SAM_PROTO_GetShiftState [14:59:20]wFMCommunicate request_size=4 [14:59:20]MH_SAM_APDU [14:59:20]CAPDU: 80 13 01 00 [14:59:20]Write to MH i2c: E2 08 00 67 1E 80 13 01 00 00 00 00 00 02 [14:59:20]Write i2c OK [14:59:20]MH_I2C_Read... [14:59:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:20]Read from MH i2c: E2 [14:59:20]MH_I2C_Read... [14:59:20]Read from MH i2c: E2 0E 00 [14:59:20]MH_I2C_Read... [14:59:20]Read from MH i2c: E2 0E 00 67 1E 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 B0 [14:59:20]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [14:59:20]wFMCommunicate OK [14:59:20]SAM_PROTO_GetShiftState done [14:59:20]FM_GetShiftState done [14:59:20]req_shift_opened done [14:59:20]requested_item shift.open_date is exist - process it [14:59:20]req_shift_open_date [14:59:20]req_shift_open_date done [14:59:20]produce_requested_data done [14:59:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29846,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [14:59:20]process_action_free close_receipt [14:59:20]json_value_free [14:59:20]json_value_free done [14:59:20]process_json_proto returns [14:59:20]Send response to host [14:59:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29846,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [14:59:20]free response buf [14:59:20]execute_script done [14:59:20]execute_script returns [14:59:20]free content buf [14:59:20]Sock 9.Close socket [14:59:20]Sock 9.Thread stoped [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:04]OFD Sender: No OFD packet to send [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:19]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]accept exits with 7 [15:01:54]New connection [15:01:54]New thread 3067276644 created [15:01:54]Thread 3067133284 joined [15:01:54]Waiting for new connection... [15:01:54] Sock 7.Parse request [15:01:54]Sock 7.Check first char [15:01:54]Sock 7.First char is OK [15:01:54]request: POST /json_proto HTTP/1.0 [15:01:54]Method: POST [15:01:54]URL: /json_proto [15:01:54]Method is POST - this is cgi request [15:01:54]url: /json_proto [15:01:54]query_string will be loaded in cgi processing [15:01:54]execute_cgi json_proto POST (null) [15:01:54]execute_cgi path=json_proto method=POST [15:01:54]POST find Content-Length [15:01:54]Host: 172.17.33.3:8080 [15:01:54]Content-Length: 678 [15:01:54]Content-Type: application/json [15:01:54] [15:01:54]POST finish read [15:01:54]Found Content-Length = 678 [15:01:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 13.890, "sum" : 900.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:54]execute_script... [15:01:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 13.890, "sum" : 900.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:54]POST & json_proto [15:01:54]process_json_proto [15:01:54]json parsed OK: [15:01:54]protocol is kg_v1.0 [15:01:54]action value=close_receipt [15:01:54]process_action close_receipt [15:01:54]cmd_close_receipt [15:01:54]MH_GetDate [15:01:54]Write to MH i2c: F0 00 00 68 1E 75 [15:01:54]Write i2c OK [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: F0 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: F0 09 00 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: F0 09 00 68 1E 00 E4 92 1E 66 23 5B 8F 65 EA [15:01:54]GetLastDocTimeStamp 1713279559 [15:01:54]current date 1713279716 [15:01:54]FM_GetShiftState [15:01:54]SAM_PROTO_GetShiftState [15:01:54]wFMCommunicate request_size=4 [15:01:54]MH_SAM_APDU [15:01:54]CAPDU: 80 13 01 00 [15:01:54]Write to MH i2c: E2 08 00 69 1E 80 13 01 00 00 00 00 00 04 [15:01:54]Write i2c OK [15:01:54]MH_I2C_Read... [15:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:54]Read from MH i2c: E2 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: E2 0E 00 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: E2 0E 00 69 1E 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 B2 [15:01:54]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [15:01:54]wFMCommunicate OK [15:01:54]SAM_PROTO_GetShiftState done [15:01:54]FM_GetShiftState done [15:01:54]opened in 1713226843 [15:01:54]opened+sec_in_day 1713313243 [15:01:54]quantity*price = 90007 [15:01:54]sum+1 = 90008 [15:01:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 121 16.04.2024 15:01 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29847 ФПД: 246559692053998 1/tax-web-control/client/api/v1/ticket?date=20240416T150156&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29847&fm=246559692053998&tin=02508201610067®Number=0000138879044617&sum=90000 [15:01:55]StoreToDocumentArchive [15:01:55]shift 118 fd 29847 [15:01:55]save to /storage/0118/doc_00029847 [15:01:55]save last doc name /storage/0118/doc_00029847 to /storage/kkm_last_doc_name [15:01:55]save OK [15:01:55]Clear old archive folders... [15:01:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:01:55]tlvbuf is 001EB630 [15:01:55]SAM_PROTO_ClearQueue [15:01:55]wFMCommunicate request_size=4 [15:01:55]MH_SAM_APDU [15:01:55]CAPDU: 80 09 00 00 [15:01:55]Write to MH i2c: E2 08 00 76 1E 80 09 00 00 00 00 00 00 06 [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:55]Read from MH i2c: E2 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 03 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 03 00 76 1E 00 90 00 08 [15:01:55]RAPDU: 90 00 [15:01:55]wFMCommunicate OK [15:01:55]SAM_PROTO_ClearQueue done [15:01:55]KKMCreateOFDPacket [15:01:55]OFDProtocolAddRootSTLVToBuf [15:01:55]FM_MakeSignedData [15:01:55]FM_MakeSignedData [15:01:55]SAM_PROTO_SignData [15:01:55]wFMCommunicate request_size=4 [15:01:55]MH_SAM_APDU [15:01:55]CAPDU: 80 0D 01 02 [15:01:55]Write to MH i2c: E2 08 00 77 1E 80 0D 01 02 00 00 00 00 0E [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:55]Read from MH i2c: E2 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 03 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 03 00 77 1E 00 90 00 09 [15:01:55]RAPDU: 90 00 [15:01:55]wFMCommunicate OK [15:01:55]wFMCommunicate request_size=255 [15:01:55]MH_SAM_APDU [15:01:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 36 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 97 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 E4 92 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 74 00 00 35 04 06 00 E0 [15:01:55]Write to MH i2c: E2 02 01 78 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 36 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 97 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 E4 92 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 74 00 00 35 04 06 00 E0 00 00 5B [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:55]Read from MH i2c: E2 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 03 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 03 00 78 1E 00 90 00 0A [15:01:55]RAPDU: 90 00 [15:01:55]wFMCommunicate OK [15:01:55]wFMCommunicate request_size=10 [15:01:55]MH_SAM_APDU [15:01:55]CAPDU: 80 0D 02 02 05 3E A6 DC 5D EE [15:01:55]Write to MH i2c: E2 0D 00 79 1E 80 0D 02 02 05 00 3E A6 DC 5D EE 00 00 26 [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:55]Read from MH i2c: E2 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 03 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 03 00 79 1E 00 90 00 0B [15:01:55]RAPDU: 90 00 [15:01:55]wFMCommunicate OK [15:01:55]wFMCommunicate request_size=4 [15:01:55]MH_SAM_APDU [15:01:55]CAPDU: 80 0D 03 02 [15:01:55]Write to MH i2c: E2 08 00 7A 1E 80 0D 03 02 00 00 00 00 13 [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:55]Read from MH i2c: E2 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 0B 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 0B 00 7A 1E 00 B6 49 52 6C 69 33 51 6F 90 00 2D [15:01:55]RAPDU: B6 49 52 6C 69 33 51 6F 90 00 [15:01:55]wFMCommunicate OK [15:01:55]SAM_PROTO_SignData done [15:01:55]FM_MakeSignedData done [15:01:55]CreateOFDProtocolMessage [15:01:55]wFMCommunicate request_size=4 [15:01:55]MH_SAM_APDU [15:01:55]CAPDU: 80 11 00 00 [15:01:55]Write to MH i2c: E2 08 00 7B 1E 80 11 00 00 00 00 00 00 13 [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:55]Read from MH i2c: E2 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 17 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 17 00 7B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 62 [15:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:01:55]wFMCommunicate OK [15:01:55]CreateOFDProtocolMessage done [15:01:55]OFDSenderStorePacket 29847 [15:01:55]StoreOFDPacket docnum=29847 [15:01:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3F 1D 07 01 FE 21 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 42 36 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 97 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 E4 92 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 74 00 00 35 04 06 00 E0 3E A6 DC 5D EE B6 49 52 6C 69 33 51 6F [15:01:55]CheckFolder [15:01:55]dirname=/storage/ofd_packets [15:01:55]CheckFolder done [15:01:55]ProducePacketName [15:01:55]name=ofd_packets/00029847 [15:01:55]NVStorageSaveData ofd_packets/00029847 [15:01:55]File name is /storage/ofd_packets/00029847 [15:01:55]Write 301 bytes [15:01:55]NVStorageSaveData done [15:01:55]OFDSenderStorePacket done [15:01:55]KKMCreateOFDPacket done [15:01:55]NVStorageSaveData kkm_last_timestamp [15:01:55]File name is /storage/kkm_last_timestamp [15:01:55]Write 4 bytes [15:01:55]NVStorageSaveData done [15:01:55]ExternCall_PrintAddStr [15:01:55]wPrintStart [15:01:55]Write to MH i2c: 01 00 00 7C 1E 9A [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: 01 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: 01 07 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: 01 07 00 7C 1E 00 00 00 00 00 FF 0F AF [15:01:55]RasterBufferAndPrint [15:01:55]line Счет N : (1)348366 [15:01:55]line ИНН: 02508201610067 [15:01:55]line Контрольно-Кассовый Чек [15:01:55]line ПРОДАЖА [15:01:55]line ТРК (МРК, ГНК) : 13 [15:01:55]line Товар: 2710124130 [15:01:55]line Аи-92-К-5 [15:01:55]line 13.890 * 64.80 [15:01:55]line = 900.07 [15:01:55]line НДС 12% НСП 1% [15:01:55]line > о реализуемом товаре [15:01:55]line ОКРУГЛЕНИЕ: -0.07 [15:01:55]line ИТОГО: 900.00 [15:01:55]line Внесено: 900.00 [15:01:55]line СДАЧА: 0.00 [15:01:55]line НСП 1% : 7.96 [15:01:55]line НДС 12% : 95.58 [15:01:55]line Наличными: 900.00 [15:01:55]line Безнал.: 0.00 [15:01:55]line Место: АЗС № 108 "Партнер Нефть" [15:01:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:01:55]line СНО: Общий режим [15:01:55]line Чек 121 16.04.2024 15:01 [15:01:55]line Смена: 118 ФФД: 1.0 [15:01:55]line ЗНМ: 0300000027 [15:01:55]line РНМ: 0000138879044617 [15:01:55]line Версия ККМ: 001 [15:01:55]line ФМ: 0000000000963154 [15:01:55]line ФД: 29847 [15:01:55]line ФПД: 246559692053998 [15:01:55]line 1/tax-web-control/client/api/v1/ticket?date=20240416T150156&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29847&fm=246559692053998&tin=02508201610067®Number=0000138879044617&sum=90000 [15:01:56]OFD Sender: Processing packet 29847 [packets to send 8, broken 7] [15:01:56]ProducePacketName [15:01:56]name=ofd_packets/00029847 [15:01:56]OFD Sender: To server: pG, [15:01:56]CommunicateWithHost lk.salyk.kg:30040 [15:01:56]written 0, free lines is 4095 [15:01:56]ConnectInit lk.salyk.kg [15:01:56]Connected sock=10 [15:01:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3F 1D 07 01 FE 21 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 42 36 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 97 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 E4 92 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 74 00 00 35 04 06 00 E0 3E A6 DC 5D EE B6 49 52 6C 69 33 51 6F [15:01:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A6 03 47 00 03 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 74 00 00 F4 03 04 00 82 3D 1E 66 B6 04 01 00 00 AA B9 51 9B F3 7A 83 13 [15:01:56]CommunicateWithHost err = 0 [15:01:56]CheckOFDResponse [15:01:56]1017 (14) - 77093643461234 [15:01:56]1041 (16) - 0000000000963154 [15:01:56]1040 (4) - 29847 [15:01:56]1012 (4) - 16.04.2024 08:57 [15:01:56]1206 (1) - 0 [15:01:56]OFD Sender: Remove packet 29847 [15:01:56]ProducePacketName [15:01:56]name=ofd_packets/00029847 [15:01:56]NVStorageDeleteData [15:01:56]Write to MH i2c: 01 00 00 A6 1E C4 [15:01:56]Write i2c OK [15:01:56]MH_I2C_Read... [15:01:56]Read from MH i2c: 01 [15:01:56]MH_I2C_Read... [15:01:56]Read from MH i2c: 01 07 00 [15:01:56]MH_I2C_Read... [15:01:56]Read from MH i2c: 01 07 00 A6 1E 00 00 00 00 00 D5 0C AC [15:01:56]RasterBufferAndPrint [15:01:56]line [15:01:56]line [15:01:56]line [15:01:56]line [15:01:56]line [15:01:56]written 0, free lines is 3290 [15:01:56]MH_Cut [15:01:56]Write to MH i2c: D1 01 00 AD 1E 01 9D [15:01:56]Write i2c OK [15:01:56]MH_I2C_Read... [15:01:56]Read from MH i2c: D1 [15:01:56]MH_I2C_Read... [15:01:56]Read from MH i2c: D1 01 00 [15:01:56]MH_I2C_Read... [15:01:56]Read from MH i2c: D1 01 00 AD 1E 00 9C [15:01:56]Write to MH i2c: 01 00 00 AE 1E CC [15:01:56]Write i2c OK [15:01:56]MH_I2C_Read... [15:01:57]OFD Sender: No OFD packet to send [15:01:57]*** Cut start [15:01:57]*** Partial cut [15:01:57]*** CUTSNS_PIN = 1 [15:01:57]*** CUTSNS_PIN = 0 [15:01:57]*** Brake cut motor [15:01:58]Read from MH i2c: 01 [15:01:58]MH_I2C_Read... [15:01:58]*** Stop cut motor [15:01:58]*** Cut end [15:01:58]Read from MH i2c: 01 07 00 [15:01:58]MH_I2C_Read... [15:01:58]Read from MH i2c: 01 07 00 AE 1E 00 00 00 00 00 FF 0F E1 [15:01:58]process_action close_receipt done [15:01:58]requested_data is exist [15:01:58]produce_requested_data [15:01:58]requested_item fm.sn is exist - process it [15:01:58]wFMCommunicate request_size=4 [15:01:58]MH_SAM_APDU [15:01:58]CAPDU: 80 11 00 00 [15:01:58]Write to MH i2c: E2 08 00 AF 1E 80 11 00 00 00 00 00 00 47 [15:01:58]Write i2c OK [15:01:58]MH_I2C_Read... [15:01:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:58]Read from MH i2c: E2 [15:01:58]MH_I2C_Read... [15:01:58]Read from MH i2c: E2 17 00 [15:01:58]MH_I2C_Read... [15:01:58]Read from MH i2c: E2 17 00 AF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 96 [15:01:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:01:58]wFMCommunicate OK [15:01:58]requested_item fd.num is exist - process it [15:01:58]SAM_PROTO_GetFieldsCounters [15:01:58]wFMCommunicate request_size=4 [15:01:58]MH_SAM_APDU [15:01:58]CAPDU: 80 13 00 00 [15:01:58]Write to MH i2c: E2 08 00 B0 1E 80 13 00 00 00 00 00 00 4A [15:01:58]Write i2c OK [15:01:58]MH_I2C_Read... [15:01:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:58]Read from MH i2c: E2 [15:01:58]MH_I2C_Read... [15:01:58]Read from MH i2c: E2 62 00 [15:01:58]MH_I2C_Read... [15:01:58]Read from MH i2c: E2 62 00 B0 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 97 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [15:01:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 97 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:58]wFMCommunicate OK [15:01:58]SAM_PROTO_GetFieldsCounters done [15:01:58]requested_item shift.num is exist - process it [15:01:58]requested_item shift.opened is exist - process it [15:01:58]req_shift_opened [15:01:58]FM_GetShiftState [15:01:58]SAM_PROTO_GetShiftState [15:01:58]wFMCommunicate request_size=4 [15:01:58]MH_SAM_APDU [15:01:58]CAPDU: 80 13 01 00 [15:01:58]Write to MH i2c: E2 08 00 B1 1E 80 13 01 00 00 00 00 00 4C [15:01:58]Write i2c OK [15:01:58]MH_I2C_Read... [15:01:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:58]Read from MH i2c: E2 [15:01:58]MH_I2C_Read... [15:01:58]Read from MH i2c: E2 0E 00 [15:01:58]MH_I2C_Read... [15:01:58]Read from MH i2c: E2 0E 00 B1 1E 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 FA [15:01:58]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [15:01:58]wFMCommunicate OK [15:01:58]SAM_PROTO_GetShiftState done [15:01:58]FM_GetShiftState done [15:01:58]req_shift_opened done [15:01:58]requested_item shift.open_date is exist - process it [15:01:58]req_shift_open_date [15:01:58]req_shift_open_date done [15:01:58]produce_requested_data done [15:01:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29847,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [15:01:58]process_action_free close_receipt [15:01:58]json_value_free [15:01:58]json_value_free done [15:01:58]process_json_proto returns [15:01:58]Send response to host [15:01:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29847,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [15:01:58]free response buf [15:01:58]execute_script done [15:01:58]execute_script returns [15:01:58]free content buf [15:01:58]Sock 7.Close socket [15:01:58]Sock 7.Thread stoped [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:15]accept exits with 9 [15:04:15]New connection [15:04:15]New thread 3067133284 created [15:04:15]Thread 3067276644 joined [15:04:15]Waiting for new connection... [15:04:15] Sock 9.Parse request [15:04:15]Sock 9.Check first char [15:04:15]Sock 9.First char is OK [15:04:15]request: POST /json_proto HTTP/1.0 [15:04:15]Method: POST [15:04:15]URL: /json_proto [15:04:15]Method is POST - this is cgi request [15:04:15]url: /json_proto [15:04:15]query_string will be loaded in cgi processing [15:04:15]execute_cgi json_proto POST (null) [15:04:15]execute_cgi path=json_proto method=POST [15:04:15]POST find Content-Length [15:04:15]Host: 172.17.33.3:8080 [15:04:15]Content-Length: 1168 [15:04:15]Content-Type: application/json [15:04:15] [15:04:15]POST finish read [15:04:15]Found Content-Length = 1168 [15:04:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348367\u000A16.04.2024 14:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145314\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:15]execute_script... [15:04:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348367\u000A16.04.2024 14:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145314\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:15]POST & json_proto [15:04:15]process_json_proto [15:04:15]json parsed OK: [15:04:15]protocol is kg_v1.0 [15:04:15]action value=print_text [15:04:15]process_action print_text [15:04:15]cmd_print_text [15:04:15]ExternCall_PrintAddStr [15:04:15]wPrintStart [15:04:15]Write to MH i2c: 01 00 00 B2 1E D0 [15:04:15]Write i2c OK [15:04:15]MH_I2C_Read... [15:04:15]Read from MH i2c: 01 [15:04:15]MH_I2C_Read... [15:04:15]Read from MH i2c: 01 07 00 [15:04:15]MH_I2C_Read... [15:04:15]Read from MH i2c: 01 07 00 B2 1E 00 00 00 00 00 FF 0F E5 [15:04:15]RasterBufferAndPrint [15:04:15]line *****ТОВАРНЫЙ ЧЕК***** [15:04:15]line АЗС 108 [15:04:15]line Партнер нефть [15:04:15]line 02508201610067 [15:04:15]line Кассир : Шадыканова Ж. [15:04:15]line Счет N : (1)348367 [15:04:15]line 16.04.2024 14:45 [15:04:15]line ПРОДАЖА [15:04:15]line ТРК (МРК, ГНК): 43 [15:04:15]line Вид ГСМ : 2710124500 [15:04:15]line Аи-95-К-5 [15:04:15]line 10.000 x 72.90 [15:04:15]line ИТОГ: 729.00 [15:04:15]line Тип оплаты: Талоны: ТК ГПНА Online [15:04:15]line 30145314 [15:04:15]line ______________________ [15:04:15]line (подпись) [15:04:15]written 0, free lines is 4095 [15:04:15]Write to MH i2c: 01 00 00 C7 1E E5 [15:04:15]Write i2c OK [15:04:15]MH_I2C_Read... [15:04:15]Read from MH i2c: 01 [15:04:15]MH_I2C_Read... [15:04:15]Read from MH i2c: 01 07 00 [15:04:15]MH_I2C_Read... [15:04:15]Read from MH i2c: 01 07 00 C7 1E 00 00 00 00 00 F4 0D ED [15:04:15]RasterBufferAndPrint [15:04:15]line [15:04:15]line [15:04:15]line [15:04:15]line [15:04:15]line [15:04:15]written 0, free lines is 3574 [15:04:15]MH_Cut [15:04:15]Write to MH i2c: D1 01 00 CE 1E 01 BE [15:04:15]Write i2c OK [15:04:15]MH_I2C_Read... [15:04:15]Read from MH i2c: D1 [15:04:15]MH_I2C_Read... [15:04:15]Read from MH i2c: D1 01 00 [15:04:15]MH_I2C_Read... [15:04:15]Read from MH i2c: D1 01 00 CE 1E 00 BD [15:04:15]Write to MH i2c: 01 00 00 CF 1E ED [15:04:15]Write i2c OK [15:04:15]MH_I2C_Read... [15:04:15]*** Cut start [15:04:15]*** Partial cut [15:04:15]*** CUTSNS_PIN = 1 [15:04:15]*** CUTSNS_PIN = 0 [15:04:16]*** Brake cut motor [15:04:16]Read from MH i2c: 01 [15:04:16]MH_I2C_Read... [15:04:16]*** Stop cut motor [15:04:16]*** Cut end [15:04:16]Read from MH i2c: 01 07 00 [15:04:16]MH_I2C_Read... [15:04:16]Read from MH i2c: 01 07 00 CF 1E 00 00 00 00 00 FF 0F 02 [15:04:16]process_action print_text done [15:04:16]requested_data is exist [15:04:16]produce_requested_data [15:04:16]requested_item fm.sn is exist - process it [15:04:16]wFMCommunicate request_size=4 [15:04:16]MH_SAM_APDU [15:04:16]CAPDU: 80 11 00 00 [15:04:16]Write to MH i2c: E2 08 00 D0 1E 80 11 00 00 00 00 00 00 68 [15:04:16]Write i2c OK [15:04:16]MH_I2C_Read... [15:04:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:16]Read from MH i2c: E2 [15:04:16]MH_I2C_Read... [15:04:16]Read from MH i2c: E2 17 00 [15:04:16]MH_I2C_Read... [15:04:16]Read from MH i2c: E2 17 00 D0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B7 [15:04:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:04:16]wFMCommunicate OK [15:04:16]requested_item fd.num is exist - process it [15:04:16]SAM_PROTO_GetFieldsCounters [15:04:16]wFMCommunicate request_size=4 [15:04:16]MH_SAM_APDU [15:04:16]CAPDU: 80 13 00 00 [15:04:16]Write to MH i2c: E2 08 00 D1 1E 80 13 00 00 00 00 00 00 6B [15:04:16]Write i2c OK [15:04:16]MH_I2C_Read... [15:04:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:16]Read from MH i2c: E2 [15:04:16]MH_I2C_Read... [15:04:16]Read from MH i2c: E2 62 00 [15:04:16]MH_I2C_Read... [15:04:16]Read from MH i2c: E2 62 00 D1 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 97 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [15:04:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 97 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:16]wFMCommunicate OK [15:04:16]SAM_PROTO_GetFieldsCounters done [15:04:16]requested_item shift.num is exist - process it [15:04:16]requested_item shift.opened is exist - process it [15:04:16]req_shift_opened [15:04:16]FM_GetShiftState [15:04:16]SAM_PROTO_GetShiftState [15:04:16]wFMCommunicate request_size=4 [15:04:16]MH_SAM_APDU [15:04:16]CAPDU: 80 13 01 00 [15:04:16]Write to MH i2c: E2 08 00 D2 1E 80 13 01 00 00 00 00 00 6D [15:04:16]Write i2c OK [15:04:16]MH_I2C_Read... [15:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:16]Read from MH i2c: E2 [15:04:16]MH_I2C_Read... [15:04:16]Read from MH i2c: E2 0E 00 [15:04:16]MH_I2C_Read... [15:04:16]Read from MH i2c: E2 0E 00 D2 1E 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 1B [15:04:16]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [15:04:16]wFMCommunicate OK [15:04:16]SAM_PROTO_GetShiftState done [15:04:16]FM_GetShiftState done [15:04:16]req_shift_opened done [15:04:16]requested_item shift.open_date is exist - process it [15:04:16]req_shift_open_date [15:04:16]req_shift_open_date done [15:04:16]produce_requested_data done [15:04:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29847,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [15:04:16]process_action_free print_text [15:04:16]json_value_free [15:04:16]json_value_free done [15:04:16]process_json_proto returns [15:04:16]Send response to host [15:04:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29847,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [15:04:16]free response buf [15:04:16]execute_script done [15:04:16]execute_script returns [15:04:16]free content buf [15:04:16]Sock 9.Close socket [15:04:16]Sock 9.Thread stoped [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:32]OFD Sender: No OFD packet to send [15:05:37]OFD Sender: No OFD packet to send [15:05:42]OFD Sender: No OFD packet to send [15:05:47]OFD Sender: No OFD packet to send [15:05:52]OFD Sender: No OFD packet to send [15:05:57]OFD Sender: No OFD packet to send [15:06:02]OFD Sender: No OFD packet to send [15:06:07]OFD Sender: No OFD packet to send [15:06:12]OFD Sender: No OFD packet to send [15:06:17]OFD Sender: No OFD packet to send [15:06:22]OFD Sender: No OFD packet to send [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:52]accept exits with 7 [15:06:52]New connection [15:06:52]New thread 3067276644 created [15:06:52]Thread 3067133284 joined [15:06:52]Waiting for new connection... [15:06:52] Sock 7.Parse request [15:06:52]Sock 7.Check first char [15:06:52]Sock 7.First char is OK [15:06:52]request: POST /json_proto HTTP/1.0 [15:06:52]Method: POST [15:06:52]URL: /json_proto [15:06:52]Method is POST - this is cgi request [15:06:52]url: /json_proto [15:06:52]query_string will be loaded in cgi processing [15:06:52]execute_cgi json_proto POST (null) [15:06:52]execute_cgi path=json_proto method=POST [15:06:52]POST find Content-Length [15:06:52]Host: 172.17.33.3:8080 [15:06:52]Content-Length: 801 [15:06:52]Content-Type: application/json [15:06:52] [15:06:52]POST finish read [15:06:52]Found Content-Length = 801 [15:06:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 38.000, "sum" : 2500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:52]execute_script... [15:06:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 38.000, "sum" : 2500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:52]POST & json_proto [15:06:52]process_json_proto [15:06:52]json parsed OK: [15:06:52]protocol is kg_v1.0 [15:06:52]action value=close_receipt [15:06:52]process_action close_receipt [15:06:52]cmd_close_receipt [15:06:52]MH_GetDate [15:06:52]Write to MH i2c: F0 00 00 D3 1E E0 [15:06:52]Write i2c OK [15:06:52]MH_I2C_Read... [15:06:52]Read from MH i2c: F0 [15:06:52]MH_I2C_Read... [15:06:52]Read from MH i2c: F0 09 00 [15:06:52]MH_I2C_Read... [15:06:52]Read from MH i2c: F0 09 00 D3 1E 00 0E 94 1E 66 23 5B 8F 65 81 [15:06:52]GetLastDocTimeStamp 1713279716 [15:06:52]current date 1713280014 [15:06:52]FM_GetShiftState [15:06:52]SAM_PROTO_GetShiftState [15:06:52]wFMCommunicate request_size=4 [15:06:52]MH_SAM_APDU [15:06:52]CAPDU: 80 13 01 00 [15:06:52]Write to MH i2c: E2 08 00 D4 1E 80 13 01 00 00 00 00 00 6F [15:06:52]Write i2c OK [15:06:52]MH_I2C_Read... [15:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:52]Read from MH i2c: E2 [15:06:52]MH_I2C_Read... [15:06:52]Read from MH i2c: E2 0E 00 [15:06:52]MH_I2C_Read... [15:06:52]Read from MH i2c: E2 0E 00 D4 1E 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 1D [15:06:52]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [15:06:52]wFMCommunicate OK [15:06:52]SAM_PROTO_GetShiftState done [15:06:52]FM_GetShiftState done [15:06:52]opened in 1713226843 [15:06:52]opened+sec_in_day 1713313243 [15:06:52]quantity*price = 250040 [15:06:52]sum+1 = 250041 [15:06:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.40 НСП 1% : 22.13 НДС 12% : 265.53 Наличными: 0.00 Безнал.: 2500.40 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 122 16.04.2024 15:06 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29848 ФПД: 149259501299686 1/tax-web-control/client/api/v1/ticket?date=20240416T150654&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29848&fm=149259501299686&tin=02508201610067®Number=0000138879044617&sum=250040 [15:06:53]StoreToDocumentArchive [15:06:53]shift 118 fd 29848 [15:06:53]save to /storage/0118/doc_00029848 [15:06:53]save last doc name /storage/0118/doc_00029848 to /storage/kkm_last_doc_name [15:06:53]save OK [15:06:53]Clear old archive folders... [15:06:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:06:53]tlvbuf is 001EB210 [15:06:53]SAM_PROTO_ClearQueue [15:06:53]wFMCommunicate request_size=4 [15:06:53]MH_SAM_APDU [15:06:53]CAPDU: 80 09 00 00 [15:06:53]Write to MH i2c: E2 08 00 E1 1E 80 09 00 00 00 00 00 00 71 [15:06:53]Write i2c OK [15:06:53]MH_I2C_Read... [15:06:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:53]Read from MH i2c: E2 [15:06:53]MH_I2C_Read... [15:06:53]Read from MH i2c: E2 03 00 [15:06:53]MH_I2C_Read... [15:06:53]Read from MH i2c: E2 03 00 E1 1E 00 90 00 73 [15:06:53]RAPDU: 90 00 [15:06:53]wFMCommunicate OK [15:06:53]SAM_PROTO_ClearQueue done [15:06:53]KKMCreateOFDPacket [15:06:53]OFDProtocolAddRootSTLVToBuf [15:06:53]FM_MakeSignedData [15:06:53]FM_MakeSignedData [15:06:53]SAM_PROTO_SignData [15:06:53]wFMCommunicate request_size=4 [15:06:53]MH_SAM_APDU [15:06:53]CAPDU: 80 0D 01 02 [15:06:53]Write to MH i2c: E2 08 00 E2 1E 80 0D 01 02 00 00 00 00 79 [15:06:53]Write i2c OK [15:06:53]MH_I2C_Read... [15:06:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:53]Read from MH i2c: E2 [15:06:53]MH_I2C_Read... [15:06:53]Read from MH i2c: E2 03 00 [15:06:53]MH_I2C_Read... [15:06:53]Read from MH i2c: E2 03 00 E2 1E 00 90 00 74 [15:06:53]RAPDU: 90 00 [15:06:53]wFMCommunicate OK [15:06:53]wFMCommunicate request_size=255 [15:06:53]MH_SAM_APDU [15:06:53]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 94 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B8 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 0E 94 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 74 00 00 35 04 06 00 [15:06:53]Write to MH i2c: E2 02 01 E3 1E 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 94 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B8 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 0E 94 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 74 00 00 35 04 06 00 00 00 AB [15:06:53]Write i2c OK [15:06:53]MH_I2C_Read... [15:06:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:53]Read from MH i2c: E2 [15:06:53]MH_I2C_Read... [15:06:53]Read from MH i2c: E2 03 00 [15:06:53]MH_I2C_Read... [15:06:53]Read from MH i2c: E2 03 00 E3 1E 00 90 00 75 [15:06:53]RAPDU: 90 00 [15:06:53]wFMCommunicate OK [15:06:53]wFMCommunicate request_size=11 [15:06:53]MH_SAM_APDU [15:06:53]CAPDU: 80 0D 02 02 06 87 C0 2F 8D E7 E6 [15:06:53]Write to MH i2c: E2 0E 00 E4 1E 80 0D 02 02 06 00 87 C0 2F 8D E7 E6 00 00 58 [15:06:53]Write i2c OK [15:06:53]MH_I2C_Read... [15:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 03 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 03 00 E4 1E 00 90 00 76 [15:06:54]RAPDU: 90 00 [15:06:54]wFMCommunicate OK [15:06:54]wFMCommunicate request_size=4 [15:06:54]MH_SAM_APDU [15:06:54]CAPDU: 80 0D 03 02 [15:06:54]Write to MH i2c: E2 08 00 E5 1E 80 0D 03 02 00 00 00 00 7E [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 0B 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 0B 00 E5 1E 00 A6 E2 C2 88 1C 51 D4 8C 90 00 1E [15:06:54]RAPDU: A6 E2 C2 88 1C 51 D4 8C 90 00 [15:06:54]wFMCommunicate OK [15:06:54]SAM_PROTO_SignData done [15:06:54]FM_MakeSignedData done [15:06:54]CreateOFDProtocolMessage [15:06:54]wFMCommunicate request_size=4 [15:06:54]MH_SAM_APDU [15:06:54]CAPDU: 80 11 00 00 [15:06:54]Write to MH i2c: E2 08 00 E6 1E 80 11 00 00 00 00 00 00 7E [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 17 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 17 00 E6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CD [15:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:06:54]wFMCommunicate OK [15:06:54]CreateOFDProtocolMessage done [15:06:54]OFDSenderStorePacket 29848 [15:06:54]StoreOFDPacket docnum=29848 [15:06:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 11 D6 08 01 15 DC 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 94 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B8 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 0E 94 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 74 00 00 35 04 06 00 87 C0 2F 8D E7 E6 A6 E2 C2 88 1C 51 D4 8C [15:06:54]CheckFolder [15:06:54]dirname=/storage/ofd_packets [15:06:54]CheckFolder done [15:06:54]ProducePacketName [15:06:54]name=ofd_packets/00029848 [15:06:54]NVStorageSaveData ofd_packets/00029848 [15:06:54]File name is /storage/ofd_packets/00029848 [15:06:54]Write 302 bytes [15:06:54]NVStorageSaveData done [15:06:54]OFDSenderStorePacket done [15:06:54]KKMCreateOFDPacket done [15:06:54]NVStorageSaveData kkm_last_timestamp [15:06:54]File name is /storage/kkm_last_timestamp [15:06:54]Write 4 bytes [15:06:54]NVStorageSaveData done [15:06:54]ExternCall_PrintAddStr [15:06:54]wPrintStart [15:06:54]Write to MH i2c: 01 00 00 E7 1E 05 [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: 01 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: 01 07 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: 01 07 00 E7 1E 00 00 00 00 00 FF 0F 1A [15:06:54]RasterBufferAndPrint [15:06:54]line Счет N : (1)348369 [15:06:54]line ИНН: 02508201610067 [15:06:54]line Контрольно-Кассовый Чек [15:06:54]line ПРОДАЖА [15:06:54]line ТРК (МРК, ГНК) : 22 [15:06:54]line Товар: 2710124130 [15:06:54]line SUPER-92-К-5 [15:06:54]line 38.000 * 65.80 [15:06:54]line = 2500.40 [15:06:54]line НДС 12% НСП 1% [15:06:54]line > о реализуемом товаре [15:06:54]line ИТОГО: 2500.40 [15:06:54]line НСП 1% : 22.13 [15:06:54]line НДС 12% : 265.53 [15:06:54]line Наличными: 0.00 [15:06:54]line Безнал.: 2500.40 [15:06:54]line Место: АЗС № 108 "Партнер Нефть" [15:06:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:06:54]line СНО: Общий режим [15:06:54]line Чек 122 16.04.2024 15:06 [15:06:54]line Смена: 118 ФФД: 1.0 [15:06:54]line ЗНМ: 0300000027 [15:06:54]line РНМ: 0000138879044617 [15:06:54]line Версия ККМ: 001 [15:06:54]line Платежная система: О! деньги [15:06:54]line ФМ: 0000000000963154 [15:06:54]line ФД: 29848 [15:06:54]line ФПД: 149259501299686 [15:06:54]line 1/tax-web-control/client/api/v1/ticket?date=20240416T150654&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29848&fm=149259501299686&tin=02508201610067®Number=0000138879044617&sum=250040 [15:06:54]OFD Sender: Processing packet 29848 [packets to send 8, broken 7] [15:06:54]ProducePacketName [15:06:54]name=ofd_packets/00029848 [15:06:54]OFD Sender: To server: pG, [15:06:54]CommunicateWithHost lk.salyk.kg:30040 [15:06:54]ConnectInit lk.salyk.kg [15:06:54]written 0, free lines is 4095 [15:06:54]Connected sock=10 [15:06:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 11 D6 08 01 15 DC 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 94 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B8 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 0E 94 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 74 00 00 35 04 06 00 87 C0 2F 8D E7 E6 A6 E2 C2 88 1C 51 D4 8C [15:06:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EC 62 47 00 66 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 74 00 00 F4 03 04 00 AC 3E 1E 66 B6 04 01 00 00 E2 55 7B E1 AC AA F4 40 [15:06:54]CommunicateWithHost err = 0 [15:06:54]CheckOFDResponse [15:06:54]1017 (14) - 77093643461234 [15:06:54]1041 (16) - 0000000000963154 [15:06:54]1040 (4) - 29848 [15:06:54]1012 (4) - 16.04.2024 09:02 [15:06:54]1206 (1) - 0 [15:06:54]OFD Sender: Remove packet 29848 [15:06:54]ProducePacketName [15:06:54]name=ofd_packets/00029848 [15:06:54]NVStorageDeleteData [15:06:54]Write to MH i2c: 01 00 00 10 1F 2F [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: 01 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: 01 07 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: 01 07 00 10 1F 00 00 00 00 00 E8 0C 2A [15:06:54]RasterBufferAndPrint [15:06:54]line [15:06:54]line [15:06:54]line [15:06:54]line [15:06:54]line [15:06:54]written 0, free lines is 3310 [15:06:54]MH_Cut [15:06:54]Write to MH i2c: D1 01 00 17 1F 01 08 [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: D1 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: D1 01 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: D1 01 00 17 1F 00 07 [15:06:54]Write to MH i2c: 01 00 00 18 1F 37 [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:55]OFD Sender: No OFD packet to send [15:06:55]*** Cut start [15:06:55]*** Partial cut [15:06:55]*** CUTSNS_PIN = 1 [15:06:55]*** CUTSNS_PIN = 0 [15:06:56]*** Brake cut motor [15:06:56]Read from MH i2c: 01 [15:06:56]MH_I2C_Read... [15:06:56]*** Stop cut motor [15:06:56]*** Cut end [15:06:56]Read from MH i2c: 01 07 00 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: 01 07 00 18 1F 00 00 00 00 00 FF 0F 4C [15:06:56]process_action close_receipt done [15:06:56]requested_data is exist [15:06:56]produce_requested_data [15:06:56]requested_item fm.sn is exist - process it [15:06:56]wFMCommunicate request_size=4 [15:06:56]MH_SAM_APDU [15:06:56]CAPDU: 80 11 00 00 [15:06:56]Write to MH i2c: E2 08 00 19 1F 80 11 00 00 00 00 00 00 B2 [15:06:56]Write i2c OK [15:06:56]MH_I2C_Read... [15:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:56]Read from MH i2c: E2 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: E2 17 00 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: E2 17 00 19 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 01 [15:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:06:56]wFMCommunicate OK [15:06:56]requested_item fd.num is exist - process it [15:06:56]SAM_PROTO_GetFieldsCounters [15:06:56]wFMCommunicate request_size=4 [15:06:56]MH_SAM_APDU [15:06:56]CAPDU: 80 13 00 00 [15:06:56]Write to MH i2c: E2 08 00 1A 1F 80 13 00 00 00 00 00 00 B5 [15:06:56]Write i2c OK [15:06:56]MH_I2C_Read... [15:06:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:56]Read from MH i2c: E2 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: E2 62 00 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: E2 62 00 1A 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 98 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [15:06:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 98 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:56]wFMCommunicate OK [15:06:56]SAM_PROTO_GetFieldsCounters done [15:06:56]requested_item shift.num is exist - process it [15:06:56]requested_item shift.opened is exist - process it [15:06:56]req_shift_opened [15:06:56]FM_GetShiftState [15:06:56]SAM_PROTO_GetShiftState [15:06:56]wFMCommunicate request_size=4 [15:06:56]MH_SAM_APDU [15:06:56]CAPDU: 80 13 01 00 [15:06:56]Write to MH i2c: E2 08 00 1B 1F 80 13 01 00 00 00 00 00 B7 [15:06:56]Write i2c OK [15:06:56]MH_I2C_Read... [15:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:56]Read from MH i2c: E2 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: E2 0E 00 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: E2 0E 00 1B 1F 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 65 [15:06:56]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [15:06:56]wFMCommunicate OK [15:06:56]SAM_PROTO_GetShiftState done [15:06:56]FM_GetShiftState done [15:06:56]req_shift_opened done [15:06:56]requested_item shift.open_date is exist - process it [15:06:56]req_shift_open_date [15:06:56]req_shift_open_date done [15:06:56]produce_requested_data done [15:06:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29848,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [15:06:56]process_action_free close_receipt [15:06:56]json_value_free [15:06:56]json_value_free done [15:06:56]process_json_proto returns [15:06:56]Send response to host [15:06:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29848,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [15:06:56]free response buf [15:06:56]execute_script done [15:06:56]execute_script returns [15:06:56]free content buf [15:06:56]Sock 7.Close socket [15:06:56]Sock 7.Thread stoped [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:17]accept exits with 9 [15:08:17]New connection [15:08:17]New thread 3067133284 created [15:08:17]Thread 3067276644 joined [15:08:17]Waiting for new connection... [15:08:17] Sock 9.Parse request [15:08:17]Sock 9.Check first char [15:08:17]Sock 9.First char is OK [15:08:17]request: POST /json_proto HTTP/1.0 [15:08:17]Method: POST [15:08:17]URL: /json_proto [15:08:17]Method is POST - this is cgi request [15:08:17]url: /json_proto [15:08:17]query_string will be loaded in cgi processing [15:08:17]execute_cgi json_proto POST (null) [15:08:17]execute_cgi path=json_proto method=POST [15:08:17]POST find Content-Length [15:08:17]Host: 172.17.33.3:8080 [15:08:17]Content-Length: 670 [15:08:17]Content-Type: application/json [15:08:17] [15:08:17]POST finish read [15:08:17]Found Content-Length = 670 [15:08:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:08:17]execute_script... [15:08:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "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:08:17]POST & json_proto [15:08:17]process_json_proto [15:08:17]json parsed OK: [15:08:17]protocol is kg_v1.0 [15:08:17]action value=close_receipt [15:08:17]process_action close_receipt [15:08:17]cmd_close_receipt [15:08:17]MH_GetDate [15:08:17]Write to MH i2c: F0 00 00 1C 1F 2A [15:08:17]Write i2c OK [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: F0 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: F0 09 00 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: F0 09 00 1C 1F 00 64 94 1E 66 23 5B 8F 65 21 [15:08:17]GetLastDocTimeStamp 1713280014 [15:08:17]current date 1713280100 [15:08:17]FM_GetShiftState [15:08:17]SAM_PROTO_GetShiftState [15:08:17]wFMCommunicate request_size=4 [15:08:17]MH_SAM_APDU [15:08:17]CAPDU: 80 13 01 00 [15:08:17]Write to MH i2c: E2 08 00 1D 1F 80 13 01 00 00 00 00 00 B9 [15:08:17]Write i2c OK [15:08:17]MH_I2C_Read... [15:08:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:17]Read from MH i2c: E2 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 0E 00 [15:08:17]MH_I2C_Read... [15:08:17]Read from MH i2c: E2 0E 00 1D 1F 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 67 [15:08:17]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [15:08:17]wFMCommunicate OK [15:08:17]SAM_PROTO_GetShiftState done [15:08:17]FM_GetShiftState done [15:08:17]opened in 1713226843 [15:08:17]opened+sec_in_day 1713313243 [15:08:17]quantity*price = 50008 [15:08:17]sum+1 = 50009 [15:08:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 123 16.04.2024 15:08 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29849 ФПД: 149941932035978 1/tax-web-control/client/api/v1/ticket?date=20240416T150820&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29849&fm=149941932035978&tin=02508201610067®Number=0000138879044617&sum=50000 [15:08:19]StoreToDocumentArchive [15:08:19]shift 118 fd 29849 [15:08:19]save to /storage/0118/doc_00029849 [15:08:19]save last doc name /storage/0118/doc_00029849 to /storage/kkm_last_doc_name [15:08:19]save OK [15:08:19]Clear old archive folders... [15:08:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:08:19]tlvbuf is B6F103E0 [15:08:19]SAM_PROTO_ClearQueue [15:08:19]wFMCommunicate request_size=4 [15:08:19]MH_SAM_APDU [15:08:19]CAPDU: 80 09 00 00 [15:08:19]Write to MH i2c: E2 08 00 2A 1F 80 09 00 00 00 00 00 00 BB [15:08:19]Write i2c OK [15:08:19]MH_I2C_Read... [15:08:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:19]Read from MH i2c: E2 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: E2 03 00 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: E2 03 00 2A 1F 00 90 00 BD [15:08:19]RAPDU: 90 00 [15:08:19]wFMCommunicate OK [15:08:19]SAM_PROTO_ClearQueue done [15:08:19]KKMCreateOFDPacket [15:08:19]OFDProtocolAddRootSTLVToBuf [15:08:19]FM_MakeSignedData [15:08:19]FM_MakeSignedData [15:08:19]SAM_PROTO_SignData [15:08:19]wFMCommunicate request_size=4 [15:08:19]MH_SAM_APDU [15:08:19]CAPDU: 80 0D 01 02 [15:08:19]Write to MH i2c: E2 08 00 2B 1F 80 0D 01 02 00 00 00 00 C3 [15:08:19]Write i2c OK [15:08:19]MH_I2C_Read... [15:08:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:19]Read from MH i2c: E2 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: E2 03 00 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: E2 03 00 2B 1F 00 90 00 BE [15:08:19]RAPDU: 90 00 [15:08:19]wFMCommunicate OK [15:08:19]wFMCommunicate request_size=255 [15:08:19]MH_SAM_APDU [15:08:19]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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 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 BA 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 7B 00 00 00 F4 03 04 00 64 94 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 74 00 00 35 04 06 00 [15:08:19]Write to MH i2c: E2 02 01 2C 1F 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 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 BA 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 7B 00 00 00 F4 03 04 00 64 94 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 74 00 00 35 04 06 00 00 00 77 [15:08:19]Write i2c OK [15:08:19]MH_I2C_Read... [15:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:19]Read from MH i2c: E2 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: E2 03 00 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: E2 03 00 2C 1F 00 90 00 BF [15:08:19]RAPDU: 90 00 [15:08:19]wFMCommunicate OK [15:08:19]wFMCommunicate request_size=11 [15:08:19]MH_SAM_APDU [15:08:19]CAPDU: 80 0D 02 02 06 88 5F 13 98 8F 8A [15:08:19]Write to MH i2c: E2 0E 00 2D 1F 80 0D 02 02 06 00 88 5F 13 98 8F 8A 00 00 7D [15:08:19]Write i2c OK [15:08:19]MH_I2C_Read... [15:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:19]Read from MH i2c: E2 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: E2 03 00 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: E2 03 00 2D 1F 00 90 00 C0 [15:08:19]RAPDU: 90 00 [15:08:19]wFMCommunicate OK [15:08:19]wFMCommunicate request_size=4 [15:08:19]MH_SAM_APDU [15:08:19]CAPDU: 80 0D 03 02 [15:08:19]Write to MH i2c: E2 08 00 2E 1F 80 0D 03 02 00 00 00 00 C8 [15:08:19]Write i2c OK [15:08:19]MH_I2C_Read... [15:08:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:19]Read from MH i2c: E2 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: E2 0B 00 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: E2 0B 00 2E 1F 00 85 EB 81 D7 FF 25 23 48 90 00 20 [15:08:19]RAPDU: 85 EB 81 D7 FF 25 23 48 90 00 [15:08:19]wFMCommunicate OK [15:08:19]SAM_PROTO_SignData done [15:08:19]FM_MakeSignedData done [15:08:19]CreateOFDProtocolMessage [15:08:19]wFMCommunicate request_size=4 [15:08:19]MH_SAM_APDU [15:08:19]CAPDU: 80 11 00 00 [15:08:19]Write to MH i2c: E2 08 00 2F 1F 80 11 00 00 00 00 00 00 C8 [15:08:19]Write i2c OK [15:08:19]MH_I2C_Read... [15:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:19]Read from MH i2c: E2 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: E2 17 00 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: E2 17 00 2F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 17 [15:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:08:19]wFMCommunicate OK [15:08:19]CreateOFDProtocolMessage done [15:08:19]OFDSenderStorePacket 29849 [15:08:19]StoreOFDPacket docnum=29849 [15:08:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 0A 3B 08 01 10 45 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 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 BA 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 7B 00 00 00 F4 03 04 00 64 94 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 74 00 00 35 04 06 00 88 5F 13 98 8F 8A 85 EB 81 D7 FF 25 23 48 [15:08:19]CheckFolder [15:08:19]dirname=/storage/ofd_packets [15:08:19]CheckFolder done [15:08:19]ProducePacketName [15:08:19]name=ofd_packets/00029849 [15:08:19]NVStorageSaveData ofd_packets/00029849 [15:08:19]File name is /storage/ofd_packets/00029849 [15:08:19]Write 302 bytes [15:08:19]NVStorageSaveData done [15:08:19]OFDSenderStorePacket done [15:08:19]KKMCreateOFDPacket done [15:08:19]NVStorageSaveData kkm_last_timestamp [15:08:19]File name is /storage/kkm_last_timestamp [15:08:19]Write 4 bytes [15:08:19]NVStorageSaveData done [15:08:19]ExternCall_PrintAddStr [15:08:19]wPrintStart [15:08:19]Write to MH i2c: 01 00 00 30 1F 4F [15:08:19]Write i2c OK [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: 01 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: 01 07 00 [15:08:19]MH_I2C_Read... [15:08:19]Read from MH i2c: 01 07 00 30 1F 00 00 00 00 00 FF 0F 64 [15:08:19]RasterBufferAndPrint [15:08:19]line Счет N : (1)348370 [15:08:19]line ИНН: 02508201610067 [15:08:19]line Контрольно-Кассовый Чек [15:08:19]line ПРОДАЖА [15:08:19]line ТРК (МРК, ГНК) : 31 [15:08:19]line Товар: 2710124130 [15:08:19]line SUPER-92-К-5 [15:08:19]line 7.600 * 65.80 [15:08:19]line = 500.08 [15:08:19]line НДС 12% НСП 1% [15:08:19]line > о реализуемом товаре [15:08:19]line ОКРУГЛЕНИЕ: -0.08 [15:08:19]line ИТОГО: 500.00 [15:08:19]line Внесено: 500.00 [15:08:19]line СДАЧА: 0.00 [15:08:19]line НСП 1% : 4.42 [15:08:19]line НДС 12% : 53.11 [15:08:19]line Наличными: 500.00 [15:08:19]line Безнал.: 0.00 [15:08:19]line Место: АЗС № 108 "Партнер Нефть" [15:08:19]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:08:19]line СНО: Общий режим [15:08:19]line Чек 123 16.04.2024 15:08 [15:08:19]line Смена: 118 ФФД: 1.0 [15:08:19]line ЗНМ: 0300000027 [15:08:19]line РНМ: 0000138879044617 [15:08:19]line Версия ККМ: 001 [15:08:19]line ФМ: 0000000000963154 [15:08:19]line ФД: 29849 [15:08:19]line ФПД: 149941932035978 [15:08:19]line 1/tax-web-control/client/api/v1/ticket?date=20240416T150820&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29849&fm=149941932035978&tin=02508201610067®Number=0000138879044617&sum=50000 [15:08:19]OFD Sender: Processing packet 29849 [packets to send 8, broken 7] [15:08:19]ProducePacketName [15:08:19]name=ofd_packets/00029849 [15:08:19]OFD Sender: To server: pG, [15:08:19]CommunicateWithHost lk.salyk.kg:30040 [15:08:19]ConnectInit lk.salyk.kg [15:08:19]written 0, free lines is 4095 [15:08:19]Connected sock=10 [15:08:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 0A 3B 08 01 10 45 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 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 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 BA 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 7B 00 00 00 F4 03 04 00 64 94 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 74 00 00 35 04 06 00 88 5F 13 98 8F 8A 85 EB 81 D7 FF 25 23 48 [15:08:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 25 D0 47 00 A8 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 99 74 00 00 F4 03 04 00 01 3F 1E 66 B6 04 01 00 00 71 61 9A 10 50 21 76 55 [15:08:20]CommunicateWithHost err = 0 [15:08:20]CheckOFDResponse [15:08:20]1017 (14) - 77093643461234 [15:08:20]1041 (16) - 0000000000963154 [15:08:20]1040 (4) - 29849 [15:08:20]1012 (4) - 16.04.2024 09:04 [15:08:20]1206 (1) - 0 [15:08:20]OFD Sender: Remove packet 29849 [15:08:20]ProducePacketName [15:08:20]name=ofd_packets/00029849 [15:08:20]NVStorageDeleteData [15:08:20]Write to MH i2c: 01 00 00 5A 1F 79 [15:08:20]Write i2c OK [15:08:20]MH_I2C_Read... [15:08:20]Read from MH i2c: 01 [15:08:20]MH_I2C_Read... [15:08:20]Read from MH i2c: 01 07 00 [15:08:20]MH_I2C_Read... [15:08:20]Read from MH i2c: 01 07 00 5A 1F 00 00 00 00 00 D4 0C 60 [15:08:20]RasterBufferAndPrint [15:08:20]line [15:08:20]line [15:08:20]line [15:08:20]line [15:08:20]line [15:08:20]written 0, free lines is 3291 [15:08:20]MH_Cut [15:08:20]Write to MH i2c: D1 01 00 61 1F 01 52 [15:08:20]Write i2c OK [15:08:20]MH_I2C_Read... [15:08:20]Read from MH i2c: D1 [15:08:20]MH_I2C_Read... [15:08:20]Read from MH i2c: D1 01 00 [15:08:20]MH_I2C_Read... [15:08:20]Read from MH i2c: D1 01 00 61 1F 00 51 [15:08:20]Write to MH i2c: 01 00 00 62 1F 81 [15:08:20]Write i2c OK [15:08:20]MH_I2C_Read... [15:08:20]OFD Sender: No OFD packet to send [15:08:21]*** Cut start [15:08:21]*** Partial cut [15:08:21]*** CUTSNS_PIN = 1 [15:08:21]*** CUTSNS_PIN = 0 [15:08:21]*** Brake cut motor [15:08:21]Read from MH i2c: 01 [15:08:21]MH_I2C_Read... [15:08:21]*** Stop cut motor [15:08:21]*** Cut end [15:08:21]Read from MH i2c: 01 07 00 [15:08:21]MH_I2C_Read... [15:08:21]Read from MH i2c: 01 07 00 62 1F 00 00 00 00 00 FF 0F 96 [15:08:21]process_action close_receipt done [15:08:21]requested_data is exist [15:08:21]produce_requested_data [15:08:21]requested_item fm.sn is exist - process it [15:08:21]wFMCommunicate request_size=4 [15:08:21]MH_SAM_APDU [15:08:21]CAPDU: 80 11 00 00 [15:08:21]Write to MH i2c: E2 08 00 63 1F 80 11 00 00 00 00 00 00 FC [15:08:21]Write i2c OK [15:08:21]MH_I2C_Read... [15:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:21]Read from MH i2c: E2 [15:08:21]MH_I2C_Read... [15:08:21]Read from MH i2c: E2 17 00 [15:08:21]MH_I2C_Read... [15:08:21]Read from MH i2c: E2 17 00 63 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4B [15:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:08:21]wFMCommunicate OK [15:08:21]requested_item fd.num is exist - process it [15:08:21]SAM_PROTO_GetFieldsCounters [15:08:21]wFMCommunicate request_size=4 [15:08:21]MH_SAM_APDU [15:08:21]CAPDU: 80 13 00 00 [15:08:21]Write to MH i2c: E2 08 00 64 1F 80 13 00 00 00 00 00 00 FF [15:08:21]Write i2c OK [15:08:21]MH_I2C_Read... [15:08:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:21]Read from MH i2c: E2 [15:08:21]MH_I2C_Read... [15:08:21]Read from MH i2c: E2 62 00 [15:08:21]MH_I2C_Read... [15:08:21]Read from MH i2c: E2 62 00 64 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 99 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [15:08:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 99 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:21]wFMCommunicate OK [15:08:21]SAM_PROTO_GetFieldsCounters done [15:08:21]requested_item shift.num is exist - process it [15:08:21]requested_item shift.opened is exist - process it [15:08:21]req_shift_opened [15:08:21]FM_GetShiftState [15:08:21]SAM_PROTO_GetShiftState [15:08:21]wFMCommunicate request_size=4 [15:08:21]MH_SAM_APDU [15:08:21]CAPDU: 80 13 01 00 [15:08:21]Write to MH i2c: E2 08 00 65 1F 80 13 01 00 00 00 00 00 01 [15:08:21]Write i2c OK [15:08:21]MH_I2C_Read... [15:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:21]Read from MH i2c: E2 [15:08:21]MH_I2C_Read... [15:08:21]Read from MH i2c: E2 0E 00 [15:08:21]MH_I2C_Read... [15:08:21]Read from MH i2c: E2 0E 00 65 1F 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 AF [15:08:21]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [15:08:21]wFMCommunicate OK [15:08:21]SAM_PROTO_GetShiftState done [15:08:21]FM_GetShiftState done [15:08:21]req_shift_opened done [15:08:21]requested_item shift.open_date is exist - process it [15:08:21]req_shift_open_date [15:08:21]req_shift_open_date done [15:08:21]produce_requested_data done [15:08:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29849,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [15:08:21]process_action_free close_receipt [15:08:21]json_value_free [15:08:21]json_value_free done [15:08:21]process_json_proto returns [15:08:21]Send response to host [15:08:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29849,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [15:08:21]free response buf [15:08:21]execute_script done [15:08:21]execute_script returns [15:08:21]free content buf [15:08:21]Sock 9.Close socket [15:08:21]Sock 9.Thread stoped [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:22]accept exits with 7 [15:09:22]New connection [15:09:22]New thread 3067276644 created [15:09:22]Thread 3067133284 joined [15:09:22]Waiting for new connection... [15:09:22] Sock 7.Parse request [15:09:22]Sock 7.Check first char [15:09:22]Sock 7.First char is OK [15:09:22]request: POST /json_proto HTTP/1.0 [15:09:22]Method: POST [15:09:22]URL: /json_proto [15:09:22]Method is POST - this is cgi request [15:09:22]url: /json_proto [15:09:22]query_string will be loaded in cgi processing [15:09:22]execute_cgi json_proto POST (null) [15:09:22]execute_cgi path=json_proto method=POST [15:09:22]POST find Content-Length [15:09:22]Host: 172.17.33.3:8080 [15:09:22]Content-Length: 1211 [15:09:22]Content-Type: application/json [15:09:22] [15:09:22]POST finish read [15:09:22]Found Content-Length = 1211 [15:09:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348368\u000A16.04.2024 14:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 130.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 9477.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3729719;3729718;3729707\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:22]execute_script... [15:09:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)348368\u000A16.04.2024 14:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 130.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 9477.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3729719;3729718;3729707\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:22]POST & json_proto [15:09:22]process_json_proto [15:09:22]json parsed OK: [15:09:22]protocol is kg_v1.0 [15:09:22]action value=print_text [15:09:22]process_action print_text [15:09:22]cmd_print_text [15:09:22]ExternCall_PrintAddStr [15:09:22]wPrintStart [15:09:22]Write to MH i2c: 01 00 00 66 1F 85 [15:09:22]Write i2c OK [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: 01 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: 01 07 00 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: 01 07 00 66 1F 00 00 00 00 00 FF 0F 9A [15:09:22]RasterBufferAndPrint [15:09:22]line *****ТОВАРНЫЙ ЧЕК***** [15:09:22]line АЗС 108 [15:09:22]line Партнер нефть [15:09:22]line 02508201610067 [15:09:22]line Кассир : Шадыканова Ж. [15:09:22]line Счет N : (1)348368 [15:09:22]line 16.04.2024 14:50 [15:09:22]line ПРОДАЖА [15:09:22]line ТРК (МРК, ГНК): 51 [15:09:22]line Вид ГСМ : 2710194210 [15:09:22]line ДТ-К-5 [15:09:22]line 130.000 x 72.90 [15:09:22]line ИТОГ: 9477.00 [15:09:22]line Тип оплаты: Талоны: Партнер нефть [15:09:22]line 3729719;3729718;3729707 [15:09:22]line ______________________ [15:09:22]line (подпись) [15:09:22]written 0, free lines is 4095 [15:09:22]Write to MH i2c: 01 00 00 7B 1F 9A [15:09:22]Write i2c OK [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: 01 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: 01 07 00 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: 01 07 00 7B 1F 00 00 00 00 00 FF 0D AD [15:09:22]RasterBufferAndPrint [15:09:22]line [15:09:22]line [15:09:22]line [15:09:22]line [15:09:22]line [15:09:22]written 0, free lines is 3585 [15:09:22]MH_Cut [15:09:22]Write to MH i2c: D1 01 00 82 1F 01 73 [15:09:22]Write i2c OK [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: D1 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: D1 01 00 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: D1 01 00 82 1F 00 72 [15:09:22]Write to MH i2c: 01 00 00 83 1F A2 [15:09:22]Write i2c OK [15:09:22]MH_I2C_Read... [15:09:23]*** Cut start [15:09:23]*** Partial cut [15:09:23]*** CUTSNS_PIN = 1 [15:09:23]*** CUTSNS_PIN = 0 [15:09:23]*** Brake cut motor [15:09:23]Read from MH i2c: 01 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: 01 07 00 [15:09:23]MH_I2C_Read... [15:09:23]*** Stop cut motor [15:09:23]*** Cut end [15:09:23]Read from MH i2c: 01 07 00 83 1F 00 00 00 00 00 FF 0F B7 [15:09:23]process_action print_text done [15:09:23]requested_data is exist [15:09:23]produce_requested_data [15:09:23]requested_item fm.sn is exist - process it [15:09:23]wFMCommunicate request_size=4 [15:09:23]MH_SAM_APDU [15:09:23]CAPDU: 80 11 00 00 [15:09:23]Write to MH i2c: E2 08 00 84 1F 80 11 00 00 00 00 00 00 1D [15:09:23]Write i2c OK [15:09:23]MH_I2C_Read... [15:09:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:23]Read from MH i2c: E2 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: E2 17 00 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: E2 17 00 84 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6C [15:09:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:09:23]wFMCommunicate OK [15:09:23]requested_item fd.num is exist - process it [15:09:23]SAM_PROTO_GetFieldsCounters [15:09:23]wFMCommunicate request_size=4 [15:09:23]MH_SAM_APDU [15:09:23]CAPDU: 80 13 00 00 [15:09:23]Write to MH i2c: E2 08 00 85 1F 80 13 00 00 00 00 00 00 20 [15:09:23]Write i2c OK [15:09:23]MH_I2C_Read... [15:09:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:23]Read from MH i2c: E2 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: E2 62 00 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: E2 62 00 85 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 99 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [15:09:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 99 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:23]wFMCommunicate OK [15:09:23]SAM_PROTO_GetFieldsCounters done [15:09:23]requested_item shift.num is exist - process it [15:09:23]requested_item shift.opened is exist - process it [15:09:23]req_shift_opened [15:09:23]FM_GetShiftState [15:09:23]SAM_PROTO_GetShiftState [15:09:23]wFMCommunicate request_size=4 [15:09:23]MH_SAM_APDU [15:09:23]CAPDU: 80 13 01 00 [15:09:23]Write to MH i2c: E2 08 00 86 1F 80 13 01 00 00 00 00 00 22 [15:09:23]Write i2c OK [15:09:23]MH_I2C_Read... [15:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:23]Read from MH i2c: E2 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: E2 0E 00 [15:09:23]MH_I2C_Read... [15:09:23]Read from MH i2c: E2 0E 00 86 1F 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 D0 [15:09:23]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [15:09:23]wFMCommunicate OK [15:09:23]SAM_PROTO_GetShiftState done [15:09:23]FM_GetShiftState done [15:09:23]req_shift_opened done [15:09:23]requested_item shift.open_date is exist - process it [15:09:23]req_shift_open_date [15:09:23]req_shift_open_date done [15:09:23]produce_requested_data done [15:09:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29849,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [15:09:23]process_action_free print_text [15:09:23]json_value_free [15:09:23]json_value_free done [15:09:23]process_json_proto returns [15:09:23]Send response to host [15:09:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29849,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [15:09:23]free response buf [15:09:23]execute_script done [15:09:23]execute_script returns [15:09:23]free content buf [15:09:23]Sock 7.Close socket [15:09:23]Sock 7.Thread stoped [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:40]OFD Sender: No OFD packet to send [15:11:45]OFD Sender: No OFD packet to send [15:11:50]OFD Sender: No OFD packet to send [15:11:55]OFD Sender: No OFD packet to send [15:12:00]OFD Sender: No OFD packet to send [15:12:05]OFD Sender: No OFD packet to send [15:12:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:20]OFD Sender: No OFD packet to send [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]accept exits with 9 [15:16:00]New connection [15:16:00]New thread 3067133284 created [15:16:00]Thread 3067276644 joined [15:16:00]Waiting for new connection... [15:16:00] Sock 9.Parse request [15:16:00]Sock 9.Check first char [15:16:00]Sock 9.First char is OK [15:16:00]request: POST /json_proto HTTP/1.0 [15:16:00]Method: POST [15:16:00]URL: /json_proto [15:16:00]Method is POST - this is cgi request [15:16:00]url: /json_proto [15:16:00]query_string will be loaded in cgi processing [15:16:00]execute_cgi json_proto POST (null) [15:16:00]execute_cgi path=json_proto method=POST [15:16:00]POST find Content-Length [15:16:00]Host: 172.17.33.3:8080 [15:16:00]Content-Length: 674 [15:16:00]Content-Type: application/json [15:16:00] [15:16:00]POST finish read [15:16:00]Found Content-Length = 674 [15:16:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "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" ] } } [15:16:00]execute_script... [15:16:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "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" ] } } [15:16:00]POST & json_proto [15:16:00]process_json_proto [15:16:00]json parsed OK: [15:16:00]protocol is kg_v1.0 [15:16:00]action value=close_receipt [15:16:00]process_action close_receipt [15:16:00]cmd_close_receipt [15:16:00]MH_GetDate [15:16:00]Write to MH i2c: F0 00 00 87 1F 95 [15:16:00]Write i2c OK [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: F0 [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: F0 09 00 [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: F0 09 00 87 1F 00 32 96 1E 66 23 5B 8F 65 5C [15:16:00]GetLastDocTimeStamp 1713280100 [15:16:00]current date 1713280562 [15:16:00]FM_GetShiftState [15:16:00]SAM_PROTO_GetShiftState [15:16:00]wFMCommunicate request_size=4 [15:16:00]MH_SAM_APDU [15:16:00]CAPDU: 80 13 01 00 [15:16:00]Write to MH i2c: E2 08 00 88 1F 80 13 01 00 00 00 00 00 24 [15:16:00]Write i2c OK [15:16:00]MH_I2C_Read... [15:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:00]Read from MH i2c: E2 [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: E2 0E 00 [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: E2 0E 00 88 1F 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 D2 [15:16:00]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [15:16:00]wFMCommunicate OK [15:16:00]SAM_PROTO_GetShiftState done [15:16:00]FM_GetShiftState done [15:16:00]opened in 1713226843 [15:16:00]opened+sec_in_day 1713313243 [15:16:00]quantity*price = 70056 [15:16:00]sum+1 = 70058 [15:16:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 124 16.04.2024 15:16 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29850 ФПД: 111734973251039 1/tax-web-control/client/api/v1/ticket?date=20240416T151602&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29850&fm=111734973251039&tin=02508201610067®Number=0000138879044617&sum=70000 [15:16:01]StoreToDocumentArchive [15:16:01]shift 118 fd 29850 [15:16:01]save to /storage/0118/doc_00029850 [15:16:01]save last doc name /storage/0118/doc_00029850 to /storage/kkm_last_doc_name [15:16:01]save OK [15:16:01]Clear old archive folders... [15:16:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:16:01]tlvbuf is 001EB470 [15:16:01]SAM_PROTO_ClearQueue [15:16:01]wFMCommunicate request_size=4 [15:16:01]MH_SAM_APDU [15:16:01]CAPDU: 80 09 00 00 [15:16:01]Write to MH i2c: E2 08 00 95 1F 80 09 00 00 00 00 00 00 26 [15:16:01]Write i2c OK [15:16:01]MH_I2C_Read... [15:16:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:01]Read from MH i2c: E2 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 03 00 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 03 00 95 1F 00 90 00 28 [15:16:01]RAPDU: 90 00 [15:16:01]wFMCommunicate OK [15:16:01]SAM_PROTO_ClearQueue done [15:16:01]KKMCreateOFDPacket [15:16:01]OFDProtocolAddRootSTLVToBuf [15:16:01]FM_MakeSignedData [15:16:01]FM_MakeSignedData [15:16:01]SAM_PROTO_SignData [15:16:01]wFMCommunicate request_size=4 [15:16:01]MH_SAM_APDU [15:16:01]CAPDU: 80 0D 01 02 [15:16:01]Write to MH i2c: E2 08 00 96 1F 80 0D 01 02 00 00 00 00 2E [15:16:01]Write i2c OK [15:16:01]MH_I2C_Read... [15:16:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:01]Read from MH i2c: E2 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 03 00 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 03 00 96 1F 00 90 00 29 [15:16:01]RAPDU: 90 00 [15:16:01]wFMCommunicate OK [15:16:01]wFMCommunicate request_size=255 [15:16:01]MH_SAM_APDU [15:16:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 7C 00 00 00 F4 03 04 00 32 96 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 74 00 00 35 04 06 00 65 9F 53 63 [15:16:01]Write to MH i2c: E2 02 01 97 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 7C 00 00 00 F4 03 04 00 32 96 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 74 00 00 35 04 06 00 65 9F 53 63 00 00 4D [15:16:01]Write i2c OK [15:16:01]MH_I2C_Read... [15:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:02]Read from MH i2c: E2 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: E2 03 00 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: E2 03 00 97 1F 00 90 00 2A [15:16:02]RAPDU: 90 00 [15:16:02]wFMCommunicate OK [15:16:02]wFMCommunicate request_size=7 [15:16:02]MH_SAM_APDU [15:16:02]CAPDU: 80 0D 02 02 02 BD DF [15:16:02]Write to MH i2c: E2 0A 00 98 1F 80 0D 02 02 02 00 BD DF 00 00 D1 [15:16:02]Write i2c OK [15:16:02]MH_I2C_Read... [15:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:02]Read from MH i2c: E2 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: E2 03 00 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: E2 03 00 98 1F 00 90 00 2B [15:16:02]RAPDU: 90 00 [15:16:02]wFMCommunicate OK [15:16:02]wFMCommunicate request_size=4 [15:16:02]MH_SAM_APDU [15:16:02]CAPDU: 80 0D 03 02 [15:16:02]Write to MH i2c: E2 08 00 99 1F 80 0D 03 02 00 00 00 00 33 [15:16:02]Write i2c OK [15:16:02]MH_I2C_Read... [15:16:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:02]Read from MH i2c: E2 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: E2 0B 00 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: E2 0B 00 99 1F 00 10 00 A2 95 2E AF F1 A5 90 00 EE [15:16:02]RAPDU: 10 00 A2 95 2E AF F1 A5 90 00 [15:16:02]wFMCommunicate OK [15:16:02]SAM_PROTO_SignData done [15:16:02]FM_MakeSignedData done [15:16:02]CreateOFDProtocolMessage [15:16:02]wFMCommunicate request_size=4 [15:16:02]MH_SAM_APDU [15:16:02]CAPDU: 80 11 00 00 [15:16:02]Write to MH i2c: E2 08 00 9A 1F 80 11 00 00 00 00 00 00 33 [15:16:02]Write i2c OK [15:16:02]MH_I2C_Read... [15:16:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:02]Read from MH i2c: E2 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: E2 17 00 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: E2 17 00 9A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 82 [15:16:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:16:02]wFMCommunicate OK [15:16:02]CreateOFDProtocolMessage done [15:16:02]OFDSenderStorePacket 29850 [15:16:02]StoreOFDPacket docnum=29850 [15:16:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 39 FF 04 01 83 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 7C 00 00 00 F4 03 04 00 32 96 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 74 00 00 35 04 06 00 65 9F 53 63 BD DF 10 00 A2 95 2E AF F1 A5 [15:16:02]CheckFolder [15:16:02]dirname=/storage/ofd_packets [15:16:02]CheckFolder done [15:16:02]ProducePacketName [15:16:02]name=ofd_packets/00029850 [15:16:02]NVStorageSaveData ofd_packets/00029850 [15:16:02]File name is /storage/ofd_packets/00029850 [15:16:02]Write 298 bytes [15:16:02]NVStorageSaveData done [15:16:02]OFDSenderStorePacket done [15:16:02]KKMCreateOFDPacket done [15:16:02]NVStorageSaveData kkm_last_timestamp [15:16:02]File name is /storage/kkm_last_timestamp [15:16:02]Write 4 bytes [15:16:02]NVStorageSaveData done [15:16:02]ExternCall_PrintAddStr [15:16:02]wPrintStart [15:16:02]Write to MH i2c: 01 00 00 9B 1F BA [15:16:02]Write i2c OK [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: 01 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: 01 07 00 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: 01 07 00 9B 1F 00 00 00 00 00 FF 0F CF [15:16:02]RasterBufferAndPrint [15:16:02]line Счет N : (1)348371 [15:16:02]line ИНН: 02508201610067 [15:16:02]line Контрольно-Кассовый Чек [15:16:02]line ПРОДАЖА [15:16:02]line ТРК (МРК, ГНК) : 51 [15:16:02]line Товар: 2710194210 [15:16:02]line ДТ-К-5 [15:16:02]line 9.610 * 72.90 [15:16:02]line = 700.57 [15:16:02]line НДС 12% НСП 1% [15:16:02]line > о реализуемом товаре [15:16:02]line ОКРУГЛЕНИЕ: -0.57 [15:16:02]line ИТОГО: 700.00 [15:16:02]line Внесено: 700.00 [15:16:02]line СДАЧА: 0.00 [15:16:02]line НСП 1% : 6.20 [15:16:02]line НДС 12% : 74.40 [15:16:02]line Наличными: 700.00 [15:16:02]line Безнал.: 0.00 [15:16:02]line Место: АЗС № 108 "Партнер Нефть" [15:16:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:16:02]line СНО: Общий режим [15:16:02]line Чек 124 16.04.2024 15:16 [15:16:02]line Смена: 118 ФФД: 1.0 [15:16:02]line ЗНМ: 0300000027 [15:16:02]line РНМ: 0000138879044617 [15:16:02]line Версия ККМ: 001 [15:16:02]line ФМ: 0000000000963154 [15:16:02]line ФД: 29850 [15:16:02]line ФПД: 111734973251039 [15:16:02]line 1/tax-web-control/client/api/v1/ticket?date=20240416T151602&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29850&fm=111734973251039&tin=02508201610067®Number=0000138879044617&sum=70000 [15:16:02]OFD Sender: Processing packet 29850 [packets to send 8, broken 7] [15:16:02]ProducePacketName [15:16:02]name=ofd_packets/00029850 [15:16:02]OFD Sender: To server: pG, [15:16:02]CommunicateWithHost lk.salyk.kg:30040 [15:16:02]ConnectInit lk.salyk.kg [15:16:02]written 0, free lines is 4095 [15:16:02]Connected sock=10 [15:16:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 39 FF 04 01 83 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 7C 00 00 00 F4 03 04 00 32 96 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 74 00 00 35 04 06 00 65 9F 53 63 BD DF 10 00 A2 95 2E AF F1 A5 [15:16:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A1 2F 47 00 3D 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 74 00 00 F4 03 04 00 D0 40 1E 66 B6 04 01 00 00 AD 47 D1 B9 77 E0 B6 23 [15:16:02]CommunicateWithHost err = 0 [15:16:02]CheckOFDResponse [15:16:02]1017 (14) - 77093643461234 [15:16:02]1041 (16) - 0000000000963154 [15:16:02]1040 (4) - 29850 [15:16:02]1012 (4) - 16.04.2024 09:11 [15:16:02]1206 (1) - 0 [15:16:02]OFD Sender: Remove packet 29850 [15:16:02]ProducePacketName [15:16:02]name=ofd_packets/00029850 [15:16:02]NVStorageDeleteData [15:16:02]Write to MH i2c: 01 00 00 C5 1F E4 [15:16:02]Write i2c OK [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: 01 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: 01 07 00 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: 01 07 00 C5 1F 00 00 00 00 00 C4 0C BB [15:16:02]RasterBufferAndPrint [15:16:02]line [15:16:02]line [15:16:02]line [15:16:02]line [15:16:02]line [15:16:02]written 0, free lines is 3274 [15:16:02]MH_Cut [15:16:02]Write to MH i2c: D1 01 00 CC 1F 01 BD [15:16:02]Write i2c OK [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: D1 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: D1 01 00 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: D1 01 00 CC 1F 00 BC [15:16:02]Write to MH i2c: 01 00 00 CD 1F EC [15:16:02]Write i2c OK [15:16:02]MH_I2C_Read... [15:16:03]OFD Sender: No OFD packet to send [15:16:03]*** Cut start [15:16:03]*** Partial cut [15:16:03]*** CUTSNS_PIN = 1 [15:16:03]*** CUTSNS_PIN = 0 [15:16:03]*** Brake cut motor [15:16:04]Read from MH i2c: 01 [15:16:04]MH_I2C_Read... [15:16:04]*** Stop cut motor [15:16:04]*** Cut end [15:16:04]Read from MH i2c: 01 07 00 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: 01 07 00 CD 1F 00 00 00 00 00 FF 0F 01 [15:16:04]process_action close_receipt done [15:16:04]requested_data is exist [15:16:04]produce_requested_data [15:16:04]requested_item fm.sn is exist - process it [15:16:04]wFMCommunicate request_size=4 [15:16:04]MH_SAM_APDU [15:16:04]CAPDU: 80 11 00 00 [15:16:04]Write to MH i2c: E2 08 00 CE 1F 80 11 00 00 00 00 00 00 67 [15:16:04]Write i2c OK [15:16:04]MH_I2C_Read... [15:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:04]Read from MH i2c: E2 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 17 00 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 17 00 CE 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B6 [15:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:16:04]wFMCommunicate OK [15:16:04]requested_item fd.num is exist - process it [15:16:04]SAM_PROTO_GetFieldsCounters [15:16:04]wFMCommunicate request_size=4 [15:16:04]MH_SAM_APDU [15:16:04]CAPDU: 80 13 00 00 [15:16:04]Write to MH i2c: E2 08 00 CF 1F 80 13 00 00 00 00 00 00 6A [15:16:04]Write i2c OK [15:16:04]MH_I2C_Read... [15:16:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:04]Read from MH i2c: E2 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 62 00 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 62 00 CF 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9A 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [15:16:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9A 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:04]wFMCommunicate OK [15:16:04]SAM_PROTO_GetFieldsCounters done [15:16:04]requested_item shift.num is exist - process it [15:16:04]requested_item shift.opened is exist - process it [15:16:04]req_shift_opened [15:16:04]FM_GetShiftState [15:16:04]SAM_PROTO_GetShiftState [15:16:04]wFMCommunicate request_size=4 [15:16:04]MH_SAM_APDU [15:16:04]CAPDU: 80 13 01 00 [15:16:04]Write to MH i2c: E2 08 00 D0 1F 80 13 01 00 00 00 00 00 6C [15:16:04]Write i2c OK [15:16:04]MH_I2C_Read... [15:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:04]Read from MH i2c: E2 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 0E 00 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 0E 00 D0 1F 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 1A [15:16:04]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [15:16:04]wFMCommunicate OK [15:16:04]SAM_PROTO_GetShiftState done [15:16:04]FM_GetShiftState done [15:16:04]req_shift_opened done [15:16:04]requested_item shift.open_date is exist - process it [15:16:04]req_shift_open_date [15:16:04]req_shift_open_date done [15:16:04]produce_requested_data done [15:16:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29850,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [15:16:04]process_action_free close_receipt [15:16:04]json_value_free [15:16:04]json_value_free done [15:16:04]process_json_proto returns [15:16:04]Send response to host [15:16:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29850,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [15:16:04]free response buf [15:16:04]execute_script done [15:16:04]execute_script returns [15:16:04]free content buf [15:16:04]Sock 9.Close socket [15:16:04]Sock 9.Thread stoped [15:16:08]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:25]accept exits with 7 [15:19:25]New connection [15:19:25]New thread 3067276644 created [15:19:25]Thread 3067133284 joined [15:19:25]Waiting for new connection... [15:19:25] Sock 7.Parse request [15:19:25]Sock 7.Check first char [15:19:25]Sock 7.First char is OK [15:19:25]request: POST /json_proto HTTP/1.0 [15:19:25]Method: POST [15:19:25]URL: /json_proto [15:19:25]Method is POST - this is cgi request [15:19:25]url: /json_proto [15:19:25]query_string will be loaded in cgi processing [15:19:25]execute_cgi json_proto POST (null) [15:19:25]execute_cgi path=json_proto method=POST [15:19:25]POST find Content-Length [15:19:25]Host: 172.17.33.3:8080 [15:19:25]Content-Length: 674 [15:19:25]Content-Type: application/json [15:19:25] [15:19:25]POST finish read [15:19:25]Found Content-Length = 674 [15:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:25]execute_script... [15: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 : (1)348372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:25]POST & json_proto [15:19:25]process_json_proto [15:19:25]json parsed OK: [15:19:25]protocol is kg_v1.0 [15:19:25]action value=close_receipt [15:19:25]process_action close_receipt [15:19:25]cmd_close_receipt [15:19:25]MH_GetDate [15:19:25]Write to MH i2c: F0 00 00 D1 1F DF [15:19:25]Write i2c OK [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: F0 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: F0 09 00 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: F0 09 00 D1 1F 00 00 97 1E 66 23 5B 8F 65 75 [15:19:25]GetLastDocTimeStamp 1713280562 [15:19:25]current date 1713280768 [15:19:25]FM_GetShiftState [15:19:25]SAM_PROTO_GetShiftState [15:19:25]wFMCommunicate request_size=4 [15:19:25]MH_SAM_APDU [15:19:25]CAPDU: 80 13 01 00 [15:19:25]Write to MH i2c: E2 08 00 D2 1F 80 13 01 00 00 00 00 00 6E [15:19:25]Write i2c OK [15:19:25]MH_I2C_Read... [15:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:25]Read from MH i2c: E2 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 0E 00 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 0E 00 D2 1F 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 1C [15:19:25]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [15:19:25]wFMCommunicate OK [15:19:25]SAM_PROTO_GetShiftState done [15:19:25]FM_GetShiftState done [15:19:25]opened in 1713226843 [15:19:25]opened+sec_in_day 1713313243 [15:19:25]quantity*price = 40022 [15:19:25]sum+1 = 40023 [15:19:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 125 16.04.2024 15:19 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29851 ФПД: 233172837524403 1/tax-web-control/client/api/v1/ticket?date=20240416T151928&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29851&fm=233172837524403&tin=02508201610067®Number=0000138879044617&sum=40000 [15:19:26]StoreToDocumentArchive [15:19:26]shift 118 fd 29851 [15:19:26]save to /storage/0118/doc_00029851 [15:19:26]save last doc name /storage/0118/doc_00029851 to /storage/kkm_last_doc_name [15:19:26]save OK [15:19:26]Clear old archive folders... [15:19:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:19:26]tlvbuf is B6F10970 [15:19:26]SAM_PROTO_ClearQueue [15:19:26]wFMCommunicate request_size=4 [15:19:26]MH_SAM_APDU [15:19:26]CAPDU: 80 09 00 00 [15:19:26]Write to MH i2c: E2 08 00 DF 1F 80 09 00 00 00 00 00 00 70 [15:19:27]Write i2c OK [15:19:27]MH_I2C_Read... [15:19:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:27]Read from MH i2c: E2 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: E2 03 00 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: E2 03 00 DF 1F 00 90 00 72 [15:19:27]RAPDU: 90 00 [15:19:27]wFMCommunicate OK [15:19:27]SAM_PROTO_ClearQueue done [15:19:27]KKMCreateOFDPacket [15:19:27]OFDProtocolAddRootSTLVToBuf [15:19:27]FM_MakeSignedData [15:19:27]FM_MakeSignedData [15:19:27]SAM_PROTO_SignData [15:19:27]wFMCommunicate request_size=4 [15:19:27]MH_SAM_APDU [15:19:27]CAPDU: 80 0D 01 02 [15:19:27]Write to MH i2c: E2 08 00 E0 1F 80 0D 01 02 00 00 00 00 78 [15:19:27]Write i2c OK [15:19:27]MH_I2C_Read... [15:19:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:27]Read from MH i2c: E2 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: E2 03 00 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: E2 03 00 E0 1F 00 90 00 73 [15:19:27]RAPDU: 90 00 [15:19:27]wFMCommunicate OK [15:19:27]wFMCommunicate request_size=255 [15:19:27]MH_SAM_APDU [15:19:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 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 7D 00 00 00 F4 03 04 00 00 97 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 74 00 00 35 04 06 00 D4 11 C8 26 [15:19:27]Write to MH i2c: E2 02 01 E1 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 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 7D 00 00 00 F4 03 04 00 00 97 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 74 00 00 35 04 06 00 D4 11 C8 26 00 00 B6 [15:19:27]Write i2c OK [15:19:27]MH_I2C_Read... [15:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:27]Read from MH i2c: E2 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: E2 03 00 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: E2 03 00 E1 1F 00 90 00 74 [15:19:27]RAPDU: 90 00 [15:19:27]wFMCommunicate OK [15:19:27]wFMCommunicate request_size=7 [15:19:27]MH_SAM_APDU [15:19:27]CAPDU: 80 0D 02 02 02 E3 B3 [15:19:27]Write to MH i2c: E2 0A 00 E2 1F 80 0D 02 02 02 00 E3 B3 00 00 15 [15:19:27]Write i2c OK [15:19:27]MH_I2C_Read... [15:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:27]Read from MH i2c: E2 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: E2 03 00 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: E2 03 00 E2 1F 00 90 00 75 [15:19:27]RAPDU: 90 00 [15:19:27]wFMCommunicate OK [15:19:27]wFMCommunicate request_size=4 [15:19:27]MH_SAM_APDU [15:19:27]CAPDU: 80 0D 03 02 [15:19:27]Write to MH i2c: E2 08 00 E3 1F 80 0D 03 02 00 00 00 00 7D [15:19:27]Write i2c OK [15:19:27]MH_I2C_Read... [15:19:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:27]Read from MH i2c: E2 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: E2 0B 00 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: E2 0B 00 E3 1F 00 09 F6 14 DF 6E 41 1D 2E 90 00 6A [15:19:27]RAPDU: 09 F6 14 DF 6E 41 1D 2E 90 00 [15:19:27]wFMCommunicate OK [15:19:27]SAM_PROTO_SignData done [15:19:27]FM_MakeSignedData done [15:19:27]CreateOFDProtocolMessage [15:19:27]wFMCommunicate request_size=4 [15:19:27]MH_SAM_APDU [15:19:27]CAPDU: 80 11 00 00 [15:19:27]Write to MH i2c: E2 08 00 E4 1F 80 11 00 00 00 00 00 00 7D [15:19:27]Write i2c OK [15:19:27]MH_I2C_Read... [15:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:27]Read from MH i2c: E2 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: E2 17 00 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: E2 17 00 E4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CC [15:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:19:27]wFMCommunicate OK [15:19:27]CreateOFDProtocolMessage done [15:19:27]OFDSenderStorePacket 29851 [15:19:27]StoreOFDPacket docnum=29851 [15:19:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 26 19 04 01 B7 F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 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 7D 00 00 00 F4 03 04 00 00 97 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 74 00 00 35 04 06 00 D4 11 C8 26 E3 B3 09 F6 14 DF 6E 41 1D 2E [15:19:27]CheckFolder [15:19:27]dirname=/storage/ofd_packets [15:19:27]CheckFolder done [15:19:27]ProducePacketName [15:19:27]name=ofd_packets/00029851 [15:19:27]NVStorageSaveData ofd_packets/00029851 [15:19:27]File name is /storage/ofd_packets/00029851 [15:19:27]Write 298 bytes [15:19:27]NVStorageSaveData done [15:19:27]OFDSenderStorePacket done [15:19:27]KKMCreateOFDPacket done [15:19:27]NVStorageSaveData kkm_last_timestamp [15:19:27]File name is /storage/kkm_last_timestamp [15:19:27]Write 4 bytes [15:19:27]NVStorageSaveData done [15:19:27]ExternCall_PrintAddStr [15:19:27]wPrintStart [15:19:27]Write to MH i2c: 01 00 00 E5 1F 04 [15:19:27]Write i2c OK [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: 01 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: 01 07 00 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: 01 07 00 E5 1F 00 00 00 00 00 FF 0F 19 [15:19:27]RasterBufferAndPrint [15:19:27]line Счет N : (1)348372 [15:19:27]line ИНН: 02508201610067 [15:19:27]line Контрольно-Кассовый Чек [15:19:27]line ПРОДАЖА [15:19:27]line ТРК (МРК, ГНК) : 51 [15:19:27]line Товар: 2710194210 [15:19:27]line ДТ-К-5 [15:19:27]line 5.490 * 72.90 [15:19:27]line = 400.22 [15:19:27]line НДС 12% НСП 1% [15:19:27]line > о реализуемом товаре [15:19:27]line ОКРУГЛЕНИЕ: -0.22 [15:19:27]line ИТОГО: 400.00 [15:19:27]line Внесено: 400.00 [15:19:27]line СДАЧА: 0.00 [15:19:27]line НСП 1% : 3.54 [15:19:27]line НДС 12% : 42.50 [15:19:27]line Наличными: 400.00 [15:19:27]line Безнал.: 0.00 [15:19:27]line Место: АЗС № 108 "Партнер Нефть" [15:19:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:19:27]line СНО: Общий режим [15:19:27]line Чек 125 16.04.2024 15:19 [15:19:27]line Смена: 118 ФФД: 1.0 [15:19:27]line ЗНМ: 0300000027 [15:19:27]line РНМ: 0000138879044617 [15:19:27]line Версия ККМ: 001 [15:19:27]line ФМ: 0000000000963154 [15:19:27]line ФД: 29851 [15:19:27]line ФПД: 233172837524403 [15:19:27]line 1/tax-web-control/client/api/v1/ticket?date=20240416T151928&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29851&fm=233172837524403&tin=02508201610067®Number=0000138879044617&sum=40000 [15:19:27]OFD Sender: Processing packet 29851 [packets to send 8, broken 7] [15:19:27]ProducePacketName [15:19:27]name=ofd_packets/00029851 [15:19:27]OFD Sender: To server: pG, [15:19:27]CommunicateWithHost lk.salyk.kg:30040 [15:19:27]ConnectInit lk.salyk.kg [15:19:27]written 0, free lines is 4095 [15:19:27]Connected sock=10 [15:19:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 26 19 04 01 B7 F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 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 7D 00 00 00 F4 03 04 00 00 97 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 74 00 00 35 04 06 00 D4 11 C8 26 E3 B3 09 F6 14 DF 6E 41 1D 2E [15:19:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 16 91 47 00 91 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 74 00 00 F4 03 04 00 9D 41 1E 66 B6 04 01 00 00 98 73 35 E4 ED 02 6B 05 [15:19:28]CommunicateWithHost err = 0 [15:19:28]CheckOFDResponse [15:19:28]1017 (14) - 77093643461234 [15:19:28]1041 (16) - 0000000000963154 [15:19:28]1040 (4) - 29851 [15:19:28]1012 (4) - 16.04.2024 09:15 [15:19:28]1206 (1) - 0 [15:19:28]OFD Sender: Remove packet 29851 [15:19:28]ProducePacketName [15:19:28]name=ofd_packets/00029851 [15:19:28]NVStorageDeleteData [15:19:28]Write to MH i2c: 01 00 00 0F 20 2F [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: 01 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: 01 07 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: 01 07 00 0F 20 00 00 00 00 00 C8 0C 0A [15:19:28]RasterBufferAndPrint [15:19:28]line [15:19:28]line [15:19:28]line [15:19:28]line [15:19:28]line [15:19:28]written 0, free lines is 3278 [15:19:28]MH_Cut [15:19:28]Write to MH i2c: D1 01 00 16 20 01 08 [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: D1 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: D1 01 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: D1 01 00 16 20 00 07 [15:19:28]Write to MH i2c: 01 00 00 17 20 37 [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]OFD Sender: No OFD packet to send [15:19:29]*** Cut start [15:19:29]*** Partial cut [15:19:29]*** CUTSNS_PIN = 1 [15:19:29]*** CUTSNS_PIN = 0 [15:19:29]*** Brake cut motor [15:19:29]Read from MH i2c: 01 [15:19:29]MH_I2C_Read... [15:19:29]*** Stop cut motor [15:19:29]*** Cut end [15:19:29]Read from MH i2c: 01 07 00 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: 01 07 00 17 20 00 00 00 00 00 FF 0F 4C [15:19:29]process_action close_receipt done [15:19:29]requested_data is exist [15:19:29]produce_requested_data [15:19:29]requested_item fm.sn is exist - process it [15:19:29]wFMCommunicate request_size=4 [15:19:29]MH_SAM_APDU [15:19:29]CAPDU: 80 11 00 00 [15:19:29]Write to MH i2c: E2 08 00 18 20 80 11 00 00 00 00 00 00 B2 [15:19:29]Write i2c OK [15:19:29]MH_I2C_Read... [15:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:29]Read from MH i2c: E2 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: E2 17 00 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: E2 17 00 18 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 01 [15:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:19:29]wFMCommunicate OK [15:19:29]requested_item fd.num is exist - process it [15:19:29]SAM_PROTO_GetFieldsCounters [15:19:29]wFMCommunicate request_size=4 [15:19:29]MH_SAM_APDU [15:19:29]CAPDU: 80 13 00 00 [15:19:29]Write to MH i2c: E2 08 00 19 20 80 13 00 00 00 00 00 00 B5 [15:19:29]Write i2c OK [15:19:29]MH_I2C_Read... [15:19:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:29]Read from MH i2c: E2 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: E2 62 00 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: E2 62 00 19 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9B 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [15: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 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9B 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:29]wFMCommunicate OK [15:19:29]SAM_PROTO_GetFieldsCounters done [15:19:29]requested_item shift.num is exist - process it [15:19:29]requested_item shift.opened is exist - process it [15:19:29]req_shift_opened [15:19:29]FM_GetShiftState [15:19:29]SAM_PROTO_GetShiftState [15:19:29]wFMCommunicate request_size=4 [15:19:29]MH_SAM_APDU [15:19:29]CAPDU: 80 13 01 00 [15:19:29]Write to MH i2c: E2 08 00 1A 20 80 13 01 00 00 00 00 00 B7 [15:19:29]Write i2c OK [15:19:29]MH_I2C_Read... [15:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:29]Read from MH i2c: E2 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: E2 0E 00 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: E2 0E 00 1A 20 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 65 [15:19:29]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [15:19:29]wFMCommunicate OK [15:19:29]SAM_PROTO_GetShiftState done [15:19:29]FM_GetShiftState done [15:19:29]req_shift_opened done [15:19:29]requested_item shift.open_date is exist - process it [15:19:29]req_shift_open_date [15:19:29]req_shift_open_date done [15:19:29]produce_requested_data done [15:19:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29851,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [15:19:29]process_action_free close_receipt [15:19:29]json_value_free [15:19:29]json_value_free done [15:19:29]process_json_proto returns [15:19:29]Send response to host [15:19:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29851,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [15:19:29]free response buf [15:19:29]execute_script done [15:19:29]execute_script returns [15:19:29]free content buf [15:19:29]Sock 7.Close socket [15:19:29]Sock 7.Thread stoped [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:38]OFD Sender: No OFD packet to send [15:20:43]OFD Sender: No OFD packet to send [15:20:48]OFD Sender: No OFD packet to send [15:20:53]OFD Sender: No OFD packet to send [15:20:58]OFD Sender: No OFD packet to send [15:21:03]OFD Sender: No OFD packet to send [15:21:08]OFD Sender: No OFD packet to send [15:21:13]OFD Sender: No OFD packet to send [15:21:18]OFD Sender: No OFD packet to send [15:21:23]OFD Sender: No OFD packet to send [15:21:28]OFD Sender: No OFD packet to send [15:21:33]accept exits with 9 [15:21:33]New connection [15:21:33]New thread 3067133284 created [15:21:33]Thread 3067276644 joined [15:21:33]Waiting for new connection... [15:21:33] Sock 9.Parse request [15:21:33]Sock 9.Check first char [15:21:33]Sock 9.First char is OK [15:21:33]request: POST /json_proto HTTP/1.0 [15:21:33]Method: POST [15:21:33]URL: /json_proto [15:21:33]Method is POST - this is cgi request [15:21:33]url: /json_proto [15:21:33]query_string will be loaded in cgi processing [15:21:33]execute_cgi json_proto POST (null) [15:21:33]execute_cgi path=json_proto method=POST [15:21:33]POST find Content-Length [15:21:33]Host: 172.17.33.3:8080 [15:21:33]Content-Length: 682 [15:21:33]Content-Type: application/json [15:21:33] [15:21:33]POST finish read [15:21:33]Found Content-Length = 682 [15:21:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 20.960, "sum" : 1358.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1358.00, "payments": [ { "type": 0, "sum" : 1358.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:33]execute_script... [15:21:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)348373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 20.960, "sum" : 1358.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1358.00, "payments": [ { "type": 0, "sum" : 1358.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:33]POST & json_proto [15:21:33]process_json_proto [15:21:33]json parsed OK: [15:21:33]protocol is kg_v1.0 [15:21:33]action value=close_receipt [15:21:33]process_action close_receipt [15:21:33]cmd_close_receipt [15:21:33]MH_GetDate [15:21:33]Write to MH i2c: F0 00 00 1B 20 2A [15:21:33]Write i2c OK [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: F0 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: F0 09 00 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: F0 09 00 1B 20 00 7F 97 1E 66 23 5B 8F 65 3F [15:21:33]GetLastDocTimeStamp 1713280768 [15:21:33]current date 1713280895 [15:21:33]FM_GetShiftState [15:21:33]SAM_PROTO_GetShiftState [15:21:33]wFMCommunicate request_size=4 [15:21:33]MH_SAM_APDU [15:21:33]CAPDU: 80 13 01 00 [15:21:33]Write to MH i2c: E2 08 00 1C 20 80 13 01 00 00 00 00 00 B9 [15:21:33]Write i2c OK [15:21:33]MH_I2C_Read... [15:21:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:33]Read from MH i2c: E2 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 0E 00 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: E2 0E 00 1C 20 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 67 [15:21:33]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [15:21:33]wFMCommunicate OK [15:21:33]SAM_PROTO_GetShiftState done [15:21:33]FM_GetShiftState done [15:21:33]opened in 1713226843 [15:21:33]opened+sec_in_day 1713313243 [15:21:33]quantity*price = 135820 [15:21:33]sum+1 = 135822 [15:21:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 1358.00 Внесено: 3000.00 СДАЧА: 1642.00 НСП 1% : 12.02 НДС 12% : 144.23 Наличными: 1358.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 126 16.04.2024 15:21 Смена: 118 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29852 ФПД: 26536127030337 1/tax-web-control/client/api/v1/ticket?date=20240416T152135&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29852&fm=26536127030337&tin=02508201610067®Number=0000138879044617&sum=135800 [15:21:34]StoreToDocumentArchive [15:21:34]shift 118 fd 29852 [15:21:34]save to /storage/0118/doc_00029852 [15:21:34]save last doc name /storage/0118/doc_00029852 to /storage/kkm_last_doc_name [15:21:34]save OK [15:21:34]Clear old archive folders... [15:21:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:34]tlvbuf is 00207E80 [15:21:34]SAM_PROTO_ClearQueue [15:21:34]wFMCommunicate request_size=4 [15:21:34]MH_SAM_APDU [15:21:34]CAPDU: 80 09 00 00 [15:21:34]Write to MH i2c: E2 08 00 29 20 80 09 00 00 00 00 00 00 BB [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:34]Read from MH i2c: E2 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 03 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 03 00 29 20 00 90 00 BD [15:21:34]RAPDU: 90 00 [15:21:34]wFMCommunicate OK [15:21:34]SAM_PROTO_ClearQueue done [15:21:34]KKMCreateOFDPacket [15:21:34]OFDProtocolAddRootSTLVToBuf [15:21:34]FM_MakeSignedData [15:21:34]FM_MakeSignedData [15:21:34]SAM_PROTO_SignData [15:21:34]wFMCommunicate request_size=4 [15:21:34]MH_SAM_APDU [15:21:34]CAPDU: 80 0D 01 02 [15:21:34]Write to MH i2c: E2 08 00 2A 20 80 0D 01 02 00 00 00 00 C3 [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:34]Read from MH i2c: E2 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 03 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 03 00 2A 20 00 90 00 BE [15:21:34]RAPDU: 90 00 [15:21:34]wFMCommunicate OK [15:21:34]wFMCommunicate request_size=255 [15:21:34]MH_SAM_APDU [15:21:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 51 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 8D 12 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 12 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 38 00 00 00 00 07 04 06 00 78 12 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 7F 97 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 74 00 00 35 04 06 00 18 [15:21:34]Write to MH i2c: E2 02 01 2B 20 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 E0 51 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 8D 12 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 12 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 38 00 00 00 00 07 04 06 00 78 12 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 7F 97 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 74 00 00 35 04 06 00 18 00 00 38 [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:34]Read from MH i2c: E2 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 03 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 03 00 2B 20 00 90 00 BF [15:21:34]RAPDU: 90 00 [15:21:34]wFMCommunicate OK [15:21:34]wFMCommunicate request_size=10 [15:21:34]MH_SAM_APDU [15:21:34]CAPDU: 80 0D 02 02 05 22 6C 6C E4 41 [15:21:34]Write to MH i2c: E2 0D 00 2C 20 80 0D 02 02 05 00 22 6C 6C E4 41 00 00 EF [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:34]Read from MH i2c: E2 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 03 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 03 00 2C 20 00 90 00 C0 [15:21:34]RAPDU: 90 00 [15:21:34]wFMCommunicate OK [15:21:34]wFMCommunicate request_size=4 [15:21:34]MH_SAM_APDU [15:21:34]CAPDU: 80 0D 03 02 [15:21:34]Write to MH i2c: E2 08 00 2D 20 80 0D 03 02 00 00 00 00 C8 [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:34]Read from MH i2c: E2 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 0B 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 0B 00 2D 20 00 2F 0E 84 18 9E D7 F4 A7 90 00 B2 [15:21:34]RAPDU: 2F 0E 84 18 9E D7 F4 A7 90 00 [15:21:34]wFMCommunicate OK [15:21:34]SAM_PROTO_SignData done [15:21:34]FM_MakeSignedData done [15:21:34]CreateOFDProtocolMessage [15:21:34]wFMCommunicate request_size=4 [15:21:34]MH_SAM_APDU [15:21:34]CAPDU: 80 11 00 00 [15:21:34]Write to MH i2c: E2 08 00 2E 20 80 11 00 00 00 00 00 00 C8 [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:34]Read from MH i2c: E2 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 17 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 17 00 2E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 17 [15:21:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:21:34]wFMCommunicate OK [15:21:34]CreateOFDProtocolMessage done [15:21:34]OFDSenderStorePacket 29852 [15:21:34]StoreOFDPacket docnum=29852 [15:21:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EB 9C 07 01 76 B7 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 E0 51 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 8D 12 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 12 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 38 00 00 00 00 07 04 06 00 78 12 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 7F 97 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 74 00 00 35 04 06 00 18 22 6C 6C E4 41 2F 0E 84 18 9E D7 F4 A7 [15:21:34]CheckFolder [15:21:34]dirname=/storage/ofd_packets [15:21:34]CheckFolder done [15:21:34]ProducePacketName [15:21:34]name=ofd_packets/00029852 [15:21:34]NVStorageSaveData ofd_packets/00029852 [15:21:34]File name is /storage/ofd_packets/00029852 [15:21:34]Write 301 bytes [15:21:34]NVStorageSaveData done [15:21:34]OFDSenderStorePacket done [15:21:34]KKMCreateOFDPacket done [15:21:34]NVStorageSaveData kkm_last_timestamp [15:21:34]File name is /storage/kkm_last_timestamp [15:21:34]Write 4 bytes [15:21:34]NVStorageSaveData done [15:21:34]ExternCall_PrintAddStr [15:21:34]wPrintStart [15:21:34]Write to MH i2c: 01 00 00 2F 20 4F [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: 01 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: 01 07 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: 01 07 00 2F 20 00 00 00 00 00 FF 0F 64 [15:21:34]RasterBufferAndPrint [15:21:34]line Счет N : (1)348373 [15:21:34]line ИНН: 02508201610067 [15:21:34]line Контрольно-Кассовый Чек [15:21:34]line ПРОДАЖА [15:21:34]line ТРК (МРК, ГНК) : 13 [15:21:34]line Товар: 2710124130 [15:21:34]line Аи-92-К-5 [15:21:34]line 20.960 * 64.80 [15:21:34]line = 1358.21 [15:21:34]line НДС 12% НСП 1% [15:21:34]line > о реализуемом товаре [15:21:34]line ОКРУГЛЕНИЕ: -0.21 [15:21:34]line ИТОГО: 1358.00 [15:21:34]line Внесено: 3000.00 [15:21:34]line СДАЧА: 1642.00 [15:21:34]line НСП 1% : 12.02 [15:21:34]line НДС 12% : 144.23 [15:21:34]line Наличными: 1358.00 [15:21:34]line Безнал.: 0.00 [15:21:34]line Место: АЗС № 108 "Партнер Нефть" [15:21:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:21:34]line СНО: Общий режим [15:21:34]line Чек 126 16.04.2024 15:21 [15:21:34]line Смена: 118 ФФД: 1.0 [15:21:34]line ЗНМ: 0300000027 [15:21:34]line РНМ: 0000138879044617 [15:21:34]line Версия ККМ: 001 [15:21:34]line ФМ: 0000000000963154 [15:21:34]line ФД: 29852 [15:21:34]line ФПД: 26536127030337 [15:21:34]line 1/tax-web-control/client/api/v1/ticket?date=20240416T152135&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29852&fm=26536127030337&tin=02508201610067®Number=0000138879044617&sum=135800 [15:21:35]OFD Sender: Processing packet 29852 [packets to send 8, broken 7] [15:21:35]ProducePacketName [15:21:35]name=ofd_packets/00029852 [15:21:35]OFD Sender: To server: pG, [15:21:35]CommunicateWithHost lk.salyk.kg:30040 [15:21:35]ConnectInit lk.salyk.kg [15:21:35]written 0, free lines is 4095 [15:21:35]Connected sock=10 [15:21:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EB 9C 07 01 76 B7 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 E0 51 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 8D 12 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 12 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 38 00 00 00 00 07 04 06 00 78 12 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 7F 97 1E 66 0E 04 04 00 76 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 74 00 00 35 04 06 00 18 22 6C 6C E4 41 2F 0E 84 18 9E D7 F4 A7 [15:21:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 12 A9 47 00 26 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 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 36 33 31 35 34 10 04 04 00 9C 74 00 00 F4 03 04 00 1D 42 1E 66 B6 04 01 00 00 A5 88 83 86 96 3F F9 77 [15:21:35]CommunicateWithHost err = 0 [15:21:35]CheckOFDResponse [15:21:35]1017 (14) - 77093643461234 [15:21:35]1041 (16) - 0000000000963154 [15:21:35]1040 (4) - 29852 [15:21:35]1012 (4) - 16.04.2024 09:17 [15:21:35]1206 (1) - 0 [15:21:35]OFD Sender: Remove packet 29852 [15:21:35]ProducePacketName [15:21:35]name=ofd_packets/00029852 [15:21:35]NVStorageDeleteData [15:21:35]Write to MH i2c: 01 00 00 59 20 79 [15:21:35]Write i2c OK [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: 01 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: 01 07 00 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: 01 07 00 59 20 00 00 00 00 00 E0 0C 6C [15:21:35]RasterBufferAndPrint [15:21:35]line [15:21:35]line [15:21:35]line [15:21:35]line [15:21:35]line [15:21:35]written 0, free lines is 3302 [15:21:35]MH_Cut [15:21:35]Write to MH i2c: D1 01 00 60 20 01 52 [15:21:35]Write i2c OK [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: D1 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: D1 01 00 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: D1 01 00 60 20 00 51 [15:21:35]Write to MH i2c: 01 00 00 61 20 81 [15:21:35]Write i2c OK [15:21:35]MH_I2C_Read... [15:21:36]OFD Sender: No OFD packet to send [15:21:36]*** Cut start [15:21:36]*** Partial cut [15:21:36]*** CUTSNS_PIN = 1 [15:21:36]*** CUTSNS_PIN = 0 [15:21:36]*** Brake cut motor [15:21:37]Read from MH i2c: 01 [15:21:37]MH_I2C_Read... [15:21:37]*** Stop cut motor [15:21:37]*** Cut end [15:21:37]Read from MH i2c: 01 07 00 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: 01 07 00 61 20 00 00 00 00 00 FF 0F 96 [15:21:37]process_action close_receipt done [15:21:37]requested_data is exist [15:21:37]produce_requested_data [15:21:37]requested_item fm.sn is exist - process it [15:21:37]wFMCommunicate request_size=4 [15:21:37]MH_SAM_APDU [15:21:37]CAPDU: 80 11 00 00 [15:21:37]Write to MH i2c: E2 08 00 62 20 80 11 00 00 00 00 00 00 FC [15:21:37]Write i2c OK [15:21:37]MH_I2C_Read... [15:21:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:37]Read from MH i2c: E2 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 17 00 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 17 00 62 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4B [15:21:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:21:37]wFMCommunicate OK [15:21:37]requested_item fd.num is exist - process it [15:21:37]SAM_PROTO_GetFieldsCounters [15:21:37]wFMCommunicate request_size=4 [15:21:37]MH_SAM_APDU [15:21:37]CAPDU: 80 13 00 00 [15:21:37]Write to MH i2c: E2 08 00 63 20 80 13 00 00 00 00 00 00 FF [15:21:37]Write i2c OK [15:21:37]MH_I2C_Read... [15:21:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:37]Read from MH i2c: E2 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 62 00 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 62 00 63 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [15:21:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:37]wFMCommunicate OK [15:21:37]SAM_PROTO_GetFieldsCounters done [15:21:37]requested_item shift.num is exist - process it [15:21:37]requested_item shift.opened is exist - process it [15:21:37]req_shift_opened [15:21:37]FM_GetShiftState [15:21:37]SAM_PROTO_GetShiftState [15:21:37]wFMCommunicate request_size=4 [15:21:37]MH_SAM_APDU [15:21:37]CAPDU: 80 13 01 00 [15:21:37]Write to MH i2c: E2 08 00 64 20 80 13 01 00 00 00 00 00 01 [15:21:37]Write i2c OK [15:21:37]MH_I2C_Read... [15:21:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:37]Read from MH i2c: E2 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 0E 00 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 0E 00 64 20 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 AF [15:21:37]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [15:21:37]wFMCommunicate OK [15:21:37]SAM_PROTO_GetShiftState done [15:21:37]FM_GetShiftState done [15:21:37]req_shift_opened done [15:21:37]requested_item shift.open_date is exist - process it [15:21:37]req_shift_open_date [15:21:37]req_shift_open_date done [15:21:37]produce_requested_data done [15:21:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29852,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [15:21:37]process_action_free close_receipt [15:21:37]json_value_free [15:21:37]json_value_free done [15:21:37]process_json_proto returns [15:21:37]Send response to host [15:21:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29852,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [15:21:37]free response buf [15:21:37]execute_script done [15:21:37]execute_script returns [15:21:37]free content buf [15:21:37]Sock 9.Close socket [15:21:37]Sock 9.Thread stoped [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:29]accept exits with 7 [15:22:29]New connection [15:22:29]New thread 3067276644 created [15:22:29]Thread 3067133284 joined [15:22:29]Waiting for new connection... [15:22:29] Sock 7.Parse request [15:22:29]Sock 7.Check first char [15:22:29]Sock 7.First char is OK [15:22:29]request: POST /json_proto HTTP/1.0 [15:22:29]Method: POST [15:22:29]URL: /json_proto [15:22:29]Method is POST - this is cgi request [15:22:29]url: /json_proto [15:22:29]query_string will be loaded in cgi processing [15:22:29]execute_cgi json_proto POST (null) [15:22:29]execute_cgi path=json_proto method=POST [15:22:29]POST find Content-Length [15:22:29]Host: 172.17.33.3:8080 [15:22:29]Content-Length: 215 [15:22:29]Content-Type: application/json [15:22:29] [15:22:29]POST finish read [15:22:29]Found Content-Length = 215 [15:22:29]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" ] } } [15:22:29]execute_script... [15:22:29]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" ] } } [15:22:29]POST & json_proto [15:22:29]process_json_proto [15:22:29]json parsed OK: [15:22:29]protocol is kg_v1.0 [15:22:29]action value=get_value [15:22:29]process_action get_value [15:22:29]cmd_get_value [15:22:29]process_action get_value done [15:22:29]requested_data is exist [15:22:29]produce_requested_data [15:22:29]requested_item kkm.sn is exist - process it [15:22:29]requested_item kkm.ver is exist - process it [15:22:29]requested_item fm.sn is exist - process it [15:22:29]wFMCommunicate request_size=4 [15:22:29]MH_SAM_APDU [15:22:29]CAPDU: 80 11 00 00 [15:22:29]Write to MH i2c: E2 08 00 65 20 80 11 00 00 00 00 00 00 FF [15:22:29]Write i2c OK [15:22:29]MH_I2C_Read... [15:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:29]Read from MH i2c: E2 [15:22:29]MH_I2C_Read... [15:22:29]Read from MH i2c: E2 17 00 [15:22:29]MH_I2C_Read... [15:22:29]Read from MH i2c: E2 17 00 65 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4E [15:22:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:22:29]wFMCommunicate OK [15:22:29]requested_item fd.num is exist - process it [15:22:29]SAM_PROTO_GetFieldsCounters [15:22:29]wFMCommunicate request_size=4 [15:22:29]MH_SAM_APDU [15:22:29]CAPDU: 80 13 00 00 [15:22:29]Write to MH i2c: E2 08 00 66 20 80 13 00 00 00 00 00 00 02 [15:22:29]Write i2c OK [15:22:29]MH_I2C_Read... [15:22:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:30]Read from MH i2c: E2 [15:22:30]MH_I2C_Read... [15:22:30]Read from MH i2c: E2 62 00 [15:22:30]MH_I2C_Read... [15:22:30]Read from MH i2c: E2 62 00 66 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [15:22:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:22:30]wFMCommunicate OK [15:22:30]SAM_PROTO_GetFieldsCounters done [15:22:30]requested_item shift.num is exist - process it [15:22:30]requested_item shift.opened is exist - process it [15:22:30]req_shift_opened [15:22:30]FM_GetShiftState [15:22:30]SAM_PROTO_GetShiftState [15:22:30]wFMCommunicate request_size=4 [15:22:30]MH_SAM_APDU [15:22:30]CAPDU: 80 13 01 00 [15:22:30]Write to MH i2c: E2 08 00 67 20 80 13 01 00 00 00 00 00 04 [15:22:30]Write i2c OK [15:22:30]MH_I2C_Read... [15:22:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:30]Read from MH i2c: E2 [15:22:30]MH_I2C_Read... [15:22:30]Read from MH i2c: E2 0E 00 [15:22:30]MH_I2C_Read... [15:22:30]Read from MH i2c: E2 0E 00 67 20 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 B2 [15:22:30]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [15:22:30]wFMCommunicate OK [15:22:30]SAM_PROTO_GetShiftState done [15:22:30]FM_GetShiftState done [15:22:30]req_shift_opened done [15:22:30]requested_item shift.open_date is exist - process it [15:22:30]req_shift_open_date [15:22:30]req_shift_open_date done [15:22:30]produce_requested_data done [15:22:30]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29852,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [15:22:30]process_action_free get_value [15:22:30]json_value_free [15:22:30]json_value_free done [15:22:30]process_json_proto returns [15:22:30]Send response to host [15:22:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29852,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [15:22:30]free response buf [15:22:30]execute_script done [15:22:30]execute_script returns [15:22:30]free content buf [15:22:30]Sock 7.Close socket [15:22:30]Sock 7.Thread stoped [15:22:30]accept exits with 9 [15:22:30]New connection [15:22:30]New thread 3067133284 created [15:22:30]Thread 3067276644 joined [15:22:30]Waiting for new connection... [15:22:30] Sock 9.Parse request [15:22:30]Sock 9.Check first char [15:22:30]Sock 9.First char is OK [15:22:30]request: POST /json_proto HTTP/1.0 [15:22:30]Method: POST [15:22:30]URL: /json_proto [15:22:30]Method is POST - this is cgi request [15:22:30]url: /json_proto [15:22:30]query_string will be loaded in cgi processing [15:22:30]execute_cgi json_proto POST (null) [15:22:30]execute_cgi path=json_proto method=POST [15:22:30]POST find Content-Length [15:22:30]Host: 172.17.33.3:8080 [15:22:30]Content-Length: 331 [15:22:30]Content-Type: application/json [15:22:30] [15:22:30]POST finish read [15:22:30]Found Content-Length = 331 [15:22:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:22:30]execute_script... [15:22:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:22:30]POST & json_proto [15:22:30]process_json_proto [15:22:30]json parsed OK: [15:22:30]protocol is kg_v1.0 [15:22:30]action value=get_value [15:22:30]process_action get_value [15:22:30]cmd_get_value [15:22:30]process_action get_value done [15:22:30]requested_data is exist [15:22:30]produce_requested_data [15:22:30]requested_item fm.sale.total is exist - process it [15:22:30]SAM_PROTO_GetFMData [15:22:30]wFMCommunicate request_size=4 [15:22:30]MH_SAM_APDU [15:22:30]CAPDU: 80 13 03 00 [15:22:30]Write to MH i2c: E2 08 00 68 20 80 13 03 00 00 00 00 00 07 [15:22:30]Write i2c OK [15:22:30]MH_I2C_Read... [15:22:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:22:30]Read from MH i2c: E2 [15:22:30]MH_I2C_Read... [15:22:30]Read from MH i2c: E2 FD 00 [15:22:30]MH_I2C_Read... [15:22:30]Read from MH i2c: E2 FD 00 68 20 00 C3 04 85 04 BF 04 6E 04 04 00 B0 73 00 00 69 04 A1 00 6F 04 04 00 43 70 00 00 B1 04 04 00 02 48 06 B7 70 04 04 00 8C 85 15 74 72 04 04 00 76 C2 F0 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F9 A6 70 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 AF 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 EF 03 09 00 F6 90 00 3C [15:22:30]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 B0 73 00 00 69 04 A1 00 6F 04 04 00 43 70 00 00 B1 04 04 00 02 48 06 B7 70 04 04 00 8C 85 15 74 72 04 04 00 76 C2 F0 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F9 A6 70 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 AF 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 EF 03 09 00 F6 90 00 [15:22:30]wFMCommunicate OK [15:22:30]wFMCommunicate request_size=4 [15:22:30]MH_SAM_APDU [15:22:30]CAPDU: 80 17 00 00 [15:22:30]Write to MH i2c: E2 08 00 69 20 80 17 00 00 00 00 00 00 09 [15:22:30]Write i2c OK [15:22:30]MH_I2C_Read... [15:22:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:22:31]Read from MH i2c: E2 [15:22:31]MH_I2C_Read... [15:22:31]Read from MH i2c: E2 FD 00 [15:22:31]MH_I2C_Read... [15:22:31]Read from MH i2c: E2 FD 00 69 20 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C3 [15:22:31]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:22:31]wFMCommunicate OK [15:22:31]wFMCommunicate request_size=4 [15:22:31]MH_SAM_APDU [15:22:31]CAPDU: 80 17 00 00 [15:22:31]Write to MH i2c: E2 08 00 6A 20 80 17 00 00 00 00 00 00 0A [15:22:31]Write i2c OK [15:22:31]MH_I2C_Read... [15:22:31]OFD Sender: No OFD packet to send [15:22:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:22:31]Read from MH i2c: E2 [15:22:31]MH_I2C_Read... [15:22:31]Read from MH i2c: E2 FD 00 [15:22:31]MH_I2C_Read... [15:22:31]Read from MH i2c: E2 FD 00 6A 20 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 28 [15:22:31]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:22:31]wFMCommunicate OK [15:22:31]wFMCommunicate request_size=4 [15:22:31]MH_SAM_APDU [15:22:31]CAPDU: 80 17 00 00 [15:22:31]Write to MH i2c: E2 08 00 6B 20 80 17 00 00 00 00 00 00 0B [15:22:31]Write i2c OK [15:22:31]MH_I2C_Read... [15:22:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:22:31]Read from MH i2c: E2 [15:22:31]MH_I2C_Read... [15:22:31]Read from MH i2c: E2 FD 00 [15:22:31]MH_I2C_Read... [15:22:31]Read from MH i2c: E2 FD 00 6B 20 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7D [15:22:31]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:22:31]wFMCommunicate OK [15:22:31]wFMCommunicate request_size=4 [15:22:31]MH_SAM_APDU [15:22:31]CAPDU: 80 17 00 00 [15:22:31]Write to MH i2c: E2 08 00 6C 20 80 17 00 00 00 00 00 00 0C [15:22:31]Write i2c OK [15:22:31]MH_I2C_Read... [15:22:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [15:22:31]Read from MH i2c: E2 [15:22:31]MH_I2C_Read... [15:22:31]Read from MH i2c: E2 E0 00 [15:22:31]MH_I2C_Read... [15:22:31]Read from MH i2c: E2 E0 00 6C 20 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F6 [15:22:31]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:22:31]wFMCommunicate OK [15:22:31]SAM_PROTO_GetFMData done [15:22:31]requested_item fm.sale_refund.total is exist - process it [15:22:31]requested_item fm.buy.total is exist - process it [15:22:31]requested_item shift.sale.total is exist - process it [15:22:31]SAM_PROTO_GetShiftData [15:22:31]wFMCommunicate request_size=4 [15:22:31]MH_SAM_APDU [15:22:31]CAPDU: 80 13 02 00 [15:22:31]Write to MH i2c: E2 08 00 6D 20 80 13 02 00 00 00 00 00 0B [15:22:31]Write i2c OK [15:22:31]MH_I2C_Read... [15:22:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:22:32]Read from MH i2c: E2 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: E2 FD 00 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: E2 FD 00 6D 20 00 AF 04 AA 04 AB 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 85 CD D3 70 04 03 00 D8 B4 59 72 04 03 00 AD 18 7A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 02 7F 16 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 E1 DF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 78 [15:22:32]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 85 CD D3 70 04 03 00 D8 B4 59 72 04 03 00 AD 18 7A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 02 7F 16 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 E1 DF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 [15:22:32]wFMCommunicate OK [15:22:32]wFMCommunicate request_size=4 [15:22:32]MH_SAM_APDU [15:22:32]CAPDU: 80 17 00 00 [15:22:32]Write to MH i2c: E2 08 00 6E 20 80 17 00 00 00 00 00 00 0E [15:22:32]Write i2c OK [15:22:32]MH_I2C_Read... [15:22:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:22:32]Read from MH i2c: E2 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: E2 FD 00 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: E2 FD 00 6E 20 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 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 90 00 27 [15:22:32]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 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 90 00 [15:22:32]wFMCommunicate OK [15:22:32]wFMCommunicate request_size=4 [15:22:32]MH_SAM_APDU [15:22:32]CAPDU: 80 17 00 00 [15:22:32]Write to MH i2c: E2 08 00 6F 20 80 17 00 00 00 00 00 00 0F [15:22:32]Write i2c OK [15:22:32]MH_I2C_Read... [15:22:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:22:32]Read from MH i2c: E2 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: E2 FD 00 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: E2 FD 00 6F 20 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C3 [15:22:32]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 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 90 00 [15:22:32]wFMCommunicate OK [15:22:32]wFMCommunicate request_size=4 [15:22:32]MH_SAM_APDU [15:22:32]CAPDU: 80 17 00 00 [15:22:32]Write to MH i2c: E2 08 00 70 20 80 17 00 00 00 00 00 00 10 [15:22:32]Write i2c OK [15:22:32]MH_I2C_Read... [15:22:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:22:33]Read from MH i2c: E2 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 FD 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 FD 00 70 20 00 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 90 00 8E [15:22:33]RAPDU: 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 90 00 [15:22:33]wFMCommunicate OK [15:22:33]wFMCommunicate request_size=4 [15:22:33]MH_SAM_APDU [15:22:33]CAPDU: 80 17 00 00 [15:22:33]Write to MH i2c: E2 08 00 71 20 80 17 00 00 00 00 00 00 11 [15:22:33]Write i2c OK [15:22:33]MH_I2C_Read... [15:22:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [15:22:33]Read from MH i2c: E2 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 CC 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 CC 00 71 20 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F2 [15:22:33]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:22:33]wFMCommunicate OK [15:22:33]SAM_PROTO_GetShiftData done [15:22:33]requested_item shift.sale.total_cash is exist - process it [15:22:33]requested_item shift.sale_refund.total is exist - process it [15:22:33]requested_item shift.sale_refund.total_cash is exist - process it [15:22:33]requested_item shift.buy.total is exist - process it [15:22:33]requested_item shift.buy.total_cash is exist - process it [15:22:33]produce_requested_data done [15:22:33]produce_requested_data return {"fm.sale.total":30706421.78,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":138807.09,"shift.sale.total_cash":58790.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} [15:22:33]process_action_free get_value [15:22:33]json_value_free [15:22:33]json_value_free done [15:22:33]process_json_proto returns [15:22:33]Send response to host [15:22:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30706421.78,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":138807.09,"shift.sale.total_cash":58790.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}}} [15:22:33]free response buf [15:22:33]execute_script done [15:22:33]execute_script returns [15:22:33]free content buf [15:22:33]Sock 9.Close socket [15:22:33]Sock 9.Thread stoped [15:22:33]accept exits with 7 [15:22:33]New connection [15:22:33]New thread 3067276644 created [15:22:33]Thread 3067133284 joined [15:22:33]Waiting for new connection... [15:22:33] Sock 7.Parse request [15:22:33]Sock 7.Check first char [15:22:33]Sock 7.First char is OK [15:22:33]request: POST /json_proto HTTP/1.0 [15:22:33]Method: POST [15:22:33]URL: /json_proto [15:22:33]Method is POST - this is cgi request [15:22:33]url: /json_proto [15:22:33]query_string will be loaded in cgi processing [15:22:33]execute_cgi json_proto POST (null) [15:22:33]execute_cgi path=json_proto method=POST [15:22:33]POST find Content-Length [15:22:33]Host: 172.17.33.3:8080 [15:22:33]Content-Length: 331 [15:22:33]Content-Type: application/json [15:22:33] [15:22:33]POST finish read [15:22:33]Found Content-Length = 331 [15:22:33]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" ] } } [15:22:33]execute_script... [15:22:33]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" ] } } [15:22:33]POST & json_proto [15:22:33]process_json_proto [15:22:33]json parsed OK: [15:22:33]protocol is kg_v1.0 [15:22:33]action value=get_value [15:22:33]process_action get_value [15:22:33]cmd_get_value [15:22:33]process_action get_value done [15:22:33]requested_data is exist [15:22:33]produce_requested_data [15:22:33]requested_item fm.sale.total is exist - process it [15:22:33]SAM_PROTO_GetFMData [15:22:33]wFMCommunicate request_size=4 [15:22:33]MH_SAM_APDU [15:22:33]CAPDU: 80 13 03 00 [15:22:33]Write to MH i2c: E2 08 00 72 20 80 13 03 00 00 00 00 00 11 [15:22:33]Write i2c OK [15:22:33]MH_I2C_Read... [15:22:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:22:33]Read from MH i2c: E2 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 FD 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 FD 00 72 20 00 C3 04 85 04 BF 04 6E 04 04 00 B0 73 00 00 69 04 A1 00 6F 04 04 00 43 70 00 00 B1 04 04 00 02 48 06 B7 70 04 04 00 8C 85 15 74 72 04 04 00 76 C2 F0 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F9 A6 70 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 AF 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 EF 03 09 00 F6 90 00 46 [15:22:34]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 B0 73 00 00 69 04 A1 00 6F 04 04 00 43 70 00 00 B1 04 04 00 02 48 06 B7 70 04 04 00 8C 85 15 74 72 04 04 00 76 C2 F0 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F9 A6 70 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 AF 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 EF 03 09 00 F6 90 00 [15:22:34]wFMCommunicate OK [15:22:34]wFMCommunicate request_size=4 [15:22:34]MH_SAM_APDU [15:22:34]CAPDU: 80 17 00 00 [15:22:34]Write to MH i2c: E2 08 00 73 20 80 17 00 00 00 00 00 00 13 [15:22:34]Write i2c OK [15:22:34]MH_I2C_Read... [15:22:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:22:34]Read from MH i2c: E2 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 FD 00 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 FD 00 73 20 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CD [15:22:34]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:22:34]wFMCommunicate OK [15:22:34]wFMCommunicate request_size=4 [15:22:34]MH_SAM_APDU [15:22:34]CAPDU: 80 17 00 00 [15:22:34]Write to MH i2c: E2 08 00 74 20 80 17 00 00 00 00 00 00 14 [15:22:34]Write i2c OK [15:22:34]MH_I2C_Read... [15:22:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:22:34]Read from MH i2c: E2 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 FD 00 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 FD 00 74 20 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 32 [15:22:34]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:22:34]wFMCommunicate OK [15:22:34]wFMCommunicate request_size=4 [15:22:34]MH_SAM_APDU [15:22:34]CAPDU: 80 17 00 00 [15:22:34]Write to MH i2c: E2 08 00 75 20 80 17 00 00 00 00 00 00 15 [15:22:34]Write i2c OK [15:22:34]MH_I2C_Read... [15:22:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:22:35]Read from MH i2c: E2 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: E2 FD 00 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: E2 FD 00 75 20 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 87 [15:22:35]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:22:35]wFMCommunicate OK [15:22:35]wFMCommunicate request_size=4 [15:22:35]MH_SAM_APDU [15:22:35]CAPDU: 80 17 00 00 [15:22:35]Write to MH i2c: E2 08 00 76 20 80 17 00 00 00 00 00 00 16 [15:22:35]Write i2c OK [15:22:35]MH_I2C_Read... [15:22:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [15:22:35]Read from MH i2c: E2 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: E2 E0 00 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: E2 E0 00 76 20 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:22:35]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:22:35]wFMCommunicate OK [15:22:35]SAM_PROTO_GetFMData done [15:22:35]requested_item fm.sale_refund.total is exist - process it [15:22:35]requested_item fm.buy.total is exist - process it [15:22:35]requested_item shift.sale.total is exist - process it [15:22:35]SAM_PROTO_GetShiftData [15:22:35]wFMCommunicate request_size=4 [15:22:35]MH_SAM_APDU [15:22:35]CAPDU: 80 13 02 00 [15:22:35]Write to MH i2c: E2 08 00 77 20 80 13 02 00 00 00 00 00 15 [15:22:35]Write i2c OK [15:22:35]MH_I2C_Read... [15:22:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:22:36]Read from MH i2c: E2 [15:22:36]MH_I2C_Read... [15:22:36]Read from MH i2c: E2 FD 00 [15:22:36]MH_I2C_Read... [15:22:36]Read from MH i2c: E2 FD 00 77 20 00 AF 04 AA 04 AB 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 85 CD D3 70 04 03 00 D8 B4 59 72 04 03 00 AD 18 7A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 02 7F 16 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 E1 DF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 82 [15:22:36]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 85 CD D3 70 04 03 00 D8 B4 59 72 04 03 00 AD 18 7A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 02 7F 16 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 E1 DF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 [15:22:36]wFMCommunicate OK [15:22:36]wFMCommunicate request_size=4 [15:22:36]MH_SAM_APDU [15:22:36]CAPDU: 80 17 00 00 [15:22:36]Write to MH i2c: E2 08 00 78 20 80 17 00 00 00 00 00 00 18 [15:22:36]Write i2c OK [15:22:36]MH_I2C_Read... [15:22:36]OFD Sender: No OFD packet to send [15:22:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:22:36]Read from MH i2c: E2 [15:22:36]MH_I2C_Read... [15:22:36]Read from MH i2c: E2 FD 00 [15:22:36]MH_I2C_Read... [15:22:36]Read from MH i2c: E2 FD 00 78 20 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 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 90 00 31 [15:22:36]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 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 90 00 [15:22:36]wFMCommunicate OK [15:22:36]wFMCommunicate request_size=4 [15:22:36]MH_SAM_APDU [15:22:36]CAPDU: 80 17 00 00 [15:22:36]Write to MH i2c: E2 08 00 79 20 80 17 00 00 00 00 00 00 19 [15:22:36]Write i2c OK [15:22:36]MH_I2C_Read... [15:22:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:22:36]Read from MH i2c: E2 [15:22:36]MH_I2C_Read... [15:22:36]Read from MH i2c: E2 FD 00 [15:22:36]MH_I2C_Read... [15:22:36]Read from MH i2c: E2 FD 00 79 20 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CD [15:22:36]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 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 90 00 [15:22:36]wFMCommunicate OK [15:22:36]wFMCommunicate request_size=4 [15:22:36]MH_SAM_APDU [15:22:36]CAPDU: 80 17 00 00 [15:22:36]Write to MH i2c: E2 08 00 7A 20 80 17 00 00 00 00 00 00 1A [15:22:36]Write i2c OK [15:22:36]MH_I2C_Read... [15:22:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:22:37]Read from MH i2c: E2 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 FD 00 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 FD 00 7A 20 00 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 90 00 98 [15:22:37]RAPDU: 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 90 00 [15:22:37]wFMCommunicate OK [15:22:37]wFMCommunicate request_size=4 [15:22:37]MH_SAM_APDU [15:22:37]CAPDU: 80 17 00 00 [15:22:37]Write to MH i2c: E2 08 00 7B 20 80 17 00 00 00 00 00 00 1B [15:22:37]Write i2c OK [15:22:37]MH_I2C_Read... [15:22:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [15:22:37]Read from MH i2c: E2 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 CC 00 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 CC 00 7B 20 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FC [15:22:37]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:22:37]wFMCommunicate OK [15:22:37]SAM_PROTO_GetShiftData done [15:22:37]requested_item shift.sale.total_cash is exist - process it [15:22:37]requested_item shift.sale_refund.total is exist - process it [15:22:37]requested_item shift.sale_refund.total_cash is exist - process it [15:22:37]requested_item shift.buy.total is exist - process it [15:22:37]requested_item shift.buy.total_cash is exist - process it [15:22:37]produce_requested_data done [15:22:37]produce_requested_data return {"fm.sale.total":30706421.78,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":138807.09,"shift.sale.total_cash":58790.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} [15:22:37]process_action_free get_value [15:22:37]json_value_free [15:22:37]json_value_free done [15:22:37]process_json_proto returns [15:22:37]Send response to host [15:22:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30706421.78,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":138807.09,"shift.sale.total_cash":58790.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}}} [15:22:37]free response buf [15:22:37]execute_script done [15:22:37]execute_script returns [15:22:37]free content buf [15:22:37]Sock 7.Close socket [15:22:37]Sock 7.Thread stoped [15:22:38]accept exits with 9 [15:22:38]New connection [15:22:38]New thread 3067133284 created [15:22:38]Thread 3067276644 joined [15:22:38]Waiting for new connection... [15:22:38] Sock 9.Parse request [15:22:38]Sock 9.Check first char [15:22:38]Sock 9.First char is OK [15:22:38]request: POST /json_proto HTTP/1.0 [15:22:38]Method: POST [15:22:38]URL: /json_proto [15:22:38]Method is POST - this is cgi request [15:22:38]url: /json_proto [15:22:38]query_string will be loaded in cgi processing [15:22:38]execute_cgi json_proto POST (null) [15:22:38]execute_cgi path=json_proto method=POST [15:22:38]POST find Content-Length [15:22:38]Host: 172.17.33.3:8080 [15:22:38]Content-Length: 269 [15:22:38]Content-Type: application/json [15:22:38] [15:22:38]POST finish read [15:22:38]Found Content-Length = 269 [15:22:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:38]execute_script... [15:22:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:38]POST & json_proto [15:22:38]process_json_proto [15:22:38]json parsed OK: [15:22:38]protocol is kg_v1.0 [15:22:38]action value=x_report [15:22:38]process_action x_report [15:22:38]cmd_x_report [15:22:38]MH_GetDate [15:22:38]Write to MH i2c: F0 00 00 7C 20 8B [15:22:38]Write i2c OK [15:22:38]MH_I2C_Read... [15:22:38]Read from MH i2c: F0 [15:22:38]MH_I2C_Read... [15:22:38]Read from MH i2c: F0 09 00 [15:22:38]MH_I2C_Read... [15:22:38]Read from MH i2c: F0 09 00 7C 20 00 C0 97 1E 66 23 5B 8F 65 E1 [15:22:38]GetLastDocTimeStamp 1713280895 [15:22:38]current date 1713280960 [15:22:38]FM_GetShiftState [15:22:38]SAM_PROTO_GetShiftState [15:22:38]wFMCommunicate request_size=4 [15:22:38]MH_SAM_APDU [15:22:38]CAPDU: 80 13 01 00 [15:22:38]Write to MH i2c: E2 08 00 7D 20 80 13 01 00 00 00 00 00 1A [15:22:38]Write i2c OK [15:22:38]MH_I2C_Read... [15:22:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:38]Read from MH i2c: E2 [15:22:38]MH_I2C_Read... [15:22:38]Read from MH i2c: E2 0E 00 [15:22:38]MH_I2C_Read... [15:22:38]Read from MH i2c: E2 0E 00 7D 20 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 C8 [15:22:38]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [15:22:38]wFMCommunicate OK [15:22:38]SAM_PROTO_GetShiftState done [15:22:38]FM_GetShiftState done [15:22:38]KKMCreateXReportDocument [15:22:38]Load OK [15:22:38]Malloc new data [15:22:38]MH_GetDate [15:22:38]Write to MH i2c: F0 00 00 7E 20 8D [15:22:38]Write i2c OK [15:22:38]MH_I2C_Read... [15:22:38]Read from MH i2c: F0 [15:22:38]MH_I2C_Read... [15:22:38]Read from MH i2c: F0 09 00 [15:22:38]MH_I2C_Read... [15:22:38]Read from MH i2c: F0 09 00 7E 20 00 C1 97 1E 66 23 5B 8F 65 E4 [15:22:38]Malloc new data [15:22:38]Malloc new data [15:22:38]wFMCommunicate request_size=4 [15:22:38]MH_SAM_APDU [15:22:38]CAPDU: 80 11 00 00 [15:22:38]Write to MH i2c: E2 08 00 7F 20 80 11 00 00 00 00 00 00 19 [15:22:38]Write i2c OK [15:22:38]MH_I2C_Read... [15:22:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:38]Read from MH i2c: E2 [15:22:38]MH_I2C_Read... [15:22:38]Read from MH i2c: E2 17 00 [15:22:38]MH_I2C_Read... [15:22:38]Read from MH i2c: E2 17 00 7F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 68 [15:22:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:22:38]wFMCommunicate OK [15:22:38]SAM_PROTO_GetFieldsCounters [15:22:38]wFMCommunicate request_size=4 [15:22:38]MH_SAM_APDU [15:22:38]CAPDU: 80 13 00 00 [15:22:38]Write to MH i2c: E2 08 00 80 20 80 13 00 00 00 00 00 00 1C [15:22:38]Write i2c OK [15:22:38]MH_I2C_Read... [15:22:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:38]Read from MH i2c: E2 [15:22:38]MH_I2C_Read... [15:22:38]Read from MH i2c: E2 62 00 [15:22:38]MH_I2C_Read... [15:22:38]Read from MH i2c: E2 62 00 80 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [15:22:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:22:39]wFMCommunicate OK [15:22:39]SAM_PROTO_GetFieldsCounters done [15:22:39]Malloc new data [15:22:39]Malloc new data [15:22:39]Malloc new data [15:22:39]KKMCreateXReportDocument OK [15:22:39]KKMSetXReportData OK [15:22:39]KKMPrepareXReportFMData [15:22:39]SAM_PROTO_GetShiftData [15:22:39]wFMCommunicate request_size=4 [15:22:39]MH_SAM_APDU [15:22:39]CAPDU: 80 13 02 00 [15:22:39]Write to MH i2c: E2 08 00 81 20 80 13 02 00 00 00 00 00 1F [15:22:39]Write i2c OK [15:22:39]MH_I2C_Read... [15:22:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:22:39]Read from MH i2c: E2 [15:22:39]MH_I2C_Read... [15:22:39]Read from MH i2c: E2 FD 00 [15:22:39]MH_I2C_Read... [15:22:39]Read from MH i2c: E2 FD 00 81 20 00 AF 04 AA 04 AB 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 85 CD D3 70 04 03 00 D8 B4 59 72 04 03 00 AD 18 7A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 02 7F 16 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 E1 DF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 8C [15:22:39]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 85 CD D3 70 04 03 00 D8 B4 59 72 04 03 00 AD 18 7A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 02 7F 16 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 E1 DF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 [15:22:39]wFMCommunicate OK [15:22:39]wFMCommunicate request_size=4 [15:22:39]MH_SAM_APDU [15:22:39]CAPDU: 80 17 00 00 [15:22:39]Write to MH i2c: E2 08 00 82 20 80 17 00 00 00 00 00 00 22 [15:22:39]Write i2c OK [15:22:39]MH_I2C_Read... [15:22:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:22:39]Read from MH i2c: E2 [15:22:39]MH_I2C_Read... [15:22:39]Read from MH i2c: E2 FD 00 [15:22:39]MH_I2C_Read... [15:22:39]Read from MH i2c: E2 FD 00 82 20 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 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 90 00 3B [15:22:40]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 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 90 00 [15:22:40]wFMCommunicate OK [15:22:40]wFMCommunicate request_size=4 [15:22:40]MH_SAM_APDU [15:22:40]CAPDU: 80 17 00 00 [15:22:40]Write to MH i2c: E2 08 00 83 20 80 17 00 00 00 00 00 00 23 [15:22:40]Write i2c OK [15:22:40]MH_I2C_Read... [15:22:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:22:40]Read from MH i2c: E2 [15:22:40]MH_I2C_Read... [15:22:40]Read from MH i2c: E2 FD 00 [15:22:40]MH_I2C_Read... [15:22:40]Read from MH i2c: E2 FD 00 83 20 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D7 [15:22:40]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 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 90 00 [15:22:40]wFMCommunicate OK [15:22:40]wFMCommunicate request_size=4 [15:22:40]MH_SAM_APDU [15:22:40]CAPDU: 80 17 00 00 [15:22:40]Write to MH i2c: E2 08 00 84 20 80 17 00 00 00 00 00 00 24 [15:22:40]Write i2c OK [15:22:40]MH_I2C_Read... [15:22:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:22:40]Read from MH i2c: E2 [15:22:40]MH_I2C_Read... [15:22:40]Read from MH i2c: E2 FD 00 [15:22:40]MH_I2C_Read... [15:22:40]Read from MH i2c: E2 FD 00 84 20 00 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 90 00 A2 [15:22:41]RAPDU: 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 90 00 [15:22:41]wFMCommunicate OK [15:22:41]wFMCommunicate request_size=4 [15:22:41]MH_SAM_APDU [15:22:41]CAPDU: 80 17 00 00 [15:22:41]Write to MH i2c: E2 08 00 85 20 80 17 00 00 00 00 00 00 25 [15:22:41]Write i2c OK [15:22:41]MH_I2C_Read... [15:22:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [15:22:41]Read from MH i2c: E2 [15:22:41]MH_I2C_Read... [15:22:41]Read from MH i2c: E2 CC 00 [15:22:41]MH_I2C_Read... [15:22:41]OFD Sender: No OFD packet to send [15:22:41]Read from MH i2c: E2 CC 00 85 20 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 [15:22:41]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:22:41]wFMCommunicate OK [15:22:41]SAM_PROTO_GetShiftData done [15:22:41]1194 (1195) - счетчики итогов смены [15:22:41] 1134 (4) - 126 - количество чеков со всеми признаками расчетов [15:22:41] 1129 (156) - счетчики операций «приход» [15:22:41] 1135 (4) - 126 - количество чеков по признаку расчетов [15:22:41] 1201 (3) - 138807.09 - общая итоговая сумма в чеках [15:22:41] 1136 (3) - 58790.00 - итоговая сумма в чеках наличными [15:22:41] 1138 (3) - 80017.09 - итоговая сумма в чеках безналичными [15:22:41] 1024 (123) - суммы налогов [15:22:41] 1006 (9) - суммы НДС [15:22:41] 1010 (1) - 0% - код ставки НДС [15:22:41] 1011 (0) - 0.00 - сумма НДС по ставке [15:22:41] 1006 (12) - суммы НДС [15:22:41] 1010 (1) - 12% - код ставки НДС [15:22:41] 1011 (3) - 14743.06 - сумма НДС по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 0% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (12) - суммы НСП [15:22:41] 1014 (1) - 1% - код ставки НСП [15:22:41] 1015 (3) - 1228.49 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 2% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 3% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 5% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 0,50% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 1,50% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1130 (141) - счетчики операций «возврат прихода» [15:22:41] 1135 (4) - 0 - количество чеков по признаку расчетов [15:22:41] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:22:41] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:22:41] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:22:41] 1024 (117) - суммы налогов [15:22:41] 1006 (9) - суммы НДС [15:22:41] 1010 (1) - 0% - код ставки НДС [15:22:41] 1011 (0) - 0.00 - сумма НДС по ставке [15:22:41] 1006 (9) - суммы НДС [15:22:41] 1010 (1) - 12% - код ставки НДС [15:22:41] 1011 (0) - 0.00 - сумма НДС по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 0% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 1% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 2% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 3% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 5% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 0,50% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 1,50% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1131 (141) - счетчики операций «расход» [15:22:41] 1135 (4) - 0 - количество чеков по признаку расчетов [15:22:41] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:22:41] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:22:41] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:22:41] 1024 (117) - суммы налогов [15:22:41] 1006 (9) - суммы НДС [15:22:41] 1010 (1) - 0% - код ставки НДС [15:22:41] 1011 (0) - 0.00 - сумма НДС по ставке [15:22:41] 1006 (9) - суммы НДС [15:22:41] 1010 (1) - 12% - код ставки НДС [15:22:41] 1011 (0) - 0.00 - сумма НДС по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 0% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 1% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 2% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 3% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 5% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 0,50% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 1,50% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1132 (141) - счетчики операций «возврат расхода» [15:22:41] 1135 (4) - 0 - количество чеков по признаку расчетов [15:22:41] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:22:41] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:22:41] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:22:41] 1024 (117) - суммы налогов [15:22:41] 1006 (9) - суммы НДС [15:22:41] 1010 (1) - 0% - код ставки НДС [15:22:41] 1011 (0) - 0.00 - сумма НДС по ставке [15:22:41] 1006 (9) - суммы НДС [15:22:41] 1010 (1) - 12% - код ставки НДС [15:22:41] 1011 (0) - 0.00 - сумма НДС по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 0% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 1% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 2% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:41] 1007 (9) - суммы НСП [15:22:41] 1014 (1) - 3% - код ставки НСП [15:22:41] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:42] 1007 (9) - суммы НСП [15:22:42] 1014 (1) - 5% - код ставки НСП [15:22:42] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:42] 1007 (9) - суммы НСП [15:22:42] 1014 (1) - 0,50% - код ставки НСП [15:22:42] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:42] 1007 (9) - суммы НСП [15:22:42] 1014 (1) - 1,50% - код ставки НСП [15:22:42] 1015 (0) - 0.00 - сумма НСП по ставке [15:22:42] 1133 (588) - - счетчики коррекции - не используются [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1194 (04AA) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1134 (046E) [15:22:42]Malloc new data [15:22:42]Processing tag 1129 (0469) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1135 (046F) [15:22:42]Malloc new data [15:22:42]Processing tag 1201 (04B1) [15:22:42]Malloc new data [15:22:42]Processing tag 1136 (0470) [15:22:42]Malloc new data [15:22:42]Processing tag 1138 (0472) [15:22:42]Malloc new data [15:22:42]Processing tag 1024 (0400) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1006 (03EE) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1010 (03F2) [15:22:42]Malloc new data [15:22:42]Processing tag 1011 (03F3) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1006 (03EE) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1010 (03F2) [15:22:42]Malloc new data [15:22:42]Processing tag 1011 (03F3) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]SetTLVBufToDocument err=0 [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1130 (046A) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1135 (046F) [15:22:42]Malloc new data [15:22:42]Processing tag 1201 (04B1) [15:22:42]Malloc new data [15:22:42]Processing tag 1136 (0470) [15:22:42]Malloc new data [15:22:42]Processing tag 1138 (0472) [15:22:42]Malloc new data [15:22:42]Processing tag 1024 (0400) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1006 (03EE) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1010 (03F2) [15:22:42]Malloc new data [15:22:42]Processing tag 1011 (03F3) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1006 (03EE) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1010 (03F2) [15:22:42]Malloc new data [15:22:42]Processing tag 1011 (03F3) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]SetTLVBufToDocument err=0 [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1131 (046B) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1135 (046F) [15:22:42]Malloc new data [15:22:42]Processing tag 1201 (04B1) [15:22:42]Malloc new data [15:22:42]Processing tag 1136 (0470) [15:22:42]Malloc new data [15:22:42]Processing tag 1138 (0472) [15:22:42]Malloc new data [15:22:42]Processing tag 1024 (0400) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1006 (03EE) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1010 (03F2) [15:22:42]Malloc new data [15:22:42]Processing tag 1011 (03F3) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1006 (03EE) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1010 (03F2) [15:22:42]Malloc new data [15:22:42]Processing tag 1011 (03F3) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]SetTLVBufToDocument err=0 [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1132 (046C) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1135 (046F) [15:22:42]Malloc new data [15:22:42]Processing tag 1201 (04B1) [15:22:42]Malloc new data [15:22:42]Processing tag 1136 (0470) [15:22:42]Malloc new data [15:22:42]Processing tag 1138 (0472) [15:22:42]Malloc new data [15:22:42]Processing tag 1024 (0400) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1006 (03EE) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1010 (03F2) [15:22:42]Malloc new data [15:22:42]Processing tag 1011 (03F3) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1006 (03EE) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1010 (03F2) [15:22:42]Malloc new data [15:22:42]Processing tag 1011 (03F3) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1007 (03EF) [15:22:42]Load OK [15:22:42]SetTLVBufToDocument [15:22:42]Processing tag 1014 (03F6) [15:22:42]Malloc new data [15:22:42]Processing tag 1015 (03F7) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]SetTLVBufToDocument err=0 [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Processing tag 1133 (046D) [15:22:42]Malloc new data [15:22:42]SetTLVBufToDocument err=0 [15:22:42]SetTLVBufToDocument err=0 [15:22:42]Malloc new data [15:22:42]SAM_PROTO_GetFMData [15:22:42]wFMCommunicate request_size=4 [15:22:42]MH_SAM_APDU [15:22:42]CAPDU: 80 13 03 00 [15:22:42]Write to MH i2c: E2 08 00 86 20 80 13 03 00 00 00 00 00 25 [15:22:42]Write i2c OK [15:22:42]MH_I2C_Read... [15:22:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:22:42]Read from MH i2c: E2 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 FD 00 [15:22:42]MH_I2C_Read... [15:22:42]Read from MH i2c: E2 FD 00 86 20 00 C3 04 85 04 BF 04 6E 04 04 00 B0 73 00 00 69 04 A1 00 6F 04 04 00 43 70 00 00 B1 04 04 00 02 48 06 B7 70 04 04 00 8C 85 15 74 72 04 04 00 76 C2 F0 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F9 A6 70 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 AF 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 EF 03 09 00 F6 90 00 5A [15:22:43]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 B0 73 00 00 69 04 A1 00 6F 04 04 00 43 70 00 00 B1 04 04 00 02 48 06 B7 70 04 04 00 8C 85 15 74 72 04 04 00 76 C2 F0 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F9 A6 70 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 AF 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 EF 03 09 00 F6 90 00 [15:22:43]wFMCommunicate OK [15:22:43]wFMCommunicate request_size=4 [15:22:43]MH_SAM_APDU [15:22:43]CAPDU: 80 17 00 00 [15:22:43]Write to MH i2c: E2 08 00 87 20 80 17 00 00 00 00 00 00 27 [15:22:43]Write i2c OK [15:22:43]MH_I2C_Read... [15:22:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:22:43]Read from MH i2c: E2 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: E2 FD 00 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: E2 FD 00 87 20 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E1 [15:22:43]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:22:43]wFMCommunicate OK [15:22:43]wFMCommunicate request_size=4 [15:22:43]MH_SAM_APDU [15:22:43]CAPDU: 80 17 00 00 [15:22:43]Write to MH i2c: E2 08 00 88 20 80 17 00 00 00 00 00 00 28 [15:22:43]Write i2c OK [15:22:43]MH_I2C_Read... [15:22:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:22:43]Read from MH i2c: E2 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: E2 FD 00 [15:22:43]MH_I2C_Read... [15:22:43]Read from MH i2c: E2 FD 00 88 20 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 46 [15:22:44]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:22:44]wFMCommunicate OK [15:22:44]wFMCommunicate request_size=4 [15:22:44]MH_SAM_APDU [15:22:44]CAPDU: 80 17 00 00 [15:22:44]Write to MH i2c: E2 08 00 89 20 80 17 00 00 00 00 00 00 29 [15:22:44]Write i2c OK [15:22:44]MH_I2C_Read... [15:22:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:22:44]Read from MH i2c: E2 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: E2 FD 00 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: E2 FD 00 89 20 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9B [15:22:44]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:22:44]wFMCommunicate OK [15:22:44]wFMCommunicate request_size=4 [15:22:44]MH_SAM_APDU [15:22:44]CAPDU: 80 17 00 00 [15:22:44]Write to MH i2c: E2 08 00 8A 20 80 17 00 00 00 00 00 00 2A [15:22:44]Write i2c OK [15:22:44]MH_I2C_Read... [15:22:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [15:22:44]Read from MH i2c: E2 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: E2 E0 00 [15:22:44]MH_I2C_Read... [15:22:44]Read from MH i2c: E2 E0 00 8A 20 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 14 [15:22:45]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:22:45]wFMCommunicate OK [15:22:45]SAM_PROTO_GetFMData done [15:22:45]FM_GetFMData:85 04 BF 04 6E 04 04 00 B0 73 00 00 69 04 A1 00 6F 04 04 00 43 70 00 00 B1 04 04 00 02 48 06 B7 70 04 04 00 8C 85 15 74 72 04 04 00 76 C2 F0 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F9 A6 70 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 AF 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 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 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:22:45]oper:6F 04 04 00 43 70 00 00 B1 04 04 00 02 48 06 B7 70 04 04 00 8C 85 15 74 72 04 04 00 76 C2 F0 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F9 A6 70 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 AF 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [15:22:45]total:02 48 06 B7 [15:22:45]Malloc new data [15:22:45]oper:6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 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 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [15:22:46]total:D4 09 10 0D [15:22:46]Malloc new data [15:22:46]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 [15:22:46]total: [15:22:46]Malloc new data [15:22:46]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 [15:22:46]total: [15:22:46]Malloc new data [15:22:46]KKMPrepareXReportFMData err=0 [15:22:46]Х отчет ИНН: 02508201610067 Кассир: Шадыканова Ж. 16.04.2024 15:22 Смена: 10 РНМ: 0000138879044617 ЗНМ: 0300000027 СНО: Общий режим Всего чеков: 126 ИТОГИ ПРИХОД Чеков: 126 Общий итог: 138807.09 Итого наличными: 58790.00 Итого безнал.: 80017.09 НДС 0% : 0.00 НДС 12% : 14743.06 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1228.49 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 58790.00 НС Приход: 30706421.78 НС Возвр.Прихода: 2191549.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000963154 [15:22:46]StoreToDocumentArchive [15:22:46]MH_GetDate [15:22:46]Write to MH i2c: F0 00 00 8B 20 9A [15:22:46]Write i2c OK [15:22:46]MH_I2C_Read... [15:22:46]Read from MH i2c: F0 [15:22:46]MH_I2C_Read... [15:22:46]Read from MH i2c: F0 09 00 [15:22:46]MH_I2C_Read... [15:22:46]Read from MH i2c: F0 09 00 8B 20 00 C8 97 1E 66 23 5B 8F 65 F8 [15:22:46]shift 10 fd 1713280968 [15:22:46]Create dir for shift 0010 [15:22:46]save to /storage/0010/doc_1713280968 [15:22:46]save last doc name /storage/0010/doc_1713280968 to /storage/kkm_last_doc_name [15:22:46]save OK [15:22:46]Clear old archive folders... [15:22:46]NVStorageSaveData kkm_last_timestamp [15:22:46]File name is /storage/kkm_last_timestamp [15:22:46]Write 4 bytes [15:22:46]NVStorageSaveData done [15:22:46]ExternCall_PrintAddStr [15:22:46]wPrintStart [15:22:46]Write to MH i2c: 01 00 00 8C 20 AC [15:22:46]Write i2c OK [15:22:46]MH_I2C_Read... [15:22:46]Read from MH i2c: 01 [15:22:46]MH_I2C_Read... [15:22:46]Read from MH i2c: 01 07 00 [15:22:46]MH_I2C_Read... [15:22:46]Read from MH i2c: 01 07 00 8C 20 00 00 00 00 00 FF 0F C1 [15:22:46]RasterBufferAndPrint [15:22:46]line Х отчет [15:22:46]line ИНН: 02508201610067 [15:22:46]line Кассир: Шадыканова Ж. [15:22:46]line 16.04.2024 15:22 [15:22:46]line Смена: 10 [15:22:46]line РНМ: 0000138879044617 [15:22:46]line ЗНМ: 0300000027 [15:22:46]line СНО: Общий режим [15:22:46]line Всего чеков: 126 [15:22:46]line ИТОГИ ПРИХОД [15:22:46]line Чеков: 126 [15:22:46]line Общий итог: 138807.09 [15:22:46]line Итого наличными: 58790.00 [15:22:46]line Итого безнал.: 80017.09 [15:22:46]line НДС 0% : 0.00 [15:22:46]line НДС 12% : 14743.06 [15:22:46]line НСП 0% : 0.00 [15:22:46]line НСП 1,50% : 0.00 [15:22:46]line НСП 0,50% : 0.00 [15:22:46]line НСП 5% : 0.00 [15:22:46]line НСП 3% : 0.00 [15:22:46]line НСП 2% : 0.00 [15:22:46]line НСП 1% : 1228.49 [15:22:46]line ИТОГИ ВОЗВРАТ ПРИХОДА [15:22:46]line Чеков: 0 [15:22:46]line Общий итог: 0.00 [15:22:46]line Итого наличными: 0.00 [15:22:46]line Итого безнал.: 0.00 [15:22:46]line НДС 0% : 0.00 [15:22:46]line НДС 12% : 0.00 [15:22:46]line НСП 0% : 0.00 [15:22:46]line НСП 1,50% : 0.00 [15:22:46]line НСП 0,50% : 0.00 [15:22:46]line НСП 5% : 0.00 [15:22:46]line НСП 3% : 0.00 [15:22:46]line НСП 2% : 0.00 [15:22:46]line НСП 1% : 0.00 [15:22:46]line ИТОГИ РАСХОД [15:22:46]line Чеков: 0 [15:22:46]line Общий итог: 0.00 [15:22:46]line Итого наличными: 0.00 [15:22:46]line Итого безнал.: 0.00 [15:22:46]line НДС 0% : 0.00 [15:22:46]line НДС 12% : 0.00 [15:22:46]line НСП 0% : 0.00 [15:22:46]line НСП 1,50% : 0.00 [15:22:46]line НСП 0,50% : 0.00 [15:22:46]line НСП 5% : 0.00 [15:22:46]line НСП 3% : 0.00 [15:22:46]line НСП 2% : 0.00 [15:22:46]line НСП 1% : 0.00 [15:22:46]line ИТОГИ ВОЗВРАТ РАСХОДА [15:22:46]line Чеков: 0 [15:22:46]line Общий итог: 0.00 [15:22:46]line Итого наличными: 0.00 [15:22:46]line Итого безнал.: 0.00 [15:22:46]line НДС 0% : 0.00 [15:22:46]line НДС 12% : 0.00 [15:22:46]line НСП 0% : 0.00 [15:22:46]line НСП 1,50% : 0.00 [15:22:46]line НСП 0,50% : 0.00 [15:22:46]line НСП 5% : 0.00 [15:22:46]line НСП 3% : 0.00 [15:22:46]line НСП 2% : 0.00 [15:22:46]line НСП 1% : 0.00 [15:22:46]line Сумма внесений: 0.00 [15:22:46]line Сумма выплат: 0.00 [15:22:46]line Нал. в кассе: 58790.00 [15:22:46]line НС Приход: 30706421.78 [15:22:46]line НС Возвр.Прихода: 2191549.00 [15:22:46]line НС Расход: 0.00 [15:22:46]line НС Возвр.Расхода: 0.00 [15:22:46]line ФМ: 0000000000963154 [15:22:46]written 0, free lines is 4095 [15:22:46]OFD Sender: No OFD packet to send [15:22:47]Write to MH i2c: 01 00 00 D7 20 F7 [15:22:47]Write i2c OK [15:22:47]MH_I2C_Read... [15:22:47]Read from MH i2c: 01 [15:22:47]MH_I2C_Read... [15:22:47]Read from MH i2c: 01 07 00 [15:22:47]MH_I2C_Read... [15:22:47]Read from MH i2c: 01 07 00 D7 20 00 00 00 00 00 91 0A 99 [15:22:47]RasterBufferAndPrint [15:22:47]line [15:22:47]line [15:22:47]line [15:22:47]line [15:22:47]line [15:22:47]written 0, free lines is 2732 [15:22:47]MH_Cut [15:22:47]Write to MH i2c: D1 01 00 DE 20 01 D0 [15:22:47]Write i2c OK [15:22:47]MH_I2C_Read... [15:22:47]Read from MH i2c: D1 [15:22:47]MH_I2C_Read... [15:22:47]Read from MH i2c: D1 01 00 [15:22:47]MH_I2C_Read... [15:22:47]Read from MH i2c: D1 01 00 DE 20 00 CF [15:22:47]Write to MH i2c: 01 00 00 DF 20 FF [15:22:47]Write i2c OK [15:22:47]MH_I2C_Read... [15:22:48]*** Cut start [15:22:48]*** Partial cut [15:22:48]*** CUTSNS_PIN = 1 [15:22:48]*** CUTSNS_PIN = 0 [15:22:48]*** Brake cut motor [15:22:48]Read from MH i2c: 01 [15:22:48]MH_I2C_Read... [15:22:48]*** Stop cut motor [15:22:48]*** Cut end [15:22:48]Read from MH i2c: 01 07 00 [15:22:48]MH_I2C_Read... [15:22:48]Read from MH i2c: 01 07 00 DF 20 00 00 00 00 00 FF 0F 14 [15:22:48]process_action x_report done [15:22:48]requested_data is exist [15:22:48]produce_requested_data [15:22:48]requested_item fd.num is exist - process it [15:22:48]SAM_PROTO_GetFieldsCounters [15:22:48]wFMCommunicate request_size=4 [15:22:48]MH_SAM_APDU [15:22:48]CAPDU: 80 13 00 00 [15:22:48]Write to MH i2c: E2 08 00 E0 20 80 13 00 00 00 00 00 00 7C [15:22:48]Write i2c OK [15:22:48]MH_I2C_Read... [15:22:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:49]Read from MH i2c: E2 [15:22:49]MH_I2C_Read... [15:22:49]Read from MH i2c: E2 62 00 [15:22:49]MH_I2C_Read... [15:22:49]Read from MH i2c: E2 62 00 E0 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [15:22:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:22:49]wFMCommunicate OK [15:22:49]SAM_PROTO_GetFieldsCounters done [15:22:49]requested_item shift.num is exist - process it [15:22:49]requested_item shift.opened is exist - process it [15:22:49]req_shift_opened [15:22:49]FM_GetShiftState [15:22:49]SAM_PROTO_GetShiftState [15:22:49]wFMCommunicate request_size=4 [15:22:49]MH_SAM_APDU [15:22:49]CAPDU: 80 13 01 00 [15:22:49]Write to MH i2c: E2 08 00 E1 20 80 13 01 00 00 00 00 00 7E [15:22:49]Write i2c OK [15:22:49]MH_I2C_Read... [15:22:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:49]Read from MH i2c: E2 [15:22:49]MH_I2C_Read... [15:22:49]Read from MH i2c: E2 0E 00 [15:22:49]MH_I2C_Read... [15:22:49]Read from MH i2c: E2 0E 00 E1 20 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 2C [15:22:49]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [15:22:49]wFMCommunicate OK [15:22:49]SAM_PROTO_GetShiftState done [15:22:49]FM_GetShiftState done [15:22:49]req_shift_opened done [15:22:49]requested_item shift.open_date is exist - process it [15:22:49]req_shift_open_date [15:22:49]req_shift_open_date done [15:22:49]produce_requested_data done [15:22:49]produce_requested_data return {"fd.num":29852,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [15:22:49]process_action_free x_report [15:22:49]json_value_free [15:22:49]json_value_free done [15:22:49]process_json_proto returns [15:22:49]Send response to host [15:22:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":29852,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [15:22:49]free response buf [15:22:49]execute_script done [15:22:49]execute_script returns [15:22:49]free content buf [15:22:49]Sock 9.Close socket [15:22:49]Sock 9.Thread stoped [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:10]accept exits with 7 [15:23:10]New connection [15:23:10]New thread 3067276644 created [15:23:10]Thread 3067133284 joined [15:23:10]Waiting for new connection... [15:23:10] Sock 7.Parse request [15:23:10]Sock 7.Check first char [15:23:10]Sock 7.First char is OK [15:23:10]request: POST /json_proto HTTP/1.0 [15:23:10]Method: POST [15:23:10]URL: /json_proto [15:23:10]Method is POST - this is cgi request [15:23:10]url: /json_proto [15:23:10]query_string will be loaded in cgi processing [15:23:10]execute_cgi json_proto POST (null) [15:23:10]execute_cgi path=json_proto method=POST [15:23:10]POST find Content-Length [15:23:10]Host: 172.17.33.3:8080 [15:23:10]Content-Length: 215 [15:23:10]Content-Type: application/json [15:23:10] [15:23:10]POST finish read [15:23:10]Found Content-Length = 215 [15:23:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:10]execute_script... [15:23:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:10]POST & json_proto [15:23:10]process_json_proto [15:23:10]json parsed OK: [15:23:10]protocol is kg_v1.0 [15:23:10]action value=get_value [15:23:10]process_action get_value [15:23:10]cmd_get_value [15:23:10]process_action get_value done [15:23:10]requested_data is exist [15:23:10]produce_requested_data [15:23:10]requested_item kkm.sn is exist - process it [15:23:10]requested_item kkm.ver is exist - process it [15:23:10]requested_item fm.sn is exist - process it [15:23:10]wFMCommunicate request_size=4 [15:23:10]MH_SAM_APDU [15:23:10]CAPDU: 80 11 00 00 [15:23:10]Write to MH i2c: E2 08 00 E2 20 80 11 00 00 00 00 00 00 7C [15:23:10]Write i2c OK [15:23:10]MH_I2C_Read... [15:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:11]Read from MH i2c: E2 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: E2 17 00 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: E2 17 00 E2 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CB [15:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:23:11]wFMCommunicate OK [15:23:11]requested_item fd.num is exist - process it [15:23:11]SAM_PROTO_GetFieldsCounters [15:23:11]wFMCommunicate request_size=4 [15:23:11]MH_SAM_APDU [15:23:11]CAPDU: 80 13 00 00 [15:23:11]Write to MH i2c: E2 08 00 E3 20 80 13 00 00 00 00 00 00 7F [15:23:11]Write i2c OK [15:23:11]MH_I2C_Read... [15:23:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:11]Read from MH i2c: E2 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: E2 62 00 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: E2 62 00 E3 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [15:23:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:11]wFMCommunicate OK [15:23:11]SAM_PROTO_GetFieldsCounters done [15:23:11]requested_item shift.num is exist - process it [15:23:11]requested_item shift.opened is exist - process it [15:23:11]req_shift_opened [15:23:11]FM_GetShiftState [15:23:11]SAM_PROTO_GetShiftState [15:23:11]wFMCommunicate request_size=4 [15:23:11]MH_SAM_APDU [15:23:11]CAPDU: 80 13 01 00 [15:23:11]Write to MH i2c: E2 08 00 E4 20 80 13 01 00 00 00 00 00 81 [15:23:11]Write i2c OK [15:23:11]MH_I2C_Read... [15:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:11]Read from MH i2c: E2 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: E2 0E 00 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: E2 0E 00 E4 20 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 2F [15:23:11]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [15:23:11]wFMCommunicate OK [15:23:11]SAM_PROTO_GetShiftState done [15:23:11]FM_GetShiftState done [15:23:11]req_shift_opened done [15:23:11]requested_item shift.open_date is exist - process it [15:23:11]req_shift_open_date [15:23:11]req_shift_open_date done [15:23:11]produce_requested_data done [15:23:11]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29852,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843} [15:23:11]process_action_free get_value [15:23:11]json_value_free [15:23:11]json_value_free done [15:23:11]process_json_proto returns [15:23:11]Send response to host [15:23:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29852,"shift.num":118,"shift.opened":1,"shift.open_date":1713226843}}} [15:23:11]free response buf [15:23:11]execute_script done [15:23:11]execute_script returns [15:23:11]free content buf [15:23:11]Sock 7.Close socket [15:23:11]Sock 7.Thread stoped [15:23:11]accept exits with 9 [15:23:11]New connection [15:23:11]New thread 3067133284 created [15:23:11]Thread 3067276644 joined [15:23:11]Waiting for new connection... [15:23:11] Sock 9.Parse request [15:23:11]Sock 9.Check first char [15:23:11]Sock 9.First char is OK [15:23:11]request: POST /json_proto HTTP/1.0 [15:23:11]Method: POST [15:23:11]URL: /json_proto [15:23:11]Method is POST - this is cgi request [15:23:11]url: /json_proto [15:23:11]query_string will be loaded in cgi processing [15:23:11]execute_cgi json_proto POST (null) [15:23:11]execute_cgi path=json_proto method=POST [15:23:11]POST find Content-Length [15:23:11]Host: 172.17.33.3:8080 [15:23:11]Content-Length: 331 [15:23:11]Content-Type: application/json [15:23:11] [15:23:11]POST finish read [15:23:11]Found Content-Length = 331 [15:23: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" ] } } [15:23:11]execute_script... [15:23: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" ] } } [15:23:11]POST & json_proto [15:23:11]process_json_proto [15:23:11]json parsed OK: [15:23:11]protocol is kg_v1.0 [15:23:11]action value=get_value [15:23:11]process_action get_value [15:23:11]cmd_get_value [15:23:11]process_action get_value done [15:23:11]requested_data is exist [15:23:11]produce_requested_data [15:23:11]requested_item fm.sale.total is exist - process it [15:23:11]SAM_PROTO_GetFMData [15:23:11]wFMCommunicate request_size=4 [15:23:11]MH_SAM_APDU [15:23:11]CAPDU: 80 13 03 00 [15:23:11]Write to MH i2c: E2 08 00 E5 20 80 13 03 00 00 00 00 00 84 [15:23:11]Write i2c OK [15:23:11]MH_I2C_Read... [15:23:11]OFD Sender: No OFD packet to send [15:23:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:23:11]Read from MH i2c: E2 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: E2 FD 00 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: E2 FD 00 E5 20 00 C3 04 85 04 BF 04 6E 04 04 00 B0 73 00 00 69 04 A1 00 6F 04 04 00 43 70 00 00 B1 04 04 00 02 48 06 B7 70 04 04 00 8C 85 15 74 72 04 04 00 76 C2 F0 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F9 A6 70 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 AF 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 EF 03 09 00 F6 90 00 B9 [15:23:11]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 B0 73 00 00 69 04 A1 00 6F 04 04 00 43 70 00 00 B1 04 04 00 02 48 06 B7 70 04 04 00 8C 85 15 74 72 04 04 00 76 C2 F0 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F9 A6 70 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 AF 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 EF 03 09 00 F6 90 00 [15:23:11]wFMCommunicate OK [15:23:11]wFMCommunicate request_size=4 [15:23:11]MH_SAM_APDU [15:23:11]CAPDU: 80 17 00 00 [15:23:11]Write to MH i2c: E2 08 00 E6 20 80 17 00 00 00 00 00 00 86 [15:23:11]Write i2c OK [15:23:11]MH_I2C_Read... [15:23:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:23:12]Read from MH i2c: E2 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 FD 00 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 FD 00 E6 20 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 40 [15:23:12]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:23:12]wFMCommunicate OK [15:23:12]wFMCommunicate request_size=4 [15:23:12]MH_SAM_APDU [15:23:12]CAPDU: 80 17 00 00 [15:23:12]Write to MH i2c: E2 08 00 E7 20 80 17 00 00 00 00 00 00 87 [15:23:12]Write i2c OK [15:23:12]MH_I2C_Read... [15:23:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:23:12]Read from MH i2c: E2 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 FD 00 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 FD 00 E7 20 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A5 [15:23:12]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:23:12]wFMCommunicate OK [15:23:12]wFMCommunicate request_size=4 [15:23:12]MH_SAM_APDU [15:23:12]CAPDU: 80 17 00 00 [15:23:12]Write to MH i2c: E2 08 00 E8 20 80 17 00 00 00 00 00 00 88 [15:23:12]Write i2c OK [15:23:12]MH_I2C_Read... [15:23:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:23:12]Read from MH i2c: E2 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 FD 00 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: E2 FD 00 E8 20 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FA [15:23:13]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:23:13]wFMCommunicate OK [15:23:13]wFMCommunicate request_size=4 [15:23:13]MH_SAM_APDU [15:23:13]CAPDU: 80 17 00 00 [15:23:13]Write to MH i2c: E2 08 00 E9 20 80 17 00 00 00 00 00 00 89 [15:23:13]Write i2c OK [15:23:13]MH_I2C_Read... [15:23:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [15:23:13]Read from MH i2c: E2 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 E0 00 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 E0 00 E9 20 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 73 [15:23:13]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:23:13]wFMCommunicate OK [15:23:13]SAM_PROTO_GetFMData done [15:23:13]requested_item fm.sale_refund.total is exist - process it [15:23:13]requested_item fm.buy.total is exist - process it [15:23:13]requested_item shift.sale.total is exist - process it [15:23:13]SAM_PROTO_GetShiftData [15:23:13]wFMCommunicate request_size=4 [15:23:13]MH_SAM_APDU [15:23:13]CAPDU: 80 13 02 00 [15:23:13]Write to MH i2c: E2 08 00 EA 20 80 13 02 00 00 00 00 00 88 [15:23:13]Write i2c OK [15:23:13]MH_I2C_Read... [15:23:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:23:13]Read from MH i2c: E2 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 FD 00 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 FD 00 EA 20 00 AF 04 AA 04 AB 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 85 CD D3 70 04 03 00 D8 B4 59 72 04 03 00 AD 18 7A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 02 7F 16 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 E1 DF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 F5 [15:23:14]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 85 CD D3 70 04 03 00 D8 B4 59 72 04 03 00 AD 18 7A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 02 7F 16 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 E1 DF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 [15:23:14]wFMCommunicate OK [15:23:14]wFMCommunicate request_size=4 [15:23:14]MH_SAM_APDU [15:23:14]CAPDU: 80 17 00 00 [15:23:14]Write to MH i2c: E2 08 00 EB 20 80 17 00 00 00 00 00 00 8B [15:23:14]Write i2c OK [15:23:14]MH_I2C_Read... [15:23:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:23:14]Read from MH i2c: E2 [15:23:14]MH_I2C_Read... [15:23:14]Read from MH i2c: E2 FD 00 [15:23:14]MH_I2C_Read... [15:23:14]Read from MH i2c: E2 FD 00 EB 20 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 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 90 00 A4 [15:23:14]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 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 90 00 [15:23:14]wFMCommunicate OK [15:23:14]wFMCommunicate request_size=4 [15:23:14]MH_SAM_APDU [15:23:14]CAPDU: 80 17 00 00 [15:23:14]Write to MH i2c: E2 08 00 EC 20 80 17 00 00 00 00 00 00 8C [15:23:14]Write i2c OK [15:23:14]MH_I2C_Read... [15:23:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:23:14]Read from MH i2c: E2 [15:23:14]MH_I2C_Read... [15:23:14]Read from MH i2c: E2 FD 00 [15:23:14]MH_I2C_Read... [15:23:14]Read from MH i2c: E2 FD 00 EC 20 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 40 [15:23:15]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 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 90 00 [15:23:15]wFMCommunicate OK [15:23:15]wFMCommunicate request_size=4 [15:23:15]MH_SAM_APDU [15:23:15]CAPDU: 80 17 00 00 [15:23:15]Write to MH i2c: E2 08 00 ED 20 80 17 00 00 00 00 00 00 8D [15:23:15]Write i2c OK [15:23:15]MH_I2C_Read... [15:23:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:23:15]Read from MH i2c: E2 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 FD 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 FD 00 ED 20 00 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 90 00 0B [15:23:15]RAPDU: 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 90 00 [15:23:15]wFMCommunicate OK [15:23:15]wFMCommunicate request_size=4 [15:23:15]MH_SAM_APDU [15:23:15]CAPDU: 80 17 00 00 [15:23:15]Write to MH i2c: E2 08 00 EE 20 80 17 00 00 00 00 00 00 8E [15:23:15]Write i2c OK [15:23:15]MH_I2C_Read... [15:23:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [15:23:15]Read from MH i2c: E2 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 CC 00 [15:23:15]MH_I2C_Read... [15:23:15]Read from MH i2c: E2 CC 00 EE 20 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6F [15:23:15]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:23:16]wFMCommunicate OK [15:23:16]SAM_PROTO_GetShiftData done [15:23:16]requested_item shift.sale.total_cash is exist - process it [15:23:16]requested_item shift.sale_refund.total is exist - process it [15:23:16]requested_item shift.sale_refund.total_cash is exist - process it [15:23:16]requested_item shift.buy.total is exist - process it [15:23:16]requested_item shift.buy.total_cash is exist - process it [15:23:16]produce_requested_data done [15:23:16]produce_requested_data return {"fm.sale.total":30706421.78,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":138807.09,"shift.sale.total_cash":58790.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} [15:23:16]process_action_free get_value [15:23:16]json_value_free [15:23:16]json_value_free done [15:23:16]process_json_proto returns [15:23:16]Send response to host [15:23:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30706421.78,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":138807.09,"shift.sale.total_cash":58790.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}}} [15:23:16]free response buf [15:23:16]execute_script done [15:23:16]execute_script returns [15:23:16]free content buf [15:23:16]Sock 9.Close socket [15:23:16]Sock 9.Thread stoped [15:23:16]accept exits with 7 [15:23:16]New connection [15:23:16]New thread 3067276644 created [15:23:16]Thread 3067133284 joined [15:23:16]Waiting for new connection... [15:23:16] Sock 7.Parse request [15:23:16]Sock 7.Check first char [15:23:16]Sock 7.First char is OK [15:23:16]request: POST /json_proto HTTP/1.0 [15:23:16]Method: POST [15:23:16]URL: /json_proto [15:23:16]Method is POST - this is cgi request [15:23:16]url: /json_proto [15:23:16]query_string will be loaded in cgi processing [15:23:16]execute_cgi json_proto POST (null) [15:23:16]execute_cgi path=json_proto method=POST [15:23:16]POST find Content-Length [15:23:16]Host: 172.17.33.3:8080 [15:23:16]Content-Length: 331 [15:23:16]Content-Type: application/json [15:23:16] [15:23:16]POST finish read [15:23:16]Found Content-Length = 331 [15:23:16]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" ] } } [15:23:16]execute_script... [15:23:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:23:16]POST & json_proto [15:23:16]process_json_proto [15:23:16]json parsed OK: [15:23:16]protocol is kg_v1.0 [15:23:16]action value=get_value [15:23:16]process_action get_value [15:23:16]cmd_get_value [15:23:16]process_action get_value done [15:23:16]requested_data is exist [15:23:16]produce_requested_data [15:23:16]requested_item fm.sale.total is exist - process it [15:23:16]SAM_PROTO_GetFMData [15:23:16]wFMCommunicate request_size=4 [15:23:16]MH_SAM_APDU [15:23:16]CAPDU: 80 13 03 00 [15:23:16]Write to MH i2c: E2 08 00 EF 20 80 13 03 00 00 00 00 00 8E [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:16]OFD Sender: No OFD packet to send [15:23:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:23:16]Read from MH i2c: E2 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 FD 00 [15:23:16]MH_I2C_Read... [15:23:16]Read from MH i2c: E2 FD 00 EF 20 00 C3 04 85 04 BF 04 6E 04 04 00 B0 73 00 00 69 04 A1 00 6F 04 04 00 43 70 00 00 B1 04 04 00 02 48 06 B7 70 04 04 00 8C 85 15 74 72 04 04 00 76 C2 F0 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F9 A6 70 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 AF 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 EF 03 09 00 F6 90 00 C3 [15:23:16]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 B0 73 00 00 69 04 A1 00 6F 04 04 00 43 70 00 00 B1 04 04 00 02 48 06 B7 70 04 04 00 8C 85 15 74 72 04 04 00 76 C2 F0 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F9 A6 70 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 AF 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 EF 03 09 00 F6 90 00 [15:23:16]wFMCommunicate OK [15:23:16]wFMCommunicate request_size=4 [15:23:16]MH_SAM_APDU [15:23:16]CAPDU: 80 17 00 00 [15:23:16]Write to MH i2c: E2 08 00 F0 20 80 17 00 00 00 00 00 00 90 [15:23:16]Write i2c OK [15:23:16]MH_I2C_Read... [15:23:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:23:17]Read from MH i2c: E2 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: E2 FD 00 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: E2 FD 00 F0 20 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4A [15:23:17]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:23:17]wFMCommunicate OK [15:23:17]wFMCommunicate request_size=4 [15:23:17]MH_SAM_APDU [15:23:17]CAPDU: 80 17 00 00 [15:23:17]Write to MH i2c: E2 08 00 F1 20 80 17 00 00 00 00 00 00 91 [15:23:17]Write i2c OK [15:23:17]MH_I2C_Read... [15:23:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:23:17]Read from MH i2c: E2 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: E2 FD 00 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: E2 FD 00 F1 20 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AF [15:23:17]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:23:17]wFMCommunicate OK [15:23:17]wFMCommunicate request_size=4 [15:23:17]MH_SAM_APDU [15:23:17]CAPDU: 80 17 00 00 [15:23:17]Write to MH i2c: E2 08 00 F2 20 80 17 00 00 00 00 00 00 92 [15:23:17]Write i2c OK [15:23:17]MH_I2C_Read... [15:23:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:23:18]Read from MH i2c: E2 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 FD 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 FD 00 F2 20 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 04 [15:23:18]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:23:18]wFMCommunicate OK [15:23:18]wFMCommunicate request_size=4 [15:23:18]MH_SAM_APDU [15:23:18]CAPDU: 80 17 00 00 [15:23:18]Write to MH i2c: E2 08 00 F3 20 80 17 00 00 00 00 00 00 93 [15:23:18]Write i2c OK [15:23:18]MH_I2C_Read... [15:23:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [15:23:18]Read from MH i2c: E2 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 E0 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 E0 00 F3 20 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D [15:23:18]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:23:18]wFMCommunicate OK [15:23:18]SAM_PROTO_GetFMData done [15:23:18]requested_item fm.sale_refund.total is exist - process it [15:23:18]requested_item fm.buy.total is exist - process it [15:23:18]requested_item shift.sale.total is exist - process it [15:23:18]SAM_PROTO_GetShiftData [15:23:18]wFMCommunicate request_size=4 [15:23:18]MH_SAM_APDU [15:23:18]CAPDU: 80 13 02 00 [15:23:18]Write to MH i2c: E2 08 00 F4 20 80 13 02 00 00 00 00 00 92 [15:23:18]Write i2c OK [15:23:18]MH_I2C_Read... [15:23:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:23:19]Read from MH i2c: E2 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 FD 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 FD 00 F4 20 00 AF 04 AA 04 AB 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 85 CD D3 70 04 03 00 D8 B4 59 72 04 03 00 AD 18 7A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 02 7F 16 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 E1 DF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 FF [15:23:19]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 85 CD D3 70 04 03 00 D8 B4 59 72 04 03 00 AD 18 7A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 02 7F 16 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 E1 DF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 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 [15:23:19]wFMCommunicate OK [15:23:19]wFMCommunicate request_size=4 [15:23:19]MH_SAM_APDU [15:23:19]CAPDU: 80 17 00 00 [15:23:19]Write to MH i2c: E2 08 00 F5 20 80 17 00 00 00 00 00 00 95 [15:23:19]Write i2c OK [15:23:19]MH_I2C_Read... [15:23:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:23:19]Read from MH i2c: E2 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 FD 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: E2 FD 00 F5 20 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 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 90 00 AE [15:23:20]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 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 90 00 [15:23:20]wFMCommunicate OK [15:23:20]wFMCommunicate request_size=4 [15:23:20]MH_SAM_APDU [15:23:20]CAPDU: 80 17 00 00 [15:23:20]Write to MH i2c: E2 08 00 F6 20 80 17 00 00 00 00 00 00 96 [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:23:20]Read from MH i2c: E2 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 FD 00 [15:23:20]MH_I2C_Read... [15:23:20]Read from MH i2c: E2 FD 00 F6 20 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4A [15:23:20]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 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 90 00 [15:23:20]wFMCommunicate OK [15:23:20]wFMCommunicate request_size=4 [15:23:20]MH_SAM_APDU [15:23:20]CAPDU: 80 17 00 00 [15:23:20]Write to MH i2c: E2 08 00 F7 20 80 17 00 00 00 00 00 00 97 [15:23:20]Write i2c OK [15:23:20]MH_I2C_Read... [15:23:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:23:21]Read from MH i2c: E2 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 FD 00 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 FD 00 F7 20 00 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 90 00 15 [15:23:21]RAPDU: 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 90 00 [15:23:21]wFMCommunicate OK [15:23:21]wFMCommunicate request_size=4 [15:23:21]MH_SAM_APDU [15:23:21]CAPDU: 80 17 00 00 [15:23:21]Write to MH i2c: E2 08 00 F8 20 80 17 00 00 00 00 00 00 98 [15:23:21]Write i2c OK [15:23:21]MH_I2C_Read... [15:23:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [15:23:21]Read from MH i2c: E2 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 CC 00 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 CC 00 F8 20 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 79 [15:23:21]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [15:23:21]04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:23:21]wFMCommunicate OK [15:23:21]SAM_PROTO_GetShiftData done [15:23:21]requested_item shift.sale.total_cash is exist - process it [15:23:21]requested_item shift.sale_refund.total is exist - process it [15:23:21]requested_item shift.sale_refund.total_cash is exist - process it [15:23:21]requested_item shift.buy.total is exist - process it [15:23:21]requested_item shift.buy.total_cash is exist - process it [15:23:21]produce_requested_data done [15:23:21]produce_requested_data return {"fm.sale.total":30706421.78,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":138807.09,"shift.sale.total_cash":58790.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} [15:23:21]process_action_free get_value [15:23:21]json_value_free [15:23:21]json_value_free done [15:23:21]process_json_proto returns [15:23:21]Send response to host [15:23:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":30706421.78,"fm.sale_refund.total":2191549.00,"fm.buy.total":0.00,"shift.sale.total":138807.09,"shift.sale.total_cash":58790.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}}} [15:23:21]free response buf [15:23:21]execute_script done [15:23:21]execute_script returns [15:23:21]free content buf [15:23:21]Sock 7.Close socket [15:23:21]Sock 7.Thread stoped [15:23:21]accept exits with 9 [15:23:21]New connection [15:23:21]New thread 3067133284 created [15:23:21]Thread 3067276644 joined [15:23:21]Waiting for new connection... [15:23:21] Sock 9.Parse request [15:23:21]Sock 9.Check first char [15:23:21]Sock 9.First char is OK [15:23:21]request: POST /json_proto HTTP/1.0 [15:23:21]Method: POST [15:23:21]URL: /json_proto [15:23:21]Method is POST - this is cgi request [15:23:21]url: /json_proto [15:23:21]query_string will be loaded in cgi processing [15:23:21]execute_cgi json_proto POST (null) [15:23:21]execute_cgi path=json_proto method=POST [15:23:21]POST find Content-Length [15:23:21]Host: 172.17.33.3:8080 [15:23:21]Content-Length: 272 [15:23:21]Content-Type: application/json [15:23:21] [15:23:21]POST finish read [15:23:21]Found Content-Length = 272 [15:23:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:21]execute_script... [15:23:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:21]POST & json_proto [15:23:21]process_json_proto [15:23:21]json parsed OK: [15:23:21]protocol is kg_v1.0 [15:23:21]action value=close_shift [15:23:21]process_action close_shift [15:23:21]cmd_close_shift [15:23:21]MH_GetDate [15:23:21]Write to MH i2c: F0 00 00 F9 20 08 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: F0 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: F0 09 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: F0 09 00 F9 20 00 EC 97 1E 66 23 5B 8F 65 8A [15:23:22]GetLastDocTimeStamp 1713280961 [15:23:22]current date 1713281004 [15:23:22]FM_GetShiftState [15:23:22]SAM_PROTO_GetShiftState [15:23:22]wFMCommunicate request_size=4 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 13 01 00 [15:23:22]Write to MH i2c: E2 08 00 FA 20 80 13 01 00 00 00 00 00 97 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 0E 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 0E 00 FA 20 00 09 00 01 5B C4 1D 66 00 00 00 00 90 00 45 [15:23:22]RAPDU: 09 00 01 5B C4 1D 66 00 00 00 00 90 00 [15:23:22]wFMCommunicate OK [15:23:22]SAM_PROTO_GetShiftState done [15:23:22]FM_GetShiftState done [15:23:22]KKMCreateCloseShiftDocument [15:23:22]Load OK [15:23:22]Malloc new data [15:23:22]MH_GetDate [15:23:22]Write to MH i2c: F0 00 00 FB 20 0A [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: F0 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: F0 09 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: F0 09 00 FB 20 00 EC 97 1E 66 23 5B 8F 65 8C [15:23:22]Malloc new data [15:23:22]Malloc new data [15:23:22]Malloc new data [15:23:22]Malloc new data [15:23:22]KKMCreateCloseShiftDocument OK [15:23:22]KKMSetCloseShiftData OK [15:23:22]ProcessDocumentItem done err = 0, tmpTLVsize=75 [15:23:22]tlvbuf is 002D9E50 [15:23:22]KKMLoadAndSignCloseShiftData [15:23:22]SAM_PROTO_ProcessDocument [15:23:22]wFMCommunicate request_size=9 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 15 01 00 04 05 00 4B 00 [15:23:22]Write to MH i2c: E2 0C 00 FC 20 80 15 01 00 04 00 05 00 4B 00 00 00 F3 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 FC 20 00 90 00 90 [15:23:22]RAPDU: 90 00 [15:23:22]wFMCommunicate OK [15:23:22]wFMCommunicate request_size=23 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [15:23:22]Write to MH i2c: E2 1A 00 FD 20 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 92 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 FD 20 00 90 00 91 [15:23:22]RAPDU: 90 00 [15:23:22]wFMCommunicate OK [15:23:22]wFMCommunicate request_size=34 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 [15:23:22]Write to MH i2c: E2 25 00 FE 20 80 15 02 00 1D 00 FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 00 00 C4 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 FE 20 00 90 00 92 [15:23:22]RAPDU: 90 00 [15:23:22]wFMCommunicate OK [15:23:22]wFMCommunicate request_size=13 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 15 02 00 08 F4 03 04 00 EC 97 1E 66 [15:23:22]Write to MH i2c: E2 10 00 FF 20 80 15 02 00 08 00 F4 03 04 00 EC 97 1E 66 00 00 B1 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 FF 20 00 90 00 93 [15:23:22]RAPDU: 90 00 [15:23:22]wFMCommunicate OK [15:23:22]wFMCommunicate request_size=25 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 [15:23:22]Write to MH i2c: E2 1C 00 00 21 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 00 00 24 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 00 21 00 90 00 95 [15:23:22]RAPDU: 90 00 [15:23:22]wFMCommunicate OK [15:23:22]wFMCommunicate request_size=4 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 15 03 00 [15:23:22]Write to MH i2c: E2 08 00 01 21 80 15 03 00 00 00 00 00 A3 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:23]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [15:23:23]Read from MH i2c: E2 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 FD 00 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 FD 00 01 21 00 F2 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 74 00 00 0E 04 04 00 76 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 80 00 00 00 AA 04 AB 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 85 CD D3 70 04 03 00 D8 B4 59 72 04 03 00 AD 18 7A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 02 7F 16 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 E1 DF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 27 [15:23:23]RAPDU: F2 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 74 00 00 0E 04 04 00 76 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 80 00 00 00 AA 04 AB 04 6E 04 04 00 7E 00 00 00 69 04 9C 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 85 CD D3 70 04 03 00 D8 B4 59 72 04 03 00 AD 18 7A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 02 7F 16 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 E1 DF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 [15:23:23]wFMCommunicate OK [15:23:23]SAM_PROTO_ProcessDocument answer len = 1266 [15:23:23]SAM_PROTO_ProcessDocument remain to read = 1018 [15:23:23]wFMCommunicate request_size=4 [15:23:23]MH_SAM_APDU [15:23:23]CAPDU: 80 17 00 00 [15:23:23]Write to MH i2c: E2 08 00 02 21 80 17 00 00 00 00 00 00 A3 [15:23:23]Write i2c OK [15:23:23]MH_I2C_Read... [15:23:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:23:23]Read from MH i2c: E2 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 FD 00 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 FD 00 02 21 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E9 [15:23:23]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [15:23:24]wFMCommunicate OK [15:23:24]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [15:23:24]SAM_PROTO_ProcessDocument remain to read = 768 [15:23:24]wFMCommunicate request_size=4 [15:23:24]MH_SAM_APDU [15:23:24]CAPDU: 80 17 00 00 [15:23:24]Write to MH i2c: E2 08 00 03 21 80 17 00 00 00 00 00 00 A4 [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:23:24]Read from MH i2c: E2 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 FD 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 FD 00 03 21 00 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 90 00 06 [15:23:24]RAPDU: 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 90 00 [15:23:24]wFMCommunicate OK [15:23:24]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [15:23:24]SAM_PROTO_ProcessDocument remain to read = 518 [15:23:24]wFMCommunicate request_size=4 [15:23:24]MH_SAM_APDU [15:23:24]CAPDU: 80 17 00 00 [15:23:24]Write to MH i2c: E2 08 00 04 21 80 17 00 00 00 00 00 00 A5 [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:23:25]Read from MH i2c: E2 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 FD 00 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 FD 00 04 21 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 40 [15:23:25]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:23:25]wFMCommunicate OK [15:23:25]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [15:23:25]SAM_PROTO_ProcessDocument remain to read = 268 [15:23:25]wFMCommunicate request_size=4 [15:23:25]MH_SAM_APDU [15:23:25]CAPDU: 80 17 00 00 [15:23:25]Write to MH i2c: E2 08 00 05 21 80 17 00 00 00 00 00 00 A6 [15:23:25]Write i2c OK [15:23:25]MH_I2C_Read... [15:23:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:23:25]Read from MH i2c: E2 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 FD 00 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 FD 00 05 21 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5D [15:23:25]RAPDU: F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:23:25]wFMCommunicate OK [15:23:25]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [15:23:25]SAM_PROTO_ProcessDocument remain to read = 18 [15:23:25]wFMCommunicate request_size=4 [15:23:25]MH_SAM_APDU [15:23:25]CAPDU: 80 17 00 00 [15:23:25]Write to MH i2c: E2 08 00 06 21 80 17 00 00 00 00 00 00 A7 [15:23:25]Write i2c OK [15:23:25]MH_I2C_Read... [15:23:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 18! [15:23:26]Read from MH i2c: E2 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 15 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 15 00 06 21 00 03 01 00 06 F7 03 00 00 35 04 06 00 6C 60 20 5F 09 C4 90 00 08 [15:23:26]RAPDU: 03 01 00 06 F7 03 00 00 35 04 06 00 6C 60 20 5F 09 C4 90 00 [15:23:26]wFMCommunicate OK [15:23:26]SAM_PROTO_ProcessDocument received (without SW) 18 bytes [15:23:26]SAM_PROTO_ProcessDocument done [15:23:26]1209 (1) - 1.0 - номер версии ФФД [15:23:26]1041 (16) - 0000000000963154 - номер ФМ [15:23:26]1040 (4) - 29853 - номер ФД [15:23:26]1038 (4) - 118 - номер смены [15:23:26]1118 (4) - 126 - количество кассовых чеков за смену [15:23:26]1111 (4) - 128 - общее количество ФД за смену [15:23:26]1194 (1195) - счетчики итогов смены [15:23:26] 1134 (4) - 126 - количество чеков со всеми признаками расчетов [15:23:26] 1129 (156) - счетчики операций «приход» [15:23:26] 1135 (4) - 126 - количество чеков по признаку расчетов [15:23:26] 1201 (3) - 138807.09 - общая итоговая сумма в чеках [15:23:26] 1136 (3) - 58790.00 - итоговая сумма в чеках наличными [15:23:26] 1138 (3) - 80017.09 - итоговая сумма в чеках безналичными [15:23:26] 1024 (123) - суммы налогов [15:23:26] 1006 (9) - суммы НДС [15:23:26] 1010 (1) - 0% - код ставки НДС [15:23:26] 1011 (0) - 0.00 - сумма НДС по ставке [15:23:26] 1006 (12) - суммы НДС [15:23:26] 1010 (1) - 12% - код ставки НДС [15:23:26] 1011 (3) - 14743.06 - сумма НДС по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 0% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (12) - суммы НСП [15:23:26] 1014 (1) - 1% - код ставки НСП [15:23:26] 1015 (3) - 1228.49 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 2% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 3% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 5% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 0,50% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 1,50% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1130 (141) - счетчики операций «возврат прихода» [15:23:26] 1135 (4) - 0 - количество чеков по признаку расчетов [15:23:26] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:23:26] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:23:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:23:26] 1024 (117) - суммы налогов [15:23:26] 1006 (9) - суммы НДС [15:23:26] 1010 (1) - 0% - код ставки НДС [15:23:26] 1011 (0) - 0.00 - сумма НДС по ставке [15:23:26] 1006 (9) - суммы НДС [15:23:26] 1010 (1) - 12% - код ставки НДС [15:23:26] 1011 (0) - 0.00 - сумма НДС по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 0% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 1% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 2% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 3% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 5% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 0,50% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 1,50% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1131 (141) - счетчики операций «расход» [15:23:26] 1135 (4) - 0 - количество чеков по признаку расчетов [15:23:26] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:23:26] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:23:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:23:26] 1024 (117) - суммы налогов [15:23:26] 1006 (9) - суммы НДС [15:23:26] 1010 (1) - 0% - код ставки НДС [15:23:26] 1011 (0) - 0.00 - сумма НДС по ставке [15:23:26] 1006 (9) - суммы НДС [15:23:26] 1010 (1) - 12% - код ставки НДС [15:23:26] 1011 (0) - 0.00 - сумма НДС по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 0% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 1% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 2% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 3% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 5% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 0,50% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 1,50% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1132 (141) - счетчики операций «возврат расхода» [15:23:26] 1135 (4) - 0 - количество чеков по признаку расчетов [15:23:26] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:23:26] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:23:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:23:26] 1024 (117) - суммы налогов [15:23:26] 1006 (9) - суммы НДС [15:23:26] 1010 (1) - 0% - код ставки НДС [15:23:26] 1011 (0) - 0.00 - сумма НДС по ставке [15:23:26] 1006 (9) - суммы НДС [15:23:26] 1010 (1) - 12% - код ставки НДС [15:23:26] 1011 (0) - 0.00 - сумма НДС по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 0% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 1% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 2% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 3% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 5% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 0,50% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1007 (9) - суммы НСП [15:23:26] 1014 (1) - 1,50% - код ставки НСП [15:23:26] 1015 (0) - 0.00 - сумма НСП по ставке [15:23:26] 1133 (588) - - счетчики коррекции - не используются [15:23:26]1077 (6) - 119160115759556 - ФПД [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1209 (04B9) [15:23:26]Malloc new data [15:23:26]Processing tag 1041 (0411) [15:23:26]Processing tag 1040 (0410) [15:23:26]Malloc new data [15:23:26]Processing tag 1038 (040E) [15:23:26]Malloc new data [15:23:26]Processing tag 1118 (045E) [15:23:26]Malloc new data [15:23:26]Processing tag 1111 (0457) [15:23:26]Malloc new data [15:23:26]Processing tag 1194 (04AA) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1134 (046E) [15:23:26]Malloc new data [15:23:26]Processing tag 1129 (0469) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1135 (046F) [15:23:26]Malloc new data [15:23:26]Processing tag 1201 (04B1) [15:23:26]Malloc new data [15:23:26]Processing tag 1136 (0470) [15:23:26]Malloc new data [15:23:26]Processing tag 1138 (0472) [15:23:26]Malloc new data [15:23:26]Processing tag 1024 (0400) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1006 (03EE) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1010 (03F2) [15:23:26]Malloc new data [15:23:26]Processing tag 1011 (03F3) [15:23:26]Malloc new data [15:23:26]SetTLVBufToDocument err=0 [15:23:26]Processing tag 1006 (03EE) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1010 (03F2) [15:23:26]Malloc new data [15:23:26]Processing tag 1011 (03F3) [15:23:26]Malloc new data [15:23:26]SetTLVBufToDocument err=0 [15:23:26]Processing tag 1007 (03EF) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1014 (03F6) [15:23:26]Malloc new data [15:23:26]Processing tag 1015 (03F7) [15:23:26]Malloc new data [15:23:26]SetTLVBufToDocument err=0 [15:23:26]Processing tag 1007 (03EF) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1014 (03F6) [15:23:26]Malloc new data [15:23:26]Processing tag 1015 (03F7) [15:23:26]Malloc new data [15:23:26]SetTLVBufToDocument err=0 [15:23:26]Processing tag 1007 (03EF) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1014 (03F6) [15:23:26]Malloc new data [15:23:26]Processing tag 1015 (03F7) [15:23:26]Malloc new data [15:23:26]SetTLVBufToDocument err=0 [15:23:26]Processing tag 1007 (03EF) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1014 (03F6) [15:23:26]Malloc new data [15:23:26]Processing tag 1015 (03F7) [15:23:26]Malloc new data [15:23:26]SetTLVBufToDocument err=0 [15:23:26]Processing tag 1007 (03EF) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1014 (03F6) [15:23:26]Malloc new data [15:23:26]Processing tag 1015 (03F7) [15:23:26]Malloc new data [15:23:26]SetTLVBufToDocument err=0 [15:23:26]Processing tag 1007 (03EF) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1014 (03F6) [15:23:26]Malloc new data [15:23:26]Processing tag 1015 (03F7) [15:23:26]Malloc new data [15:23:26]SetTLVBufToDocument err=0 [15:23:26]Processing tag 1007 (03EF) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1014 (03F6) [15:23:26]Malloc new data [15:23:26]Processing tag 1015 (03F7) [15:23:26]Malloc new data [15:23:26]SetTLVBufToDocument err=0 [15:23:26]SetTLVBufToDocument err=0 [15:23:26]SetTLVBufToDocument err=0 [15:23:26]Processing tag 1130 (046A) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1135 (046F) [15:23:26]Malloc new data [15:23:26]Processing tag 1201 (04B1) [15:23:26]Malloc new data [15:23:26]Processing tag 1136 (0470) [15:23:26]Malloc new data [15:23:26]Processing tag 1138 (0472) [15:23:26]Malloc new data [15:23:26]Processing tag 1024 (0400) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1006 (03EE) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1010 (03F2) [15:23:26]Malloc new data [15:23:26]Processing tag 1011 (03F3) [15:23:26]Malloc new data [15:23:26]SetTLVBufToDocument err=0 [15:23:26]Processing tag 1006 (03EE) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1010 (03F2) [15:23:26]Malloc new data [15:23:26]Processing tag 1011 (03F3) [15:23:26]Malloc new data [15:23:26]SetTLVBufToDocument err=0 [15:23:26]Processing tag 1007 (03EF) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1014 (03F6) [15:23:26]Malloc new data [15:23:26]Processing tag 1015 (03F7) [15:23:26]Malloc new data [15:23:26]SetTLVBufToDocument err=0 [15:23:26]Processing tag 1007 (03EF) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1014 (03F6) [15:23:26]Malloc new data [15:23:26]Processing tag 1015 (03F7) [15:23:26]Malloc new data [15:23:26]SetTLVBufToDocument err=0 [15:23:26]Processing tag 1007 (03EF) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1014 (03F6) [15:23:26]Malloc new data [15:23:26]Processing tag 1015 (03F7) [15:23:26]Malloc new data [15:23:26]SetTLVBufToDocument err=0 [15:23:26]Processing tag 1007 (03EF) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1014 (03F6) [15:23:26]Malloc new data [15:23:26]Processing tag 1015 (03F7) [15:23:26]Malloc new data [15:23:26]SetTLVBufToDocument err=0 [15:23:26]Processing tag 1007 (03EF) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1014 (03F6) [15:23:26]Malloc new data [15:23:26]Processing tag 1015 (03F7) [15:23:26]Malloc new data [15:23:26]SetTLVBufToDocument err=0 [15:23:26]Processing tag 1007 (03EF) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:26]Processing tag 1014 (03F6) [15:23:26]Malloc new data [15:23:26]Processing tag 1015 (03F7) [15:23:26]Malloc new data [15:23:26]SetTLVBufToDocument err=0 [15:23:26]Processing tag 1007 (03EF) [15:23:26]Load OK [15:23:26]SetTLVBufToDocument [15:23:27]Processing tag 1014 (03F6) [15:23:27]Malloc new data [15:23:27]Processing tag 1015 (03F7) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]SetTLVBufToDocument err=0 [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1131 (046B) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1135 (046F) [15:23:27]Malloc new data [15:23:27]Processing tag 1201 (04B1) [15:23:27]Malloc new data [15:23:27]Processing tag 1136 (0470) [15:23:27]Malloc new data [15:23:27]Processing tag 1138 (0472) [15:23:27]Malloc new data [15:23:27]Processing tag 1024 (0400) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1006 (03EE) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1010 (03F2) [15:23:27]Malloc new data [15:23:27]Processing tag 1011 (03F3) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1006 (03EE) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1010 (03F2) [15:23:27]Malloc new data [15:23:27]Processing tag 1011 (03F3) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1007 (03EF) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1014 (03F6) [15:23:27]Malloc new data [15:23:27]Processing tag 1015 (03F7) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1007 (03EF) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1014 (03F6) [15:23:27]Malloc new data [15:23:27]Processing tag 1015 (03F7) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1007 (03EF) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1014 (03F6) [15:23:27]Malloc new data [15:23:27]Processing tag 1015 (03F7) [15:23:27]OFD Sender: No OFD packet to send [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1007 (03EF) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1014 (03F6) [15:23:27]Malloc new data [15:23:27]Processing tag 1015 (03F7) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1007 (03EF) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1014 (03F6) [15:23:27]Malloc new data [15:23:27]Processing tag 1015 (03F7) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1007 (03EF) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1014 (03F6) [15:23:27]Malloc new data [15:23:27]Processing tag 1015 (03F7) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1007 (03EF) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1014 (03F6) [15:23:27]Malloc new data [15:23:27]Processing tag 1015 (03F7) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]SetTLVBufToDocument err=0 [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1132 (046C) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1135 (046F) [15:23:27]Malloc new data [15:23:27]Processing tag 1201 (04B1) [15:23:27]Malloc new data [15:23:27]Processing tag 1136 (0470) [15:23:27]Malloc new data [15:23:27]Processing tag 1138 (0472) [15:23:27]Malloc new data [15:23:27]Processing tag 1024 (0400) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1006 (03EE) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1010 (03F2) [15:23:27]Malloc new data [15:23:27]Processing tag 1011 (03F3) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1006 (03EE) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1010 (03F2) [15:23:27]Malloc new data [15:23:27]Processing tag 1011 (03F3) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1007 (03EF) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1014 (03F6) [15:23:27]Malloc new data [15:23:27]Processing tag 1015 (03F7) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1007 (03EF) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1014 (03F6) [15:23:27]Malloc new data [15:23:27]Processing tag 1015 (03F7) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1007 (03EF) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1014 (03F6) [15:23:27]Malloc new data [15:23:27]Processing tag 1015 (03F7) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1007 (03EF) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1014 (03F6) [15:23:27]Malloc new data [15:23:27]Processing tag 1015 (03F7) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1007 (03EF) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1014 (03F6) [15:23:27]Malloc new data [15:23:27]Processing tag 1015 (03F7) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1007 (03EF) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1014 (03F6) [15:23:27]Malloc new data [15:23:27]Processing tag 1015 (03F7) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1007 (03EF) [15:23:27]Load OK [15:23:27]SetTLVBufToDocument [15:23:27]Processing tag 1014 (03F6) [15:23:27]Malloc new data [15:23:27]Processing tag 1015 (03F7) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]SetTLVBufToDocument err=0 [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1133 (046D) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Processing tag 1077 (0435) [15:23:27]Malloc new data [15:23:27]SetTLVBufToDocument err=0 [15:23:27]Malloc new data [15:23:27]SAM_PROTO_GetFMData [15:23:27]wFMCommunicate request_size=4 [15:23:27]MH_SAM_APDU [15:23:27]CAPDU: 80 13 03 00 [15:23:27]Write to MH i2c: E2 08 00 07 21 80 13 03 00 00 00 00 00 A7 [15:23:27]Write i2c OK [15:23:27]MH_I2C_Read... [15:23:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:23:27]Read from MH i2c: E2 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: E2 FD 00 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: E2 FD 00 07 21 00 C3 04 85 04 BF 04 6E 04 04 00 B0 73 00 00 69 04 A1 00 6F 04 04 00 43 70 00 00 B1 04 04 00 02 48 06 B7 70 04 04 00 8C 85 15 74 72 04 04 00 76 C2 F0 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F9 A6 70 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 AF 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 EF 03 09 00 F6 90 00 DC [15:23:27]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 B0 73 00 00 69 04 A1 00 6F 04 04 00 43 70 00 00 B1 04 04 00 02 48 06 B7 70 04 04 00 8C 85 15 74 72 04 04 00 76 C2 F0 42 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F9 A6 70 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 60 AF 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 6D 03 00 00 B1 04 04 00 D4 09 10 0D 70 04 04 00 D4 09 10 0D 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 82 28 63 01 EF 03 09 00 F6 90 00 [15:23:28]wFMCommunicate OK [15:23:28]wFMCommunicate request_size=4 [15:23:28]MH_SAM_APDU [15:23:28]CAPDU: 80 17 00 00 [15:23:28]Write to MH i2c: E2 08 00 08 21 80 17 00 00 00 00 00 00 A9 [15:23:28]Write i2c OK [15:23:28]MH_I2C_Read... [15:23:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:23:28]Read from MH i2c: E2 [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: E2 FD 00 [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: E2 FD 00 08 21 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 63 [15:23:28]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 45 98 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:23:28]wFMCommunicate OK [15:23:28]wFMCommunicate request_size=4 [15:23:28]MH_SAM_APDU [15:23:28]CAPDU: 80 17 00 00 [15:23:28]Write to MH i2c: E2 08 00 09 21 80 17 00 00 00 00 00 00 AA [15:23:28]Write i2c OK [15:23:28]MH_I2C_Read... [15:23:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:23:29]Read from MH i2c: E2 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 FD 00 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 FD 00 09 21 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C8 [15:23:29]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:23:29]wFMCommunicate OK [15:23:29]wFMCommunicate request_size=4 [15:23:29]MH_SAM_APDU [15:23:29]CAPDU: 80 17 00 00 [15:23:29]Write to MH i2c: E2 08 00 0A 21 80 17 00 00 00 00 00 00 AB [15:23:29]Write i2c OK [15:23:29]MH_I2C_Read... [15:23:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:23:29]Read from MH i2c: E2 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 FD 00 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 FD 00 0A 21 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1D [15:23:29]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:23:30]wFMCommunicate OK [15:23:30]wFMCommunicate request_size=4 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 17 00 00 [15:23:30]Write to MH i2c: E2 08 00 0B 21 80 17 00 00 00 00 00 00 AC [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 E0 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 E0 00 0B 21 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 96 [15:23:30]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:23:30]wFMCommunicate OK [15:23:30]SAM_PROTO_GetFMData done [15:23:30]Malloc new data [15:23:30]Malloc new data [15:23:30]Malloc new data [15:23:30]Malloc new data [15:23:30]KKMLoadAndSignCloseShiftData err=0 [15:23:30]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Шадыканова Ж. 16.04.2024 15:23 Смена: 118 РНМ: 0000138879044617 ЗНМ: 0300000027 СНО: Общий режим Чеков за смену: 126 ФД за смену: 128 Всего чеков: 126 ИТОГИ ПРИХОД Чеков: 126 Общий итог: 138807.09 Итого наличными: 58790.00 Итого безнал.: 80017.09 НДС 0% : 0.00 НДС 12% : 14743.06 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1228.49 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 58790.00 НС Приход: 30706421.78 НС Возвр.Прихода: 2191549.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 29853 ФМ: 0000000000963154 ФПД: 119160115759556 [15:23:30]StoreToDocumentArchive [15:23:30]shift 118 fd 29853 [15:23:30]save to /storage/0118/doc_00029853 [15:23:30]save last doc name /storage/0118/doc_00029853 to /storage/kkm_last_doc_name [15:23:30]save OK [15:23:30]Clear old archive folders... [15:23:30]Remove dir /storage/0010 [15:23:30]opendir ok [15:23:30]file . [15:23:30]file .. [15:23:30]file doc_1713280968 [15:23:30]remove file /storage/0010/doc_1713280968 [15:23:30]remove dir /storage/0010 [15:23:30]NVStorageSaveData kkm_registers [15:23:30]File name is /storage/kkm_registers [15:23:30]Write 24 bytes [15:23:30]NVStorageSaveData done [15:23:30]NVStorageSaveData kkm_registers [15:23:30]File name is /storage/kkm_registers [15:23:30]Write 24 bytes [15:23:30]NVStorageSaveData done [15:23:30]ProcessDocumentItem done err = 0, tmpTLVsize=1384 [15:23:30]tlvbuf is 00263F50 [15:23:30]SAM_PROTO_ClearQueue [15:23:30]wFMCommunicate request_size=4 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 09 00 00 [15:23:30]Write to MH i2c: E2 08 00 0C 21 80 09 00 00 00 00 00 00 9F [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 0C 21 00 90 00 A1 [15:23:30]RAPDU: 90 00 [15:23:30]wFMCommunicate OK [15:23:30]SAM_PROTO_ClearQueue done [15:23:30]KKMCreateOFDPacket [15:23:30]OFDProtocolAddRootSTLVToBuf [15:23:30]FM_MakeSignedData [15:23:30]FM_MakeSignedData [15:23:30]SAM_PROTO_SignData [15:23:30]wFMCommunicate request_size=4 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 0D 01 02 [15:23:30]Write to MH i2c: E2 08 00 0D 21 80 0D 01 02 00 00 00 00 A7 [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 0D 21 00 90 00 A2 [15:23:30]RAPDU: 90 00 [15:23:30]wFMCommunicate OK [15:23:30]wFMCommunicate request_size=255 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 0D 02 02 FA 05 00 68 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 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F4 03 04 00 EC 97 1E 66 0E 04 04 00 76 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 7E 00 00 00 57 04 04 00 80 00 00 00 AA 04 D6 04 6E 04 04 00 7E 00 00 00 69 04 A3 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 85 CD D3 70 04 03 00 D8 B4 59 72 04 03 00 AD 18 7A 00 04 82 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 02 7F 16 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 [15:23:31]Write to MH i2c: E2 02 01 0E 21 80 0D 02 02 FA 00 05 00 68 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 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F4 03 04 00 EC 97 1E 66 0E 04 04 00 76 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 7E 00 00 00 57 04 04 00 80 00 00 00 AA 04 D6 04 6E 04 04 00 7E 00 00 00 69 04 A3 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 85 CD D3 70 04 03 00 D8 B4 59 72 04 03 00 AD 18 7A 00 04 82 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 02 7F 16 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 00 65 [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:31]Read from MH i2c: E2 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 03 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 03 00 0E 21 00 90 00 A3 [15:23:31]RAPDU: 90 00 [15:23:31]wFMCommunicate OK [15:23:31]wFMCommunicate request_size=255 [15:23:31]MH_SAM_APDU [15:23:31]CAPDU: 80 0D 02 02 FA 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E1 DF 01 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 [15:23:31]Write to MH i2c: E2 02 01 0F 21 80 0D 02 02 FA 00 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E1 DF 01 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 00 00 D9 [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]OFD Sender: No OFD packet to send [15:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:32]Read from MH i2c: E2 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 03 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 03 00 0F 21 00 90 00 A4 [15:23:32]RAPDU: 90 00 [15:23:32]wFMCommunicate OK [15:23:32]wFMCommunicate request_size=255 [15:23:32]MH_SAM_APDU [15:23:32]CAPDU: 80 0D 02 02 FA 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 [15:23:32]Write to MH i2c: E2 02 01 10 21 80 0D 02 02 FA 00 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 00 00 71 [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 03 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 03 00 10 21 00 90 00 A5 [15:23:33]RAPDU: 90 00 [15:23:33]wFMCommunicate OK [15:23:33]wFMCommunicate request_size=255 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 0D 02 02 FA 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 [15:23:33]Write to MH i2c: E2 02 01 11 21 80 0D 02 02 FA 00 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 00 00 6E [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 03 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 03 00 11 21 00 90 00 A6 [15:23:33]RAPDU: 90 00 [15:23:33]wFMCommunicate OK [15:23:33]wFMCommunicate request_size=255 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 0D 02 02 FA 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [15:23:34]Write to MH i2c: E2 02 01 12 21 80 0D 02 02 FA 00 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 46 [15:23:34]Write i2c OK [15:23:34]MH_I2C_Read... [15:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:34]Read from MH i2c: E2 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: E2 03 00 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: E2 03 00 12 21 00 90 00 A7 [15:23:34]RAPDU: 90 00 [15:23:34]wFMCommunicate OK [15:23:34]wFMCommunicate request_size=143 [15:23:34]MH_SAM_APDU [15:23:34]CAPDU: 80 0D 02 02 8A F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 74 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 6C 60 20 5F 09 C4 [15:23:34]Write to MH i2c: E2 92 00 13 21 80 0D 02 02 8A 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 74 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 6C 60 20 5F 09 C4 00 00 0E [15:23:35]Write i2c OK [15:23:35]MH_I2C_Read... [15:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:35]Read from MH i2c: E2 [15:23:35]MH_I2C_Read... [15:23:35]Read from MH i2c: E2 03 00 [15:23:35]MH_I2C_Read... [15:23:35]Read from MH i2c: E2 03 00 13 21 00 90 00 A8 [15:23:35]RAPDU: 90 00 [15:23:35]wFMCommunicate OK [15:23:35]wFMCommunicate request_size=4 [15:23:35]MH_SAM_APDU [15:23:35]CAPDU: 80 0D 03 02 [15:23:35]Write to MH i2c: E2 08 00 14 21 80 0D 03 02 00 00 00 00 B0 [15:23:35]Write i2c OK [15:23:35]MH_I2C_Read... [15:23:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:35]Read from MH i2c: E2 [15:23:35]MH_I2C_Read... [15:23:35]Read from MH i2c: E2 0B 00 [15:23:35]MH_I2C_Read... [15:23:35]Read from MH i2c: E2 0B 00 14 21 00 F1 98 D4 2C 3B B3 CB F1 90 00 E4 [15:23:35]RAPDU: F1 98 D4 2C 3B B3 CB F1 90 00 [15:23:35]wFMCommunicate OK [15:23:35]SAM_PROTO_SignData done [15:23:35]FM_MakeSignedData done [15:23:35]CreateOFDProtocolMessage [15:23:35]wFMCommunicate request_size=4 [15:23:35]MH_SAM_APDU [15:23:35]CAPDU: 80 11 00 00 [15:23:35]Write to MH i2c: E2 08 00 15 21 80 11 00 00 00 00 00 00 B0 [15:23:35]Write i2c OK [15:23:35]MH_I2C_Read... [15:23:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:35]Read from MH i2c: E2 [15:23:35]MH_I2C_Read... [15:23:35]Read from MH i2c: E2 17 00 [15:23:35]MH_I2C_Read... [15:23:35]Read from MH i2c: E2 17 00 15 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FF [15:23:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:23:35]wFMCommunicate OK [15:23:35]CreateOFDProtocolMessage done [15:23:35]OFDSenderStorePacket 29853 [15:23:35]StoreOFDPacket docnum=29853 [15:23:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 7C 05 00 00 4A 46 74 05 0E 6C 5A 05 01 00 05 00 68 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 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F4 03 04 00 EC 97 1E 66 0E 04 04 00 76 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 7E 00 00 00 57 04 04 00 80 00 00 00 AA 04 D6 04 6E 04 04 00 7E 00 00 00 69 04 A3 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 85 CD D3 70 04 03 00 D8 B4 59 72 04 03 00 AD 18 7A 00 04 82 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 02 7F 16 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 0C 00 F6 03 01 00 01 F7 03 03 00 E1 DF 01 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 9D 74 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 6C 60 20 5F 09 C4 F1 98 D4 2C 3B B3 CB F1 [15:23:35]CheckFolder [15:23:35]dirname=/storage/ofd_packets [15:23:35]CheckFolder done [15:23:35]ProducePacketName [15:23:35]name=ofd_packets/00029853 [15:23:35]NVStorageSaveData ofd_packets/00029853 [15:23:35]File name is /storage/ofd_packets/00029853 [15:23:35]Write 1434 bytes [15:23:35]NVStorageSaveData done [15:23:35]OFDSenderStorePacket done [15:23:35]KKMCreateOFDPacket done [15:23:35]NVStorageSaveData kkm_last_timestamp [15:23:35]File name is /storage/kkm_last_timestamp [15:23:35]Write 4 bytes [15:23:35]NVStorageSaveData done [15:23:35]ExternCall_PrintAddStr [15:23:35]wPrintStart [15:23:35]Write to MH i2c: 01 00 00 16 21 37 [15:23:35]Write i2c OK [15:23:35]MH_I2C_Read... [15:23:35]Read from MH i2c: 01 [15:23:35]MH_I2C_Read... [15:23:35]Read from MH i2c: 01 07 00 [15:23:35]MH_I2C_Read... [15:23:35]Read from MH i2c: 01 07 00 16 21 00 00 00 00 00 FF 0F 4C [15:23:35]RasterBufferAndPrint [15:23:35]line Отчет о закрытии смены [15:23:35]line ФФД: 1.0 [15:23:35]line ИНН: 02508201610067 [15:23:35]line Кассир: Шадыканова Ж. [15:23:35]line 16.04.2024 15:23 [15:23:35]line Смена: 118 [15:23:35]line РНМ: 0000138879044617 [15:23:35]line ЗНМ: 0300000027 [15:23:35]line СНО: Общий режим [15:23:35]line Чеков за смену: 126 [15:23:35]line ФД за смену: 128 [15:23:35]line Всего чеков: 126 [15:23:35]line ИТОГИ ПРИХОД [15:23:35]line Чеков: 126 [15:23:35]line Общий итог: 138807.09 [15:23:35]line Итого наличными: 58790.00 [15:23:35]line Итого безнал.: 80017.09 [15:23:35]line НДС 0% : 0.00 [15:23:35]line НДС 12% : 14743.06 [15:23:35]line НСП 0% : 0.00 [15:23:35]line НСП 1,50% : 0.00 [15:23:35]line НСП 0,50% : 0.00 [15:23:35]line НСП 5% : 0.00 [15:23:35]line НСП 3% : 0.00 [15:23:35]line НСП 2% : 0.00 [15:23:35]line НСП 1% : 1228.49 [15:23:35]line ИТОГИ ВОЗВРАТ ПРИХОДА [15:23:35]line Чеков: 0 [15:23:35]line Общий итог: 0.00 [15:23:35]line Итого наличными: 0.00 [15:23:35]line Итого безнал.: 0.00 [15:23:35]line НДС 0% : 0.00 [15:23:35]line НДС 12% : 0.00 [15:23:35]line НСП 0% : 0.00 [15:23:35]line НСП 1,50% : 0.00 [15:23:35]line НСП 0,50% : 0.00 [15:23:35]line НСП 5% : 0.00 [15:23:35]line НСП 3% : 0.00 [15:23:35]line НСП 2% : 0.00 [15:23:35]line НСП 1% : 0.00 [15:23:35]line ИТОГИ РАСХОД [15:23:35]line Чеков: 0 [15:23:35]line Общий итог: 0.00 [15:23:35]line Итого наличными: 0.00 [15:23:35]line Итого безнал.: 0.00 [15:23:35]line НДС 0% : 0.00 [15:23:35]line НДС 12% : 0.00 [15:23:35]line НСП 0% : 0.00 [15:23:35]line НСП 1,50% : 0.00 [15:23:35]line НСП 0,50% : 0.00 [15:23:36]line НСП 5% : 0.00 [15:23:36]line НСП 3% : 0.00 [15:23:36]line НСП 2% : 0.00 [15:23:36]line НСП 1% : 0.00 [15:23:36]line ИТОГИ ВОЗВРАТ РАСХОДА [15:23:36]line Чеков: 0 [15:23:36]line Общий итог: 0.00 [15:23:36]line Итого наличными: 0.00 [15:23:36]line Итого безнал.: 0.00 [15:23:36]line НДС 0% : 0.00 [15:23:36]line НДС 12% : 0.00 [15:23:36]line НСП 0% : 0.00 [15:23:36]line НСП 1,50% : 0.00 [15:23:36]line НСП 0,50% : 0.00 [15:23:36]line НСП 5% : 0.00 [15:23:36]line НСП 3% : 0.00 [15:23:36]line НСП 2% : 0.00 [15:23:36]line НСП 1% : 0.00 [15:23:36]line Сумма внесений: 0.00 [15:23:36]line Сумма выплат: 0.00 [15:23:36]line Нал. в кассе: 58790.00 [15:23:36]line НС Приход: 30706421.78 [15:23:36]line НС Возвр.Прихода: 2191549.00 [15:23:36]line НС Расход: 0.00 [15:23:36]line НС Возвр.Расхода: 0.00 [15:23:36]line ФД: 29853 [15:23:36]line ФМ: 0000000000963154 [15:23:36]line ФПД: 119160115759556 [15:23:36]OFD Sender: Processing packet 29853 [packets to send 8, broken 7] [15:23:36]ProducePacketName [15:23:36]name=ofd_packets/00029853 [15:23:36]OFD Sender: To server: pG, [15:23:36]CommunicateWithHost lk.salyk.kg:30040 [15:23:36]ConnectInit lk.salyk.kg [15:23:36]written 0, free lines is 4095 [15:23:36]Connected sock=10 [15:23:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 7C 05 00 00 4A 46 74 05 0E 6C 5A 05 01 00 05 00 68 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 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F4 03 04 00 EC 97 1E 66 0E 04 04 00 76 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 7E 00 00 00 57 04 04 00 80 00 00 00 AA 04 D6 04 6E 04 04 00 7E 00 00 00 69 04 A3 00 6F 04 04 00 7E 00 00 00 B1 04 03 00 85 CD D3 70 04 03 00 D8 B4 59 72 04 03 00 AD 18 7A 00 04 82 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 02 7F 16 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 0C 00 F6 03 01 00 01 F7 03 03 00 E1 DF 01 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 Write to MH i2c: 00 01 EF 00 03 00 0A 66 00 21 F6 03 01 00 01 F7 03 01 00 00 6C 04 87 99 [15:23:37]00 Write i2c OK [15:23:37]6F MH_I2C_Read... [15:23:37]04 Read from MH i2c: 04 01 00 [15:23:37]00 MH_I2C_Read... [15:23:37]00 00 00 B1 04 01 00 00 Read from MH i2c: 70 01 04 07 01 00 00 [15:23:37]00 MH_I2C_Read... [15:23:37]72 Read from MH i2c: 04 01 01 07 00 00 00 66 00 04 7E 00 EE 03 0A 00 F2 03 01 00 21 00 00 F3 00 03 00 01 00 00 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 C6 01 0C 00 60 00 [15:23:37]EF RasterBufferAndPrint [15:23:37]03 line [15:23:37]0A 00 F6 03 01 00 00 F7 03 01 00 00 line [15:23:37]EF line [15:23:37]03 line [15:23:37]0A line [15:23:37]00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 written 0, free lines is 3428 [15:23:37]03 01 00 05 F7 03 01 00 00 EF 03 MH_Cut [15:23:37]0A Write to MH i2c: 00 D1 F6 01 03 00 01 6D 00 21 04 01 F7 60 03 [15:23:37]01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 Write i2c OK [15:23:37]EF MH_I2C_Read... [15:23:37]03 Read from MH i2c: 0A D1 00 [15:23:37]F6 MH_I2C_Read... [15:23:37]03 01 00 02 F7 03 01 00 00 EF Read from MH i2c: 03 D1 0A 01 00 00 F6 [15:23:37]03 MH_I2C_Read... [15:23:37]01 Read from MH i2c: 00 D1 01 01 F7 00 03 6D 01 21 00 00 00 5F 6D [15:23:37]04 Write to MH i2c: 4C 01 02 78 04 04 00 00 00 00 00 79 04 8D 00 00 00 6F 6E 04 21 04 8F 00 [15:23:37]00 00 00 00 B1 04 00 00 70 04 00 00 Write i2c OK [15:23:37]72 MH_I2C_Read... [15:23:37]04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 *** Cut start [15:23:38]00 *** Partial cut [15:23:38]EF *** CUTSNS_PIN = 1 [15:23:38]03 *** CUTSNS_PIN = 0 [15:23:38]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 *** Brake cut motor [15:23:38]03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 74 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 6C 60 20 5F 09 C4 F1 98 D4 2C 3B B3 CB F1 [15:23:38]Read from MH i2c: 01 [15:23:38]MH_I2C_Read... [15:23:38]*** Stop cut motor [15:23:38]*** Cut end [15:23:38]Read from MH i2c: 01 07 00 [15:23:38]MH_I2C_Read... [15:23:38]Read from MH i2c: 01 07 00 6E 21 00 00 00 00 00 FF 0F A4 [15:23:38]process_action close_shift done [15:23:38]requested_data is exist [15:23:38]produce_requested_data [15:23:38]requested_item fd.num is exist - process it [15:23:38]SAM_PROTO_GetFieldsCounters [15:23:38]wFMCommunicate request_size=4 [15:23:38]MH_SAM_APDU [15:23:38]CAPDU: 80 13 00 00 [15:23:38]Write to MH i2c: E2 08 00 6F 21 80 13 00 00 00 00 00 00 0C [15:23:38]Write i2c OK [15:23:38]MH_I2C_Read... [15:23:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 60 12 47 00 01 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 74 00 00 F4 03 04 00 98 42 1E 66 B6 04 01 00 00 D2 A1 50 38 C9 1F 45 D3 [15:23:38]CommunicateWithHost err = 0 [15:23:38]CheckOFDResponse [15:23:39]1017 (14) - 77093643461234 [15:23:39]1041 (16) - 0000000000963154 [15:23:39]1040 (4) - 29853 [15:23:39]1012 (4) - 16.04.2024 09:19 [15:23:39]1206 (1) - 0 [15:23:39]OFD Sender: Remove packet 29853 [15:23:39]ProducePacketName [15:23:39]name=ofd_packets/00029853 [15:23:39]NVStorageDeleteData [15:23:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:39]Read from MH i2c: E2 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: E2 62 00 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: E2 62 00 6F 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9D 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [15:23:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9D 74 00 00 0E 04 04 00 76 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:39]wFMCommunicate OK [15:23:39]SAM_PROTO_GetFieldsCounters done [15:23:39]requested_item shift.num is exist - process it [15:23:39]requested_item shift.opened is exist - process it [15:23:39]req_shift_opened [15:23:39]FM_GetShiftState [15:23:39]SAM_PROTO_GetShiftState [15:23:39]wFMCommunicate request_size=4 [15:23:39]MH_SAM_APDU [15:23:39]CAPDU: 80 13 01 00 [15:23:39]Write to MH i2c: E2 08 00 70 21 80 13 01 00 00 00 00 00 0E [15:23:39]Write i2c OK [15:23:39]MH_I2C_Read... [15:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:39]Read from MH i2c: E2 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: E2 0E 00 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: E2 0E 00 70 21 00 09 00 00 00 00 00 00 00 00 00 00 90 00 19 [15:23:39]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [15:23:39]wFMCommunicate OK [15:23:39]SAM_PROTO_GetShiftState done [15:23:39]FM_GetShiftState done [15:23:39]req_shift_opened done [15:23:39]requested_item shift.open_date is exist - process it [15:23:39]req_shift_open_date [15:23:39]FM_GetShiftState [15:23:39]SAM_PROTO_GetShiftState [15:23:39]wFMCommunicate request_size=4 [15:23:39]MH_SAM_APDU [15:23:39]CAPDU: 80 13 01 00 [15:23:39]Write to MH i2c: E2 08 00 71 21 80 13 01 00 00 00 00 00 0F [15:23:39]Write i2c OK [15:23:39]MH_I2C_Read... [15:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:39]Read from MH i2c: E2 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: E2 0E 00 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: E2 0E 00 71 21 00 09 00 00 00 00 00 00 00 00 00 00 90 00 1A [15:23:39]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [15:23:39]wFMCommunicate OK [15:23:39]SAM_PROTO_GetShiftState done [15:23:39]FM_GetShiftState done [15:23:39]req_shift_open_date done [15:23:39]produce_requested_data done [15:23:39]produce_requested_data return {"fd.num":29853,"shift.num":118,"shift.opened":0,"shift.open_date":0} [15:23:39]process_action_free close_shift [15:23:39]json_value_free [15:23:39]json_value_free done [15:23:39]process_json_proto returns [15:23:39]Send response to host [15:23:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":29853,"shift.num":118,"shift.opened":0,"shift.open_date":0}}} [15:23:39]free response buf [15:23:39]execute_script done [15:23:39]execute_script returns [15:23:39]free content buf [15:23:39]Sock 9.Close socket [15:23:39]Sock 9.Thread stoped [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:10]OFD Sender: No OFD packet to send [15:35:15]OFD Sender: No OFD packet to send [15:35:20]OFD Sender: No OFD packet to send [15:35:25]OFD Sender: No OFD packet to send [15:35:30]OFD Sender: No OFD packet to send [15:35:35]OFD Sender: No OFD packet to send [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:36:00]OFD Sender: No OFD packet to send [15:36:05]OFD Sender: No OFD packet to send [15:36:10]OFD Sender: No OFD packet to send [15:36:15]OFD Sender: No OFD packet to send [15:36:20]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:50]OFD Sender: No OFD packet to send [15:36:55]OFD Sender: No OFD packet to send [15:37:00]OFD Sender: No OFD packet to send [15:37:05]OFD Sender: No OFD packet to send [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37:20]OFD Sender: No OFD packet to send [15:37:25]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]OFD Sender: No OFD packet to send [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:20]OFD Sender: No OFD packet to send [15:39:25]OFD Sender: No OFD packet to send [15:39:30]OFD Sender: No OFD packet to send [15:39:35]OFD Sender: No OFD packet to send [15:39:40]OFD Sender: No OFD packet to send [15:39:45]OFD Sender: No OFD packet to send [15:39:50]OFD Sender: No OFD packet to send [15:39:55]OFD Sender: No OFD packet to send [15:40:00]OFD Sender: No OFD packet to send [15:40:05]OFD Sender: No OFD packet to send [15:40:10]OFD Sender: No OFD packet to send [15:40:15]OFD Sender: No OFD packet to send [15:40:20]OFD Sender: No OFD packet to send [15:40:25]OFD Sender: No OFD packet to send [15:40:30]OFD Sender: No OFD packet to send [15:40:35]OFD Sender: No OFD packet to send [15:40:40]OFD Sender: No OFD packet to send [15:40:45]OFD Sender: No OFD packet to send [15:40:50]OFD Sender: No OFD packet to send [15:40:55]OFD Sender: No OFD packet to send [15:41:00]OFD Sender: No OFD packet to send [15:41:05]OFD Sender: No OFD packet to send [15:41:10]OFD Sender: No OFD packet to send [15:41:15]OFD Sender: No OFD packet to send [15:41:20]OFD Sender: No OFD packet to send [15:41:25]OFD Sender: No OFD packet to send [15:41:30]OFD Sender: No OFD packet to send [15:41:35]OFD Sender: No OFD packet to send [15:41:40]OFD Sender: No OFD packet to send [15:41:45]OFD Sender: No OFD packet to send [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:42:00]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:20]OFD Sender: No OFD packet to send [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:45]OFD Sender: No OFD packet to send [15:42:50]OFD Sender: No OFD packet to send [15:42:55]OFD Sender: No OFD packet to send [15:43:00]OFD Sender: No OFD packet to send [15:43:05]OFD Sender: No OFD packet to send [15:43:10]OFD Sender: No OFD packet to send [15:43:15]OFD Sender: No OFD packet to send [15:43:20]OFD Sender: No OFD packet to send [15:43:25]OFD Sender: No OFD packet to send [15:43:30]OFD Sender: No OFD packet to send [15:43:35]OFD Sender: No OFD packet to send [15:43:40]OFD Sender: No OFD packet to send [15:43:45]OFD Sender: No OFD packet to send [15:43:50]OFD Sender: No OFD packet to send [15:43:55]OFD Sender: No OFD packet to send [15:44:00]OFD Sender: No OFD packet to send [15:44:05]OFD Sender: No OFD packet to send [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:11]OFD Sender: No OFD packet to send [15:55:16]OFD Sender: No OFD packet to send [15:55:21]OFD Sender: No OFD packet to send [15:55:26]OFD Sender: No OFD packet to send [15:55:31]OFD Sender: No OFD packet to send [15:55:36]OFD Sender: No OFD packet to send [15:55:41]OFD Sender: No OFD packet to send [15:55:46]OFD Sender: No OFD packet to send [15:55:51]OFD Sender: No OFD packet to send [15:55:56]OFD Sender: No OFD packet to send [15:56:01]OFD Sender: No OFD packet to send [15:56:06]OFD Sender: No OFD packet to send [15:56:11]OFD Sender: No OFD packet to send [15:56:16]OFD Sender: No OFD packet to send [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:31]OFD Sender: No OFD packet to send [15:56:36]OFD Sender: No OFD packet to send [15:56:41]OFD Sender: No OFD packet to send [15:56:46]OFD Sender: No OFD packet to send [15:56:51]OFD Sender: No OFD packet to send [15:56:56]OFD Sender: No OFD packet to send [15:57:01]OFD Sender: No OFD packet to send [15:57:06]OFD Sender: No OFD packet to send [15:57:11]OFD Sender: No OFD packet to send [15:57:16]OFD Sender: No OFD packet to send [15:57:21]OFD Sender: No OFD packet to send [15:57:26]OFD Sender: No OFD packet to send [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:01]OFD Sender: No OFD packet to send [15:58:06]OFD Sender: No OFD packet to send [15:58:11]OFD Sender: No OFD packet to send [15:58:16]OFD Sender: No OFD packet to send [15:58:21]OFD Sender: No OFD packet to send [15:58:26]OFD Sender: No OFD packet to send [15:58:31]OFD Sender: No OFD packet to send [15:58:36]OFD Sender: No OFD packet to send [15:58:41]OFD Sender: No OFD packet to send [15:58:46]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:56]OFD Sender: No OFD packet to send [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:16]OFD Sender: No OFD packet to send [15:59:21]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:56]OFD Sender: No OFD packet to send [16:00:01]OFD Sender: No OFD packet to send [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:31]OFD Sender: No OFD packet to send [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:26]OFD Sender: No OFD packet to send [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:41]OFD Sender: No OFD packet to send [16:04:46]OFD Sender: No OFD packet to send [16:04:51]OFD Sender: No OFD packet to send [16:04:56]OFD Sender: No OFD packet to send [16:05:01]OFD Sender: No OFD packet to send [16:05:06]OFD Sender: No OFD packet to send [16:05:11]OFD Sender: No OFD packet to send [16:05:16]OFD Sender: No OFD packet to send [16:05:21]OFD Sender: No OFD packet to send [16:05:26]OFD Sender: No OFD packet to send [16:05:31]OFD Sender: No OFD packet to send [16:05:36]OFD Sender: No OFD packet to send [16:05:41]OFD Sender: No OFD packet to send [16:05:46]OFD Sender: No OFD packet to send [16:05:51]OFD Sender: No OFD packet to send [16:05:56]OFD Sender: No OFD packet to send [16:06:01]OFD Sender: No OFD packet to send [16:06:06]OFD Sender: No OFD packet to send [16:06:11]OFD Sender: No OFD packet to send [16:06:16]OFD Sender: No OFD packet to send [16:06:21]OFD Sender: No OFD packet to send [16:06:26]OFD Sender: No OFD packet to send [16:06:31]OFD Sender: No OFD packet to send [16:06:36]OFD Sender: No OFD packet to send [16:06:41]OFD Sender: No OFD packet to send [16:06:46]OFD Sender: No OFD packet to send [16:06:51]OFD Sender: No OFD packet to send [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:51]OFD Sender: No OFD packet to send [16:15:56]OFD Sender: No OFD packet to send [16:16:01]OFD Sender: No OFD packet to send [16:16:06]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:16]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:27]OFD Sender: No OFD packet to send [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:42]OFD Sender: No OFD packet to send [16:23:47]OFD Sender: No OFD packet to send [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:23]OFD Sender: No OFD packet to send [16:46:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:23]OFD Sender: No OFD packet to send [16:53:28]OFD Sender: No OFD packet to send [16:53:33]OFD Sender: No OFD packet to send [16:53:38]OFD Sender: No OFD packet to send [16:53:43]OFD Sender: No OFD packet to send [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:13]OFD Sender: No OFD packet to send [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]OFD Sender: No OFD packet to send [16:55:53]OFD Sender: No OFD packet to send [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send